opencart / opencart

A free shopping cart system. OpenCart is an open source PHP-based online e-commerce solution.

Home Page:https://www.opencart.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

subcategories data not showing

vsadoug opened this issue · comments

What version of OpenCart are you reporting this for?
4.0.2.3
Describe the bug
When creating a subcategory, the title and description of that subcat do not show on the storefront page. Only the parent category title and description show.
To Reproduce
default install.
Steps to reproduce the behavior:

  1. install default store
  2. go to storefront, Click on components category,
  3. click on Mice/Trackballs
  4. Components still shows at top of page, it should read Mice/Trackballs and show the description and photo for Mice/Trackballs from admin side.

Expected behavior
It should show the category you are in, not the parent. this makes the descriptions of subcategories useless. Any description you put on the admin side into a subcategory is not shown.

Screenshots / Screen recordings
http://vstraining.com/oc1.png

Server / Test environment (please complete the following information):

  • OC 4.0.2.3 stock install
  • alma linux
  • PHP version 8.2
  • Apache version - latest
  • Browser(s) tested with all.

Additional context
I tried using {{ child.name }} but it doesnt pull it for some reason.

I also wanted to write about this error, but I was beaten to it :)

But what is also important to add is the issue with breadcrumbs. They are also not working correctly. In the screenshot, it can be seen that it shows Components>Components instead of Components>Mice and Trackballs.

By the way, it works correctly in version 4.0.0.0.

I checked upload\catalog\controller\product\category.php and they are different. I have not tried replacing from 4.0.0.0 to 4.0.2.3 yet. But I would like to receive a fix from Daniel.

Please release some patch that will fix this.

If you add a third subcategory, it will display the description of the second subcategory, and also "?route=product/category&language=en-gb" is added to the links in the breadcrumb path.

already fixed in master if there waas an issue