New Zenner
- Join Date:
- Dec 2010
- Posts:
- 20
- Plugin Contributions:
- 0
[Done v1.5.0] Stay on product listing after adding to cart
I've got a buy it now button next to each product in the category product listing page.
When the user clicks on this button I want to add the product to the cart and stay exactly where they are - i.e. still on category product listing page.
I know there is the option under admin to "Display Cart After Adding Product" which I can set to false, but this then takes the user to the product information page, instead of staying right where they are.
I've also tried various hacks to product_listing.php (whcih I found on here using search) to essentially change "zen_href_link(zen_get_info_page..." to be "zen_href_link($_GET['main_page']..." which works to a degree in that it stays on category product listing page, however it seems to "select" the product you have just added. So the breadcrumb now says "Home - Category - Product Name" instead of "Home - Category". Also the "productListHeading" is set to the added product not the category.
So, any ideas how to get this to work properly?
Thanks.
Bob.