Data zamówienia: = \S::pretty_date( 'j f Y', strtotime( $this -> order['date_order'] ) );?>
Status zamówienia: = $this -> statuses[ $this -> order['status'] ];?>
= ucfirst( \S::lang( 'dane-do-dostawy' ) );?>
= $this -> order['client_surname'];?> = $this -> order['client_name'];?>
= $this -> order['client_street'];?>
= $this -> order['client_postal_code'];?> = $this -> order['client_city'];?>
= $this -> order['client_email'];?>
= $this -> order['client_phone'];?>
if ( $this -> order['inpost_paczkomat'] ):?>
Paczkomat: = $this -> order['inpost_paczkomat'];?>
endif;?>
if ( $this -> order['orlen_point'] ):?>
Punkt Orlen: = $this -> order['orlen_point'];?>
endif;?>
if ( $this -> order['firm_name'] ):?>
= \S::lang( 'dane-do-faktury' );?>:
= $this -> order['firm_name'];?>
= $this -> order['firm_street'];?>
= $this -> order['firm_postal_code'];?> = $this -> order['firm_city'];?>
NIP: = $this -> order['firm_nip'];?>
endif;?>
if ( is_array( $this -> order['products'] ) and count( $this -> order['products'] ) ):?>
foreach ( $this -> order['products'] as $product ):?>
$product_tmp = \shop\Product::getFromCache( $product['product_id'], $lang['id'] );?>
if ( file_exists( substr( $product_tmp['images'][0]['src'], 1 ) ) ):?>

else:?>
endif;?>
= $product['name'];?>
= $product['attributes'];?>
= $product['custom_fields'];?>
= $product['message'] != '' ? 'Wiadomość: ' . $product['message'] : '';?>
echo \S::decimal( $product['price_brutto_promo'] ) . ' zł';
if ( $product['price_brutto_promo'] and $product['price_brutto_promo'] < $product['price_brutto'] )
echo '' . \S::decimal( $product['price_brutto'] ) . ' zł';
if ( $product['price_brutto_promo'] and $product['price_brutto_promo'] < $product['price_brutto'] )
$discount += \S::normalize_decimal( ( $product['price_brutto'] - $product['price_brutto_promo'] ) * $product['quantity'] );
?>
x = $product['quantity'];?>
= \S::decimal( \S::normalize_decimal( $product['price_brutto'] * $product['quantity'] ) );?> zł
$summary += \S::normalize_decimal( $product['price_brutto'] * $product['quantity'] );?>
endforeach;?>
Wartość koszyka = \S::decimal( $summary );?> zł
if ( $discount ):?>
Rabat = \S::decimal( $discount );?> zł
endif;?>
if ( $this -> coupon ):?>
Kod rabatowy: = $this -> coupon -> name;?> - = $this -> coupon -> amount;?> = $this -> coupon -> type == 1 ? '%' : 'zł';?>
endif;?>
= $this -> order['transport'];?> = \S::decimal( $this -> order['transport_cost'] );?> zł
= ucfirst( \S::lang( 'razem-z-dostawa' ) );?>: = \S::decimal( $summary - $discount + $this -> order['transport_cost'] );?> zł
endif;?>
if ( $this -> order['message'] ):?>
Wiadomość:
endif;?>