Show cart after user add item?

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

Show cart after user add item?

rhodebump
Hi,
Currently, when the user adds an item to the cart, they remain on the product page.  I would like the application to direct them to the cart page.

I looked at the controller.xml for the ecommerce application.  What is confusing me is that the additem action appears to send the user to the cart.  The item does get put into the cart.
I was hoping someone will point out my misunderstanding.
Thanks!

    <request-map uri="additem">
        <security https="false" auth="false"/>
        <event type="java" path="org.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="addToCart"/>
        <response name="success" type="view" value="showcart"/>
        <response name="survey" type="view" value="survey"/>
        <response name="viewcart" type="request-redirect" value="showcart"/>
        <response name="error" type="view" value="showcart"/>
    </request-map>



\
Reply | Threaded
Open this post in threaded view
|

Re: Show cart after user add item?

Tim Ruppert
It's on the product store - flip the switch.  viewCartOnAdd I think.

Cheers,
Tim
--
Tim Ruppert
HotWax Media

o:801.649.6594
f:801.649.6595


On Sep 26, 2007, at 7:05 PM, Phillip Rhodes wrote:

Hi,
Currently, when the user adds an item to the cart, they remain on the product page.  I would like the application to direct them to the cart page.

I looked at the controller.xml for the ecommerce application.  What is confusing me is that the additem action appears to send the user to the cart.  The item does get put into the cart.
I was hoping someone will point out my misunderstanding.
Thanks!

    <request-map uri="additem">
        <security https="false" auth="false"/>
        <event type="java" path="org.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="addToCart"/>
        <response name="success" type="view" value="showcart"/>
        <response name="survey" type="view" value="survey"/>
        <response name="viewcart" type="request-redirect" value="showcart"/>
        <response name="error" type="view" value="showcart"/>
    </request-map>



\


smime.p7s (3K) Download Attachment