if ( file_exists( substr( $product[ 'images' ][ 0 ][ 'src' ], 1 ) ) ):?>
else:?>
endif;?>
$product[ 'language' ][ 'seo_link' ] ? $url = '/' . $product[ 'language' ][ 'seo_link' ] : $url = '/p-' . $product[ 'id' ] . '-' . \Shared\Helpers\Helpers::seo( $product[ 'language' ][ 'name' ] );
if ( \Shared\Helpers\Helpers::get_session( 'current-lang' ) != (new \Domain\Languages\LanguagesRepository( $GLOBALS['mdb'] ))->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'] ] ); ?>
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'] ] ); ?>
$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']);
?>
x = $position[ 'quantity' ];?> = \Shared\Helpers\Helpers::lang( 'szt' );?>.
= \Shared\Helpers\Helpers::decimal( \Shared\Helpers\Helpers::normalize_decimal( $price_product['price_new'] * $position[ 'quantity' ] ) );?> zł
Wartość koszyka:
= \Shared\Helpers\Helpers::decimal( $summary );?> zł
if ( $discount ):?>
Rabat:
-= \Shared\Helpers\Helpers::decimal( $discount ); ?> zł
endif;?>
= $this -> transport[ 'name_visible' ];?>:
if ( $this -> transport[ 'delivery_free' ] == 1 ):?>
0,00 zł
else:?>
= \Shared\Helpers\Helpers::decimal( $this -> transport[ 'cost' ] );?> zł
endif;?>
if ( $discount )
$summary -= $discount;
?>
= $this -> transport[ 'delivery_free' ] == 1 ? \Shared\Helpers\Helpers::decimal( $summary ) : \Shared\Helpers\Helpers::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;?>