In some cases, the "Refine Search", we find the category repeating in Category page (route=product/category). The url of the repeats are same.
In the example below, "Terracotta" repeats 4 times (i have just pasted twice) with same url
Version: 3.0.2.0
Necklace Set
Refine Search
Terracotta
Dokra/Dhokra
Beads/Crystal
Costume/Artificial
Jute & Paddy
Sea Shell
Copper
Bamboo & Wooden
Terracotta
Dokra/Dhokra
Beads/Crystal
Costume/Artificial
Jute & Paddy
Sea Shell
Copper
Bamboo & Wooden
This occurs on the OpenCart Demo site as well.
https://demo.opencart.com/index.php?rou ... ry&path=34
- Twig functions don't seem to work as expected/ intended.
Possible fix:
File location: /catalog/view/theme/default/template/product/category.twig
Offending code chunk:
Fixed code:
Hope this helps.
https://demo.opencart.com/index.php?rou ... ry&path=34
- Twig functions don't seem to work as expected/ intended.
Possible fix:
File location: /catalog/view/theme/default/template/product/category.twig
Offending code chunk:
Code: Select all
<div class="row"> {% for category in categories|batch((categories|length / 4)|round(1, 'ceil')) %}
<div class="col-sm-3">
<ul>
{% for category in categories %}
<li><a href="{{ category.href }}">{{ category.name }}</a></li>
Code: Select all
<div class="row"> {% for categorycolumns in categories|batch((categories|length / 4)|round(1, 'ceil')) %}
<div class="col-sm-3">
<ul>
{% for category in categorycolumns %}
<li><a href="{{ category.href }}">{{ category.name }}</a></li>
Lets' forge our present as past for the future. - Kay Lohn
This bug happened in 3000 to 3012 only, if you are using 3020, it should not exist this issue.
Or you may copy the file in zip of 3020 to replace the template file and try again.
main folder\catalog\view\theme\default\template\product\category.twig
For Opencart demo, since it using the early stage of Opencart 3.0 to create, therefore....
Or you may copy the file in zip of 3020 to replace the template file and try again.
main folder\catalog\view\theme\default\template\product\category.twig
For Opencart demo, since it using the early stage of Opencart 3.0 to create, therefore....
__________________________________________________________________
New web developer in Opencart
Please mention we work at 9:30 am to 18:30 pm in every Monday to Friday.(UTC+8)
Who is online
Users browsing this forum: No registered users and 5 guests