Hello Everyone,
I faced problem with my shopping website.
when I click X button which removes the product it will not be removed, I have to refresh the page then it will be removed.
How can I fix this problem. I want it be removed when I click X button immediately.
I asked a programmer about this issue, he said the problem is in htaccess file so, he gave me ways that he thought they will fix the problem but they didn't work and didn't fix the problem such as:
updating the file "htaccess"
changing the file name
turning off SEO
I hope I can find the solution here
thanks in advance
This is a small fix
add location.reload(); in onclick event.
edit "checkout/cart.twig"
find:
replace :
hope this work for you
add location.reload(); in onclick event.
edit "checkout/cart.twig"
find:
Code: Select all
<button type="button" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger" onclick="cart.remove('{{ product.cart_id }}');"><i class="fa fa-times-circle"></i></button>
Code: Select all
<button type="button" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger" onclick="cart.remove('{{ product.cart_id }}');location.reload();"><i class="fa fa-times-circle"></i></button>
For quick, professional OpenCart support
Online
contact me on skype : dparakhiya_1
email : dipneshp@gmail.com
Using a dirty fix to eliminate the symptoms of an underlying problem is not considered proper software development.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Who is online
Users browsing this forum: Bing [Bot] and 225 guests