ver. 0.251 - migrate Dictionaries to Domain/Controller and remove legacy classes

This commit is contained in:
2026-02-10 00:04:32 +01:00
parent 7e8a73cb37
commit 11e22d1838
16 changed files with 788 additions and 291 deletions

View File

@@ -1,6 +1,7 @@
<? global $lang_id;?>
<? global $lang_id, $mdb;?>
<?
$attributes = \shop\Product::get_product_attributes( $this -> product['product_combinations'] );
$dictionariesRepository = new \Domain\Dictionaries\DictionariesRepository( $mdb );
?>
<script class="footer" type="text/javascript">
function fradio_label_click( element, refresh )
@@ -67,7 +68,7 @@
</div>
<? 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 );?>
<?= \shop\Shop::shortPrice( $this -> product -> price_brutto / $this -> product -> weight );?> <span class="small">zł</span> / <?= $dictionariesRepository -> getUnitNameById( (int)$this -> product -> product_unit_id, $this -> lang_id );?>
</div>
<? endif;?>
<? endif;?>