You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Grant Edwards <gr...@gmail.com> on 2008/06/19 10:55:07 UTC
customizing events, eg addToCart
Hi,
The customization of services using the hot-deploy component is fairly
simple. But what about events like the one below? I dont really want to
go scratching around in org.ofbiz.order.shoppingcart.ShoppingCartEvents
as this would make future updates from the project difficult to handle.
Is a custom order component, and all that goes with it, the way to go ?
Kind regards
Grant Edwards
<request-map uri="additem">
<security https="true" auth="true"/>
<event type="java"
path="org.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="addToCart"/>
<response name="success" type="request" value="orderentry"/>
<response name="survey" type="view" value="survey"/>
<response name="product" type="view" value="product"/>
<response name="error" type="request" value="orderentry"/>
</request-map>
Re: customizing events, eg addToCart
Posted by Ashish Vijaywargiya <vi...@gmail.com>.
Jacopo,
You won't believe but I had read it ofbiz-component.xml instead of
ofbiz-controller.xml :-)
--
Ashish
On Thu, Jun 19, 2008 at 8:41 AM, Jacopo Cappellato <
jacopo.cappellato@gmail.com> wrote:
> yeah, thanks Jacques and sorry for the confusion.
>
> Jacopo
>
>
> On Jun 19, 2008, at 1:19 PM, Jacques Le Roux wrote:
>
> Note that Jacopo certainly meaned ofbiz-component.xml file
>>
>> Jacques
>>
>> From: "Grant Edwards" <gr...@gmail.com>
>>
>>> Thank you Jacopo .... I will look into it further this afternoon and let
>>> you know how it goes.
>>> Jacopo Cappellato wrote:
>>>
>>>> You can just mount a webapp (in the ofbiz-controller.xml file that
>>>> overrides the order (or ecommerce etc..) webapp and then add a new
>>>> request-map entry to replace the event:
>>>>
>>>> <request-map uri="additem">
>>>>> <security https="true" auth="true"/>
>>>>> <event type="java" path="com.mycompany.CustomEvents"
>>>>> invoke="addToCart"/>
>>>>> <response name="success" type="request" value="orderentry"/>
>>>>> <response name="survey" type="view" value="survey"/>
>>>>> <response name="product" type="view" value="product"/>
>>>>> <response name="error" type="request" value="orderentry"/>
>>>>> </request-map>
>>>>>
>>>>>
>>>> Hope it helps,
>>>>
>>>> Jacopo
>>>>
>>>>
>>>> On Jun 19, 2008, at 10:55 AM, Grant Edwards wrote:
>>>>
>>>> Hi,
>>>>>
>>>>> The customization of services using the hot-deploy component is fairly
>>>>> simple. But what about events like the one below? I dont really want to go
>>>>> scratching around in org.ofbiz.order.shoppingcart.ShoppingCartEvents as this
>>>>> would make future updates from the project difficult to handle.
>>>>>
>>>>> Is a custom order component, and all that goes with it, the way to go ?
>>>>>
>>>>>
>>>>> Kind regards
>>>>>
>>>>> Grant Edwards
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> <request-map uri="additem">
>>>>> <security https="true" auth="true"/>
>>>>> <event type="java"
>>>>> path="org.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="addToCart"/>
>>>>> <response name="success" type="request" value="orderentry"/>
>>>>> <response name="survey" type="view" value="survey"/>
>>>>> <response name="product" type="view" value="product"/>
>>>>> <response name="error" type="request" value="orderentry"/>
>>>>> </request-map>
>>>>>
>>>>
>>>>
>>>>
>>>
>
Re: customizing events, eg addToCart
Posted by Jacopo Cappellato <ja...@gmail.com>.
yeah, thanks Jacques and sorry for the confusion.
Jacopo
On Jun 19, 2008, at 1:19 PM, Jacques Le Roux wrote:
> Note that Jacopo certainly meaned ofbiz-component.xml file
>
> Jacques
>
> From: "Grant Edwards" <gr...@gmail.com>
>> Thank you Jacopo .... I will look into it further this afternoon
>> and let you know how it goes.
>> Jacopo Cappellato wrote:
>>> You can just mount a webapp (in the ofbiz-controller.xml file that
>>> overrides the order (or ecommerce etc..) webapp and then add a new
>>> request-map entry to replace the event:
>>>
>>>> <request-map uri="additem">
>>>> <security https="true" auth="true"/>
>>>> <event type="java" path="com.mycompany.CustomEvents"
>>>> invoke="addToCart"/>
>>>> <response name="success" type="request" value="orderentry"/>
>>>> <response name="survey" type="view" value="survey"/>
>>>> <response name="product" type="view" value="product"/>
>>>> <response name="error" type="request" value="orderentry"/>
>>>> </request-map>
>>>>
>>>
>>> Hope it helps,
>>>
>>> Jacopo
>>>
>>>
>>> On Jun 19, 2008, at 10:55 AM, Grant Edwards wrote:
>>>
>>>> Hi,
>>>>
>>>> The customization of services using the hot-deploy component is
>>>> fairly simple. But what about events like the one below? I dont
>>>> really want to go scratching around in
>>>> org.ofbiz.order.shoppingcart.ShoppingCartEvents as this would
>>>> make future updates from the project difficult to handle.
>>>>
>>>> Is a custom order component, and all that goes with it, the way
>>>> to go ?
>>>>
>>>>
>>>> Kind regards
>>>>
>>>> Grant Edwards
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> <request-map uri="additem">
>>>> <security https="true" auth="true"/>
>>>> <event type="java"
>>>> path="org.ofbiz.order.shoppingcart.ShoppingCartEvents"
>>>> invoke="addToCart"/>
>>>> <response name="success" type="request" value="orderentry"/>
>>>> <response name="survey" type="view" value="survey"/>
>>>> <response name="product" type="view" value="product"/>
>>>> <response name="error" type="request" value="orderentry"/>
>>>> </request-map>
>>>
>>>
>>
Re: customizing events, eg addToCart
Posted by Jacques Le Roux <ja...@les7arts.com>.
Note that Jacopo certainly meaned ofbiz-component.xml file
Jacques
From: "Grant Edwards" <gr...@gmail.com>
> Thank you Jacopo .... I will look into it further this afternoon and
> let you know how it goes.
>
> Jacopo Cappellato wrote:
>> You can just mount a webapp (in the ofbiz-controller.xml file that
>> overrides the order (or ecommerce etc..) webapp and then add a new
>> request-map entry to replace the event:
>>
>>> <request-map uri="additem">
>>> <security https="true" auth="true"/>
>>> <event type="java" path="com.mycompany.CustomEvents"
>>> invoke="addToCart"/>
>>> <response name="success" type="request" value="orderentry"/>
>>> <response name="survey" type="view" value="survey"/>
>>> <response name="product" type="view" value="product"/>
>>> <response name="error" type="request" value="orderentry"/>
>>> </request-map>
>>>
>>
>> Hope it helps,
>>
>> Jacopo
>>
>>
>> On Jun 19, 2008, at 10:55 AM, Grant Edwards wrote:
>>
>>> Hi,
>>>
>>> The customization of services using the hot-deploy component is
>>> fairly simple. But what about events like the one below? I dont
>>> really want to go scratching around in
>>> org.ofbiz.order.shoppingcart.ShoppingCartEvents as this would make
>>> future updates from the project difficult to handle.
>>>
>>> Is a custom order component, and all that goes with it, the way to go ?
>>>
>>>
>>> Kind regards
>>>
>>> Grant Edwards
>>>
>>>
>>>
>>>
>>>
>>> <request-map uri="additem">
>>> <security https="true" auth="true"/>
>>> <event type="java"
>>> path="org.ofbiz.order.shoppingcart.ShoppingCartEvents"
>>> invoke="addToCart"/>
>>> <response name="success" type="request" value="orderentry"/>
>>> <response name="survey" type="view" value="survey"/>
>>> <response name="product" type="view" value="product"/>
>>> <response name="error" type="request" value="orderentry"/>
>>> </request-map>
>>
>>
>
Re: customizing events, eg addToCart
Posted by Grant Edwards <gr...@gmail.com>.
Thank you Jacopo .... I will look into it further this afternoon and
let you know how it goes.
Jacopo Cappellato wrote:
> You can just mount a webapp (in the ofbiz-controller.xml file that
> overrides the order (or ecommerce etc..) webapp and then add a new
> request-map entry to replace the event:
>
>> <request-map uri="additem">
>> <security https="true" auth="true"/>
>> <event type="java" path="com.mycompany.CustomEvents"
>> invoke="addToCart"/>
>> <response name="success" type="request" value="orderentry"/>
>> <response name="survey" type="view" value="survey"/>
>> <response name="product" type="view" value="product"/>
>> <response name="error" type="request" value="orderentry"/>
>> </request-map>
>>
>
> Hope it helps,
>
> Jacopo
>
>
> On Jun 19, 2008, at 10:55 AM, Grant Edwards wrote:
>
>> Hi,
>>
>> The customization of services using the hot-deploy component is
>> fairly simple. But what about events like the one below? I dont
>> really want to go scratching around in
>> org.ofbiz.order.shoppingcart.ShoppingCartEvents as this would make
>> future updates from the project difficult to handle.
>>
>> Is a custom order component, and all that goes with it, the way to go ?
>>
>>
>> Kind regards
>>
>> Grant Edwards
>>
>>
>>
>>
>>
>> <request-map uri="additem">
>> <security https="true" auth="true"/>
>> <event type="java"
>> path="org.ofbiz.order.shoppingcart.ShoppingCartEvents"
>> invoke="addToCart"/>
>> <response name="success" type="request" value="orderentry"/>
>> <response name="survey" type="view" value="survey"/>
>> <response name="product" type="view" value="product"/>
>> <response name="error" type="request" value="orderentry"/>
>> </request-map>
>
>
Re: customizing events, eg addToCart
Posted by Jacopo Cappellato <ja...@gmail.com>.
You can just mount a webapp (in the ofbiz-controller.xml file that
overrides the order (or ecommerce etc..) webapp and then add a new
request-map entry to replace the event:
> <request-map uri="additem">
> <security https="true" auth="true"/>
> <event type="java" path="com.mycompany.CustomEvents"
> invoke="addToCart"/>
> <response name="success" type="request" value="orderentry"/>
> <response name="survey" type="view" value="survey"/>
> <response name="product" type="view" value="product"/>
> <response name="error" type="request" value="orderentry"/>
> </request-map>
>
Hope it helps,
Jacopo
On Jun 19, 2008, at 10:55 AM, Grant Edwards wrote:
> Hi,
>
> The customization of services using the hot-deploy component is
> fairly simple. But what about events like the one below? I dont
> really want to go scratching around in
> org.ofbiz.order.shoppingcart.ShoppingCartEvents as this would make
> future updates from the project difficult to handle.
>
> Is a custom order component, and all that goes with it, the way to
> go ?
>
>
> Kind regards
>
> Grant Edwards
>
>
>
>
>
> <request-map uri="additem">
> <security https="true" auth="true"/>
> <event type="java"
> path="org.ofbiz.order.shoppingcart.ShoppingCartEvents"
> invoke="addToCart"/>
> <response name="success" type="request" value="orderentry"/>
> <response name="survey" type="view" value="survey"/>
> <response name="product" type="view" value="product"/>
> <response name="error" type="request" value="orderentry"/>
> </request-map>
products sort for e-commerce
Posted by Eric DE MAULDE <er...@free.fr>.
Hello,
In my e-commerce application, category detail screen,
I would like sorting the category products
by sale (1st case)
by promos and/or price rules and/or "percentSaved" (in productsummary.ftl)
Is there this function ?
Or, how can I begin to implement it ?
Thanks
Eric