Poprawa warunku sprawdzającego wagę produktu w szablonie produktu

This commit is contained in:
2024-12-31 17:40:39 +01:00
parent eb39fa20ce
commit 9a775d8ec0
2 changed files with 1 additions and 1 deletions

View File

@@ -67,7 +67,7 @@
<div class="price">
<?= \shop\Shop::shortPrice( $this -> product -> price_brutto );?> <span class="small">zł</span>
</div>
<? if ( $this -> product -> weight && $this -> product -> product_unit_id ):?>
<? if ( $this -> product -> weight > 0 && $this -> product -> product_unit_id ):?>
<div class="price_weight">
<?= \shop\Shop::shortPrice( $this -> product -> price_brutto / $this -> product -> weight );?> <span class="small">zł</span> / <?= \front\factory\Dictionaries::get_name_by_id( $this -> product -> product_unit_id, $this -> lang_id );?>
</div>