if ( file_exists( substr( $product['images'][0]['src'], 1 ) ) ) : ?>
else : ?>
endif; ?>
if (is_array($position['attributes']) and count($position['attributes'])) : ?>
foreach ($position['attributes'] as $row) : ?>
endif; ?> = \Tpl::view( 'shop-basket/_partials/product-custom-fields', [ 'custom_fields' => $position['custom_fields'] ] ); ?> if ( $product -> additional_message ):?> endif;?>
if ($row)
{
$row = explode('-', $row);
$attribute = \front\factory\ShopAttribute::attribute_details($row[0], $this->lang_id);
echo '
endforeach; ?>
' . $attribute['language']['name'] . ':
';
$value = \front\factory\ShopAttribute::value_details($row[1], $this->lang_id);
echo '' . $value['language']['name'] . '
';
}
?>
endif; ?> = \Tpl::view( 'shop-basket/_partials/product-custom-fields', [ 'custom_fields' => $position['custom_fields'] ] ); ?> if ( $product -> additional_message ):?> endif;?>
$price_product = \shop\Product::calculate_basket_product_price( (float)$product['price_brutto_promo'], (float)$product['price_brutto'], $this -> coupon, $position );
if ( $price_product['price_new'] )
echo \S::decimal( $price_product['price_new'] ) . ' zł';
if ($price_product['price_new'] and $price_product['price_new'] < $price_product['price'])
echo '' . \S::decimal( $price_product['price'] ) . ' zł';
if ($price_product['price_new'] and $price_product['price_new'] < $price_product['price'])
$discount += \S::normalize_decimal(($price_product['price'] - $price_product['price_new']) * $position['quantity']);
?>
Wartość koszyka: = \S::decimal($summary); ?> zł
if ($discount) : ?>
Rabat:
-= \S::decimal($discount); ?> zł
Wartość koszyka po rabacie:
= \S::decimal($summary - $discount); ?> zł
endif; ?>
= \Tpl::view( 'shop-coupon/form', [
'coupon' => \S::get_session('coupon')
] );
?>
Brak produktów w koszyku
endif; ?>