Hello, I have an issue when adding products to cart from the product listing page, I've tried a few things to sort it but I'm stuck, I hope someone more knowledgable than I will find it easy to fix....
I am using v155, with many plugins, the most relevant one here would be Attributes on Product Listing.
When I set admin config 'Display Cart After Adding Product' to False and then add a product from the listing page, I get the 'Sorry, the product was not found.' page (but the product is correctly added to cart still).
When I set 'Display Cart After Adding Product' to true, everything works as it should (taken to cart page with product added).
My ideal scenario is the customer remains on the Product Listing page and a small message is displayed saying 'Product added to cart'. It appears the process is trying to redirect to an incorrect path following the add to cart. It seemsto have something to do with this bit of code from the modules/product_listing.php file....
Code:
$lc_text = '';
$lc_text .= zen_draw_form('add_product_'.$listing->fields['products_id'],
zen_href_link(zen_get_info_page($listing->fields['products_id']), zen_get_all_get_params(array('action')) .
'action=add_product'), 'post', 'enctype="multipart/form-data"');
Which looks something like this when parsed...
HTML Code:
<form name="add_product_103" action="http://bboylaces-dev2.propersafe.net/product_info?cPath=3&sort=20a&number_of_uploads=0&action=add_product" method="post" enctype="multipart/form-data">
It's this URL (action="URL") that it's trying to forward to after adding to cart. So If I could get this to be the current product listing URL, then it should stay on the page?
I hope I've explained that correctly and someone might be able to guide me?
This is a develpoment site the url is - eg - http://bboylaces-dev2.propersafe.net...-fat-laces-c-1
Please excuse any dust, this is being worked on and not been formatted for phones/tablets/certain browsers etc yet.
Many thanks in advance
Bookmarks