Hi, I have a problem that showed up a while ago and I can't find where to fix it.
If I add items to the shopping cart they show up in the cart however when I delete a product from the shopping cart the page doesn't refresh like it use to. The item is removed from the cart as it should be and the cart button in the header updates as it should, only the screen doesn't refresh, I have to do it manually with the refresh button.
I'm running v2.0.3.1 with default theme.
If I add items to the shopping cart they show up in the cart however when I delete a product from the shopping cart the page doesn't refresh like it use to. The item is removed from the cart as it should be and the cart button in the header updates as it should, only the screen doesn't refresh, I have to do it manually with the refresh button.
I'm running v2.0.3.1 with default theme.
read this, just to make sure:
http://forum.opencart.com/viewtopic.php?f=181&t=146489
Ernie
ipc.li/cart/
http://forum.opencart.com/viewtopic.php?f=181&t=146489
Ernie
ipc.li/cart/
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Hi, no that didn't help. I've discovered it has something to do with "Use SEO URLs" in the server settings. When I turn this on the feature works however that's when the shopping cart stops refreshing after removing an item.
Any ideas?
Any ideas?
No one else has had this when turning on SEO URL's? I'm hoping to go live this week but need this resolved.
Then, the cart stops refreshing, because it cannot find it's own 'Link-place' again, because it's not defined, by the SEO-URL Setup.
Personally, I'm very new in this SEO thing, I was surprised, finding such a huge amount of Mod's, and all full of advertising, to 'link them all'. Therefore, I always figured, that this 'Problem' has not been solved in the first Place, in full, and put this as to be one of my 'last' Job's, to find out about.
Just change it back, if you need your Shop to go online soon, until someone finds a 'final' Solution for this, possibly in the next v.2.x Version.
I would add it to the OpenCart Github.com Section, then, at least, the Pro's will look into it!
https://github.com/opencart/opencart/commits/master
Good Luck
Ernie
Personally, I'm very new in this SEO thing, I was surprised, finding such a huge amount of Mod's, and all full of advertising, to 'link them all'. Therefore, I always figured, that this 'Problem' has not been solved in the first Place, in full, and put this as to be one of my 'last' Job's, to find out about.
Just change it back, if you need your Shop to go online soon, until someone finds a 'final' Solution for this, possibly in the next v.2.x Version.
I would add it to the OpenCart Github.com Section, then, at least, the Pro's will look into it!
https://github.com/opencart/opencart/commits/master
Good Luck
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Is there any update on this issue?
Or are we all to update opencart and loose the use of half our add-ons agains
Or are we all to update opencart and loose the use of half our add-ons agains
Life is for the taking. It's everything else you need to pay for.
Anne Makes Lovely Candles
New member
I use this simple workaround in account/cart.tpl to solve this:
--> add location.reload(); in onclick event.
Code: Select all
<button type="button" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger" onclick="cart.remove('<?php echo $product['key']; ?>');"><i class="fa fa-times-circle"></i></button></span></div></td>
Code: Select all
<button type="button" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger" onclick="cart.remove('<?php echo $product['key']; ?>'); location.reload();"><i class="fa fa-times-circle"></i></button></span></div></td>
Hi Thanks that worked a treat for me!
Hopefully you mean to change the text in checkout/cart.tpl and not account/cart.tpl
Hopefully you mean to change the text in checkout/cart.tpl and not account/cart.tpl
Life is for the taking. It's everything else you need to pay for.
Anne Makes Lovely Candles
New member
Hello,
I am having same issue but using a custom theme and coding is slightly different, can someone help to identify where I can add the reload command on this?
I am having same issue but using a custom theme and coding is slightly different, can someone help to identify where I can add the reload command on this?
Code: Select all
<td class="quantity">
<input type="text" name="quantity[<?php echo $product['cart_id']; ?>]" value="<?php echo $product['quantity']; ?>" size="1" />
<a onclick="$('#basket').submit();" data-tooltip="<?php echo $button_update; ?>" class="sq_icon"><i class="fa fa-refresh"></i></a>
</td>
OC version?waghelak wrote: ↑Mon Mar 11, 2019 5:46 amHello,
I am having same issue but using a custom theme and coding is slightly different, can someone help to identify where I can add the reload command on this?
Code: Select all
<td class="quantity"> <input type="text" name="quantity[<?php echo $product['cart_id']; ?>]" value="<?php echo $product['quantity']; ?>" size="1" /> <a onclick="$('#basket').submit();" data-tooltip="<?php echo $button_update; ?>" class="sq_icon"><i class="fa fa-refresh"></i></a> </td>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I have the same problem, but for me the file does not match the above.
This is my file:
And when I add this "location.reload ();" did not work. The difference is that instead of 'key' there is 'cart_id'.
Default theme. OpenCart 2.3.0.2.
This is my file:
Code: Select all
<button type="button" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger" onclick="cart.remove('<?php echo $product['cart_id']; ?>');"><i class="fa fa-times-circle"></i></button></span></div></td>
Default theme. OpenCart 2.3.0.2.
Who is online
Users browsing this forum: No registered users and 170 guests