Just to make this absolutely clear: "Ultimate URLs is not causing your product to be added to the shopping cart. It does not include any code related to the shopping cart or adding products to the shopping cart. The problem you have reported does not exist on a clean Zen Cart 1.5.x installation with Ultimate URLs installed."
Zen Cart's core code adds the product_id to the URL when "Display Product Add to Cart Button = 2" and "Display Multiple Products Qty Box Status = 0". This is normal and does not indicate an issue or error. This is not what is causing products to be added a second time.
Ultimate URLs is acting exactly how it should act when Zen Cart requests the products_id be included in the URL (it does what it is told and adds the products_id).
I am unable to duplicate your reported issue "When products_id is in the URL to a category page the product is added to the shopping cart". This is NOT an issue with this module, but most likely caused by some other modification made to your Zen Cart installation.
Somewhere in your installation something has been changed to add the product when the products_id is in $_GET. This is NOT normal Zen Cart operation (1.5.x uses $_POST data not $_GET data).
Please do not post further in this thread as your issue is NOT caused by "Ultimate URLs".
I would suggest you hire an experienced Zen Cart developer to find and fix the issue you are encountering (with your specific Zen Cart installation). You may also want to start a new thread with a clear and concise description of the issue you are encountering: "When products_id is in the URL to a category page the product is added to the shopping cart".
The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker
Just for anyone else reading this thread who may run into the same problem... The issue has been tracked down to some core Zen Cart code which does not scrub the old "products_id" from the URL. This code is used to create the "buy now" form action (not the "add to cart" action - which I thought the case where the issue occurred).
So if you have:
Display Product Add to Cart Button: 1
Display Multiple Products Qty Box: 0
You will want to apply the code changes posted here.
Last edited by lhungil; 17 Oct 2013 at 06:56 PM.
The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker