Page 1 of 1

Cart , catalog, checkout issue on opencart 3.0.2.0

Posted: Mon Jul 30, 2018 2:11 pm
by synapseindia
Hi ,
I am using opencart 3.0.2.0 and facing some issues.
For instance - When we remove product from cart it is still showing in cart . We need to hard refresh page to appear cart changes.
Also, when visit on any category and there is no product assigned to that category . It is showing a message "Your shopping cart is empty" instead showing "There is no result". However i have fixed the catalog message issue but still having issue related to cart. Please suggest.
Solution to fix message on category page - comment out below lines.

Code: Select all

	 'controller/*/after'  => array(

		'event/debug/after'

	)
Thanks

Re: Cart , catalog, checkout issue on opencart 3.0.2.0

Posted: Mon Jul 30, 2018 7:54 pm
by emre.alan
hi,
if you have any code about browser caching in your .htaccess file, try delete lines about js. Clean your browser history and try it. this solved my problem hope it works with you too

Re: Cart , catalog, checkout issue on opencart 3.0.2.0

Posted: Tue Jul 31, 2018 5:50 pm
by sanshay
Seems an event problem.
Check if you have 33 events in admin/extensions/events.
If not check this link where i had the same event issues and fixed my mail and cart problems.

Code: Select all

https://forum.opencart.com/viewtopic.php?f=201&t=205958

Re: Cart , catalog, checkout issue on opencart 3.0.2.0

Posted: Thu Aug 02, 2018 7:56 pm
by synapseindia
Thanks for your response. But i have checked that Extension-> Event has 33 events in the listing .

Re: Cart , catalog, checkout issue on opencart 3.0.2.0

Posted: Thu Aug 02, 2018 8:39 pm
by straightlight
Are they all active? Did you also properly configured your admin - > systems - > settings - > edit settings - > mail tab's entire form - including the bottom?

Re: Cart , catalog, checkout issue on opencart 3.0.2.0

Posted: Tue Aug 21, 2018 8:53 pm
by synapseindia
Yes, i have checked the same . Everything is fine. But did not get success.

For now i have disabled to create cache of twig file. It is temporary solution.


Thanks

Re: Cart , catalog, checkout issue on opencart 3.0.2.0

Posted: Mon Oct 01, 2018 11:38 pm
by sayahan
Hello,
I had a similar problem. Cause of my problem is browser cache. I writed meta tags for no-cache on header.twig or htaccess mod_header rules but I couldn't get rid of browser cache. At the end of this solution, it is works.
I writed to beginning of file on site root index.php:

Code: Select all

header("Cache-Control: no-cache, must-revalidate");
Normally you can control header with .htaccess but I use multiPHP and I have to use a .htaccess mime_module rule ( AddType application/x-httpd-ea-php56 .php .php5 .phtml ) for php5.6. Because of this rule, Header unset Cache-Control rule not works in .htaccess

I hope this works for you.