if ( file_exists( substr( $product['images'][0]['src'], 1 ) ) ) : ?>
else : ?>
endif; ?>
defaultLanguage() and $url != '#')
$url = '/' . \Shared\Helpers\Helpers::get_session('current-lang') . $url;
?>
if (is_array($position['attributes']) and count($position['attributes'])) : ?>
foreach ($position['attributes'] as $row) : ?>
endif; ?> = \Shared\Tpl\Tpl::view( 'shop-basket/_partials/product-custom-fields', [ 'custom_fields' => $position['custom_fields'], 'product_code' => $position_hash ] ); ?> if ( $product['additional_message'] ):?> endif;?>
if ($row)
{
$row = explode('-', $row);
$attributeRepo = new \Domain\Attribute\AttributeRepository($GLOBALS['mdb']);
$attribute = $attributeRepo->frontAttributeDetails((int)$row[0], $this->lang_id);
echo '
endforeach; ?>
' . $attribute['language']['name'] . ':
';
$value = $attributeRepo->frontValueDetails((int)$row[1], $this->lang_id);
echo '' . $value['language']['name'] . '
';
}
?>
endif; ?> = \Shared\Tpl\Tpl::view( 'shop-basket/_partials/product-custom-fields', [ 'custom_fields' => $position['custom_fields'], 'product_code' => $position_hash ] ); ?> if ( $product['additional_message'] ):?> endif;?>
$price_product = \Domain\Basket\BasketCalculator::calculateBasketProductPrice( (float)$product['price_brutto_promo'], (float)$product['price_brutto'], $this -> coupon, $position );
if ( $price_product['price_new'] )
echo \Shared\Helpers\Helpers::decimal( $price_product['price_new'] ) . ' zł';
if ($price_product['price_new'] and $price_product['price_new'] < $price_product['price'])
echo '' . \Shared\Helpers\Helpers::decimal( $price_product['price'] ) . ' zł';
if ($price_product['price_new'] and $price_product['price_new'] < $price_product['price'])
$discount += \Shared\Helpers\Helpers::normalize_decimal(($price_product['price'] - $price_product['price_new']) * $position['quantity']);
?>
Wartość koszyka: = \Shared\Helpers\Helpers::decimal($summary); ?> zł
if ($discount) : ?>
Rabat:
-= \Shared\Helpers\Helpers::decimal($discount); ?> zł
Wartość koszyka po rabacie:
= \Shared\Helpers\Helpers::decimal($summary - $discount); ?> zł
endif; ?>
= \Shared\Tpl\Tpl::view( 'shop-coupon/form', [
'coupon' => \Shared\Helpers\Helpers::get_session('coupon')
] );
?>
Brak produktów w koszyku
endif; ?>