if ( file_exists( substr( $product[ 'images' ][ 0 ][ 'src' ], 1 ) ) ):?>
else:?>
endif;?>
$product[ 'language' ][ 'seo_link' ] ? $url = '/' . $product[ 'language' ][ 'seo_link' ] : $url = '/p-' . $product[ 'id' ] . '-' . \S::seo( $product[ 'language' ][ 'name' ] );
if ( \S::get_session( 'current-lang' ) != \front\factory\Languages::default_language() and $url != '#' )
$url = '/' . \S::get_session( 'current-lang' ) . $url;
?>
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 ($row)
{
$row = explode('-', $row);
$attribute = \front\factory\ShopAttribute::attribute_details($row[0], $this->lang_id);
echo '' . $attribute['language']['name'] . ': ';
$value = \front\factory\ShopAttribute::value_details($row[1], $this->lang_id);
echo $value['language']['name'];
}
?>
endforeach; ?>
endif;?> = \Tpl::view( 'shop-basket/_partials/product-custom-fields', [ 'custom_fields' => $position['custom_fields'] ] ); ?>
$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']);
?>
x = $position[ 'quantity' ];?> = \S::lang( 'szt' );?>.
= \S::decimal( \S::normalize_decimal( $price_product['price_new'] * $position[ 'quantity' ] ) );?> zł
Wartość koszyka:
= \S::decimal( $summary );?> zł
if ( $discount ):?>
Rabat:
-= \S::decimal( $discount ); ?> zł
endif;?>
= $this -> transport[ 'name_visible' ];?>:
= $summary >= $this -> settings[ 'free_delivery' ] ? '0,00' : \S::decimal( $this -> transport[ 'cost' ] );?> zł
Razem:
if ( $discount )
$summary -= $discount;
?>
= $summary >= $this -> settings[ 'free_delivery' ] ? \S::decimal( $summary ) : \S::decimal( $summary + $this -> transport[ 'cost' ] );?> zł
= $this -> payment_method[ 'name' ];?>
if ( $this -> basket_message ):?>
Wiadomość:
= $this -> basket_message;?>
endif;?>
else:?>
Brak produktów w koszyku
endif;?>