Page 1 of 1

Your shopping cart is empty!

Posted: Sun Jan 07, 2018 9:38 am
by enduroforum
Hi there

Within "My Account", "Wish List", "Address Book", "Downloads", ... all are empty (which is correct) and all sites show the correct head line. BUT: All sites say: "Your shopping cart is empty!"
I checked the language files. The correct phrase is in there for each site...
Any idea what could possibly cause such behavior?

Thanks,
Mike.

Re: Your shopping cart is empty!

Posted: Sun Jan 07, 2018 8:44 pm
by straightlight
Followed is a solution to fix this issue: viewtopic.php?f=202&t=200617#p707947

Re: Your shopping cart is empty!

Posted: Mon Jan 08, 2018 9:15 pm
by enduroforum
Thanks for your reply.

I followed the instructions and added the line of code into category.php, search.php, special.php and manufacturers (found in \catalog\controller\product\). Subsequently, I cleared the cache from witihin the admin's dashboard.
Unfortunately, nothing changed. The issue still exists.

Am I missing a step?
The link you provided suggests "refreshing opencart modification afterwards". I am not sure what is meant by this.

Thanks.

Re: Your shopping cart is empty!

Posted: Tue Jan 09, 2018 7:30 am
by straightlight
Also clear your cache from your admin - > extensions - > modifications - > refresh button.

Re: Your shopping cart is empty!

Posted: Wed Jan 10, 2018 12:51 am
by enduroforum
Hi

I am sorry to say that but the issue still exists...

Re: Your shopping cart is empty!

Posted: Wed Jan 10, 2018 1:47 am
by Evilonion
have you cleared your browser cache?
I did the same patch and worked ok for me?

Re: Your shopping cart is empty!

Posted: Wed Jan 10, 2018 3:43 am
by enduroforum
Yes, I did.
I even used another browser on a different computer...

Re: Your shopping cart is empty!

Posted: Wed Jan 10, 2018 7:14 am
by straightlight
Ensure your system/storage folder is located outside your public_html and to modify your config.php and admin/config.php file for your new DIR_STORAGE as well as editing your .htaccess file by removing the ^system/storage's entire line . Then, re-clear your entire OC cache.

Re: Your shopping cart is empty!

Posted: Wed Jan 10, 2018 5:42 pm
by enduroforum
OK, I did that.
Still: No change. :(

Re: Your shopping cart is empty!

Posted: Wed Jan 10, 2018 6:17 pm
by straightlight
Ensure your storage folder has writable access with recursive settings from at least 0755.

Re: Your shopping cart is empty!

Posted: Thu Jan 11, 2018 2:53 am
by enduroforum
This is also the case. But nevertheless: The issue remains. :-(
I just installed a fresh version of OC 3.0.1.1 which runs without this problem.

Re: Your shopping cart is empty!

Posted: Wed Apr 04, 2018 2:10 am
by dpanderson
I had the same widespread issue as original poster. Your fix works for me for most locations, but not for "Wishlist" and "Address Book". Does anyone know what files need to be modified to keep the "Your shopping cart is empty" message from appearing in an empty wishlist or address book?

Re: Your shopping cart is empty!

Posted: Thu Aug 02, 2018 1:28 pm
by Devin1
Hi
Also, it would be nice to have a list view of the refine search subcategory images & select the right choice the subcategory too - can this be done? I have a genuine reason to ask.

Re: Your shopping cart is empty!

Posted: Fri Sep 21, 2018 2:06 am
by vladborozna
Hi guys!! Go to system/config/catalog.php.

Change:

Code: Select all

'controller/*/after' => array(
'event/debug/after'
)
To:

Code: Select all

'controller/*/after'  => array(
      0=> 'event/language/after',
      1=> 'event/debug/after',
   )
Solved the problem in this way ;D

Re: Your shopping cart is empty!

Posted: Sun Jan 06, 2019 12:26 pm
by glolar
Bravo vladborozna,

I always hate to modify core files, but your solution appears to have fixed this issue on all empty pages!

Thank you!

Re: Your shopping cart is empty!

Posted: Fri Jun 21, 2019 7:24 pm
by harshalk
I changed the catalog file as suggested by vladborozna but the issue still persist. Please help guys