Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi

I have a question about the 'redirect' function, mentioned in the Shopping Cart module.

In such cases, you might also find the 'redirect' parameter of pp_product_form tag useful to make the visitor come back to the page he clicked the 'Add' button from.


My current situation:
I have an index.php page and a cart.php page.
When I click on "Add product" button on the index.php page I get the cart.php page.

The situation I would like:
When I click on "Add product", I stay on the index.php page so I can shop further.

How exactly is this configurable with the 'redirect' paramater?

Thanks!
Three examples of its usage -
Code: Select all
<cms:pp_product_form redirect="http://www.yoursite.com/" >
<cms:pp_product_form redirect="<cms:link 'index.php' />" >
<cms:pp_product_form redirect=k_page_link >

I think the last example would be suitable for your purpose.

Hope this helps.
Thanks! That last example is indeed exactly what I was searching for. :)
3 posts Page 1 of 1
cron