customizing addToCart

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

customizing addToCart

Grant Edwards-2
Hi

I need to customize the "addToCart" event.


<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>

When customizing a service its fairly strait forward. Simply put it in
the hot-deploy component with the  same name and the framework takes
care of it. What is the best practice for customizing an event, this
event ? Put the new code in a "customOrder" component, keep the event
name = "addToCart" but change the path to the event. For axample
"org.ofbiz.customorder.shoppingcart.ShoppingCartEvents" (this is the
custom) code.

Kind regards

Grant Edwards



Thank you

Grant Edwards