OC version.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
3.0.2.0
The '<' operator is perfectly valid, see https://twig.symfony.com/doc/3.x/templa ... omparisons
Something else must have gone wrong with your OpenCart site.
Something else must have gone wrong with your OpenCart site.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Full code of the incident request needed to assist.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
This part is extracted from category.twig
Code: Select all
<div class="image rotate-image-container">
{% if product.quantity < 0 %}
<div class="insight-stock-label">{{ text_out_of_stock }}</div>
{% endif %}
<a href="{{ product.href }}">
<img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive img-default-image" />
{% if product.rotate_image %}
<img src="{{ product.rotate_image }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive img-rotate-image" />
{% endif %}
</a>
</div>
As a temporary compromise, I did the following don't laugh
Code: Select all
{% if product.quantity > 0 %}
{% else %}
<div class="insight-stock-label">{{ text_out_of_stock }}</div>
{% endif %}
Who is online
Users browsing this forum: Bing [Bot], pprmkr and 96 guests