This work fine on fresh 3.0.3.2 install, but not on my site so something is causing this...
How can I track down why the cart/page isn't refreshing after clicking the remote X button?
~ OC 3.0.3.2 and OCmods only ~
Disable your OCMODs one-by-one until the problem disappears.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
There has been some discussion about SEO keywords causing this like this post entry (last one from OpenQuestion) viewtopic.php?t=186083supak111 wrote: ↑Wed Dec 18, 2024 7:08 pmIn my shopping cart when I click the X button to remote the only item, page should refresh so that the cart looks empty but it doesn't.
This work fine on fresh 3.0.3.2 install, but not on my site so something is causing this...
How can I track down why the cart/page isn't refreshing after clicking the remote X button?
Do you have seo keywords setup for your checkout?
Mike
cue4cheap not cheap quality
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
https://www.opencart.com/index.php?rout ... n_id=31993
There is another similar extension that says this code should fix the X remove cart button issue:
"
How to fix the issue:
For example default OPENCART theme:
1) Locate file: Your-Store\catalog\view\javascript\common.js
2) locate this line:
Code: Select all
if (getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') {
Remove whole if - else statement and add this instead:
Code: Select all
var url_seo = document.URL;
var m = url_seo.match(/\/([^\/]+)[\/]?$/);
if (m[1] == 'cart' || m[1] == 'checkout') {
location = 'index.php?route=checkout/cart';
} else {
$('#cart > ul').load('index.php?route=common/cart/info ul li');
}
will reload the cart thus removing the product"
~ OC 3.0.3.2 and OCmods only ~
Good that it is fixed but in my opinion don't do SEO URLs for the checkout pages. But that is only my opinion.

Mike
cue4cheap not cheap quality
Not really needed. The SEO to help people find your pages. Pages like checkout have no real need to be found by people. Maybe slightly wanted to ensure people know they can buy something from you but I think that is pretty intuitive by looking at product pages and the add to cart.
Mike
cue4cheap not cheap quality
Great, can we mark this as [SOLVED]?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
I would love to be educated on this... I looked and didn't see anythingADD Creative wrote: ↑Wed Dec 18, 2024 8:58 pmUse your web browser's developer tool to look for error. There should be a POST via common.js to /index.php?route=checkout/cart/remove which will return JSON and trigger a JavaScript redirect.
~ OC 3.0.3.2 and OCmods only ~
In the network tab you can see any request made by the browser, what is requested, send, received, the works, including that request.supak111 wrote: ↑Sun Dec 22, 2024 1:17 pmI would love to be educated on this... I looked and didn't see anythingADD Creative wrote: ↑Wed Dec 18, 2024 8:58 pmUse your web browser's developer tool to look for error. There should be a POST via common.js to /index.php?route=checkout/cart/remove which will return JSON and trigger a JavaScript redirect.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Users browsing this forum: Amazon [Bot] and 11 guests