- This topic has 1 reply, 1 voice, and was last updated 12 years, 2 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › eStore – update cart button does not work if there are multiple items in cart
Tagged: cart update button, multiple items, shopping cart, shorcode
The site with the issue:
[http://lmhdev.coachwithilene.com/cart/]
from the top nav go to “Shop > Audios” add 2 different 14.95 items and click the “view cart” icon at the top of the page. Change the quantity of one of them, the click “Update Cart”
The “Update Cart” button does work when there is only one item in the cart.
Problem solved!
This cart is using eStore-extra-shortcodes and the update button needs to be added to eStore-extra-shortcodes/shortcode_include.php after this:
<input type=’hidden’ name=’eStore_cquantity’ value=’1′ /><input type=’text’ name=’quantity’ value='”.$item.”‘ size=’1′ onchange=’document.peStore_cquantity.submit();’ onkeypress=’document.getElementById(“pinfo”).style.display = “”;’ />
and before the closing </form> tag – so the whole thing will look like this (in my code it’s at line 1693)
<input type=’hidden’ name=’eStore_cquantity’ value=’1′ /><input type=’text’ name=’quantity’ value='”.$item.”‘ size=’1′ onchange=’document.peStore_cquantity.submit();’ onkeypress=’document.getElementById(“pinfo”).style.display = “”;’ /><input type=’submit’ value='”.ESTORE_UPDATE.”‘ class=’eStore_update_qty’ /></form>
I left out the if logic for the ESTORE_UPDATE button because I’m always going to use it.