Post by IsmaelPR1 » Tue Nov 21, 2017 10:57 pm

Clicking on an empty category yields the same issue for me a message that says "your shopping cart is empty" which makes no sense why that would display in an empty category. There is bad code somewhere. This was a fresh install for me as well on OC 3.0.2.0

Newbie

Posts

Joined
Sat Oct 21, 2017 1:30 am

Post by straightlight » Tue Nov 21, 2017 11:30 pm

IsmaelPR1 wrote:
Tue Nov 21, 2017 10:57 pm
Clicking on an empty category yields the same issue for me a message that says "your shopping cart is empty" which makes no sense why that would display in an empty category. There is bad code somewhere. This was a fresh install for me as well on OC 3.0.2.0
Try to explain that to the king of the Github Opencart north. ::)

Let's see if the following solution will resolve the issue. In your catalog/controller/product/category.php file,

find:

Code: Select all

$data['sort'] = $sort;
add above:

Code: Select all

$data['text_empty'] = $this->language->get('text_empty');
This should rectify the issue.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by IsmaelPR1 » Thu Nov 23, 2017 1:29 am

straightlight wrote:
Tue Nov 21, 2017 11:30 pm
Try to explain that to the king of the Github Opencart north. ::)

Let's see if the following solution will resolve the issue. In your catalog/controller/product/category.php file,

find:

Code: Select all

$data['sort'] = $sort;
add above:

Code: Select all

$data['text_empty'] = $this->language->get('text_empty');
This should rectify the issue.
Thanks buddy, this worked for my empty categories which were displaying "your shopping cart is empty" message. I've been following a post or two where people were indeed having this same issue but it hasn't been recognized as such. Nonetheless, thank you for the help.

Newbie

Posts

Joined
Sat Oct 21, 2017 1:30 am

Post by straightlight » Thu Nov 23, 2017 3:45 am

Then it is settled, the language definition should NOT have been removed from the core in the first place. Thanks for your feedback.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Fri Dec 22, 2017 1:04 am

Furthermore, further bug-fixes solutions has been posted here: viewtopic.php?f=202&t=200617#p707947

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by leeburgess » Wed Aug 01, 2018 2:58 am

Having same issue as poster.
Your shopping cart is empty! text shows in all my account section.

New member

Posts

Joined
Sat Sep 16, 2017 3:19 am
Who is online

Users browsing this forum: John7778, VMNL and 10 guests