I created a category called Glossary.
I wanted the button_cart not to appear for products in this category/model.
I change the catalog/view/template/thumb.twig, like this:
<div class="button-group">
{% if model != 'Glossary' %}
<button type="submit" formaction="{{ add_to_cart }}" data-bs-toggle="tooltip" title="{{ button_cart }}"><i class="fa-solid fa-shopping-basket"></i></button>
{% endif %}
<button type="submit" formaction="{{ add_to_wishlist }}" data-bs-toggle="tooltip" title="{{ button_wishlist }}"><i class="fa-solid fa-heart"></i></button>
<button type="submit" formaction="{{ add_to_compare }}" data-bs-toggle="tooltip" title="{{ button_compare }}"><i class="fa-solid fa-arrow-right-arrow-left"></i></button>
</div>
But didn't work at all.
Thank you for your help.
OC version.AndreBarini wrote: ↑Thu Oct 12, 2023 10:16 pmI created a category called Glossary.
I wanted the button_cart not to appear for products in this category/model.
I change the catalog/view/template/thumb.twig, like this:
<div class="button-group">
{% if model != 'Glossary' %}
<button type="submit" formaction="{{ add_to_cart }}" data-bs-toggle="tooltip" title="{{ button_cart }}"><i class="fa-solid fa-shopping-basket"></i></button>
{% endif %}
<button type="submit" formaction="{{ add_to_wishlist }}" data-bs-toggle="tooltip" title="{{ button_wishlist }}"><i class="fa-solid fa-heart"></i></button>
<button type="submit" formaction="{{ add_to_compare }}" data-bs-toggle="tooltip" title="{{ button_compare }}"><i class="fa-solid fa-arrow-right-arrow-left"></i></button>
</div>
But didn't work at all.
Thank you for your help.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
OC Version 4.0.2.1.
When I try to upgrade to 4.0.2.3 I receive this message: Version is lower than the current version!
When I try to upgrade to 4.0.2.3 I receive this message: Version is lower than the current version!
Who is online
Users browsing this forum: No registered users and 10 guests