Forums / General Questions / Clicking on the update cart button redirects to product not found

Clicking on the update cart button redirects to product not found

Started by danjones on 2 Aug 2016, 7:57 PM · Views: 511

Results 1 to 3 of 3
2 Aug 2016, 7:57 PM
#1
danjones avatar

danjones

New Zenner

Join Date:
Jul 2016
Location:
Utah
Posts:
14
Plugin Contributions:
0

Clicking on the update cart button redirects to product not found

I have an issue where if a customers adds a product to their cart and then goes to view the contents in their shopping cart and tries to change the quantity of products in their cart they are redirected to a page that states product not found. This happens for every product on the website. Every time a customer hits the update cart button, they are redirected to a page that says Sorry, the product was not found.

This is a link to one of the many products on our website. Again the problem occurs with all of our products.

http://westechequipment.com/product/368a-95-3-4-in-inlet-1-2-in-outlet-cast-iron-small-straight-centrifugal-pump-34-max-gpm-1-3-hp

Any ideas as to why this might be happening?

Four weeks ago we upgraded to the latest version of Zen Cart v1.5.5a from 1.5.4 following the official upgrade procedure.

Our server is using PHP version 5.5.36 and MySQL version 5.6.30

Thanks!

2 Aug 2016, 8:35 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Clicking on the update cart button redirects to product not found

Someone's mangled your template code and changed how it acts when buttons are clicked.

In tpl_shopping_cart_default.php the original code reads like this:```

<?php echo zen_draw_form('cart_quantity', zen_href_link(FILENAME_SHOPPING_CART, 'action=update_product', $request_type), [B]'post', 'id="shoppingCartForm"'[/B]); ?>

Yours has changed the 'id="shoppingCartForm"' to 'class="form-inline"' ..... which technically shouldn't break anything.

BUT yours has left the 'post' part blank, which makes the form not submit properly.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Aug 2016, 9:35 PM
#3
danjones avatar

danjones

New Zenner

Join Date:
Jul 2016
Location:
Utah
Posts:
14
Plugin Contributions:
0

Re: Clicking on the update cart button redirects to product not found

Thank you so much! It's working like it should now.