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.IsmaelPR1 wrote: ↑Tue Nov 21, 2017 10:57 pmClicking 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
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;
Code: Select all
$data['text_empty'] = $this->language->get('text_empty');
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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.straightlight wrote: ↑Tue Nov 21, 2017 11:30 pmTry 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:
add above:Code: Select all
$data['sort'] = $sort;
This should rectify the issue.Code: Select all
$data['text_empty'] = $this->language->get('text_empty');
Then it is settled, the language definition should NOT have been removed from the core in the first place. Thanks for your feedback.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Furthermore, further bug-fixes solutions has been posted here: viewtopic.php?f=202&t=200617#p707947
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Having same issue as poster.
Your shopping cart is empty! text shows in all my account section.
Your shopping cart is empty! text shows in all my account section.
Who is online
Users browsing this forum: No registered users and 88 guests