Hi , sorry again , for my stupidity
problem is solved.
I posted here in case someone got same problem as I did.
prior to the code mentioned before,
this line of code
Code: Select all
location = 'index.php?route=checkout/cart';
just under the line mentioned in early of the thread
Code: Select all
if (getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') {
should also be changed into new URL.
otherwise , the new URL will turn back to old URL and stop working.
for example , new URL is
http://xxx/cart.html
the first click on remove will refresh the page into
http://xxx/index.php?route=checkout/cart and then second time to remove item will NOT refresh the page on its own.
and be aware of CACHE.
I also forgot to clear my browser cache alone with Cloudflare cache.
there is a good way to determinate if JS file is changed by access directly
http://xxx/catalog/view/javascript/common.js to see the file is changed or not.
thanks for you help