Не работает отображение "Нет на складе" при количестве товара -0
Код: Выделить всё
{if $smarty.get.module != "ComparisonView" && $smarty.get.module != "WishlistView"}
{if !$settings->is_preorder}
{* Нет на складе *}
[b] <div class="fn-not_preorder m-b-1 {if $product->variant->stock > 0}hidden-xs-up{/if}">
<button class="btn btn-danger-outline btn-block disabled" type="button" data-language="{$translate_id['tiny_products_out_of_stock']}">{$lang->tiny_products_out_of_stock}</button>
</div>[/b]
{else}
{* Предзаказ *}
<div class="fn-is_preorder m-b-1 {if $product->variant->stock > 0}hidden-xs-up{/if}">
<button class="btn btn-warning-outline btn-block i-preorder" type="submit" data-language="{$translate_id['tiny_products_pre_order']}">{$lang->tiny_products_pre_order}</button>
</div>
{/if}
{/if}