Closed (cannot reproduce)
Project:
Ubercart
Version:
6.x-2.9
Component:
Cart/checkout
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2012 at 17:22 UTC
Updated:
29 Jun 2012 at 10:34 UTC
The update button seems to fail. When changing the items from ex. 1 to ex. 4 and hitting the button the page refreshes but the value is still 1.
Just to double check I went to rifftrax.com and the same happens there. Ex. http://www.rifftrax.com/cart
Even tried disabling javascript, just in case there was some interference. That did not fix the problem.
Can someone send me in the right direction to fix this problem?
Thanks
Francois.
Comments
Comment #1
FranCarstens commentedI think I might have found it...
When comparing the latest version of uc_cart.module to 6.x-2.2 I found the following difference:
The latest version looks like this:
The 6.x-2.2 version looks like this:
6.x-2.9 is missing the subit value:
'#submit' => array('uc_cart_view_form_submit'),Adding this line fixed the issue.
Comment #2
longwaveThis works for me on a fresh install, and uc_cart_view_form_submit() should be called by default if no submit handler is specified. Perhaps you have a contrib module or custom code that alters this form somehow?
Comment #3
tr commentedI cannot reproduce this problem on a clean install of 6.x-2.9.
That #submit was deliberately removed as part of #529110: Users misunderstand "Remove” checkbox on cart page (commit 9a5b54358af9) more than 15 months ago, and there have been no reports of any problems since then.
I do see the described behavior on RiffTrax, but that site is using an old version of Ubercart.
I suggest testing your site with the default Garland theme to see if the problem is theme related. I would also make very sure that you've run all the update functions and cleared your caches - this could perhaps be caused by a failed or incomplete upgrade.
Comment #4
longwaveComment #5
FranCarstens commentedI will do that and report back. Thanks.
In the meantime, is it okay to leave this line of code in? Of course, not while I'm testing. :D
Comment #6
tr commentedCan't reproduce this - feel free to reopen if you can provide steps to reproduce.
Comment #13
tr commented(removing tags added by spammer)