Complete Domain-Driven Architecture migration: - Phase 1-4: Transport, ProductSet, Coupon, Shop, Search, Basket, ProductCustomField, Category, ProductAttribute, Promotion - Phase 5: Order (~562 lines) + Product (~952 lines) - ~20 Product methods migrated to ProductRepository - Apilo sync migrated to OrderAdminService - Production hotfixes: stale Redis cache (prices 0.00), unqualified Product:: refs in LayoutEngine, object->array template conversion - AttributeRepository::getAttributeValueById() Redis cache added Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
941 B
PHP
22 lines
941 B
PHP
<div class="warehouse-message">
|
|
<?
|
|
// jeżeli produkt nie jest kombinacją
|
|
if ( !$this -> product['product_combinations'] )
|
|
{
|
|
if ( $this -> product['quantity'] > 0 or $this -> product['quantity'] == 0 and $this -> product['stock_0_buy'] )
|
|
{
|
|
if ( $this -> product['language']['warehouse_message_nonzero'] )
|
|
echo $this -> product['language']['warehouse_message_nonzero'];
|
|
else if ( $this -> settings['warehouse_message_nonzero_' . $this -> lang_id] )
|
|
echo $this -> settings['warehouse_message_nonzero_' . $this -> lang_id];
|
|
}
|
|
else
|
|
{
|
|
if ( $this -> product['language']['warehouse_message_zero'] )
|
|
echo $this -> product['language']['warehouse_message_zero'];
|
|
else if ( $this -> settings['warehouse_message_zero_' . $this -> lang_id] )
|
|
echo $this -> settings['warehouse_message_zero_' . $this -> lang_id];
|
|
}
|
|
}
|
|
?>
|
|
</div>
|