global $lang_id; if ( $this -> settings['ssl'] ) $base = 'https'; else $base = 'http'; echo $this -> settings['newsletter_header']; ?>
= ucfirst( \S::lang( 'podsumowanie-zamowienia' ) );?> = \S::lang( 'nr' );?> = $this -> order['number'];?> = \S::lang( 'z-dnia' );?> = date( 'd.m.Y H:i', strtotime( $this -> order['date_order'] ) );?>
if ( is_array( $this -> order['products'] ) ): foreach ( $this -> order['products'] as $product ):?> $summary_tmp += \S::normalize_decimal( $product['price_brutto'] * $product['quantity'] );?> $quantity += $product['quantity'];?> endforeach; endif;?> if ( $this -> order['coupon_amount'] ) { if ( $this -> order['coupon_type'] === '1' ) { $summary_tmp = $summary_tmp - $summary_tmp * $this -> order['coupon_amount'] / 100; } } ?> $summary_tmp += $this -> order['transport_cost'];?> if ( $this -> order['payment_method_id'] == 1 ):?>= \S::lang( 'dane-do-przelewu' );?>:
= \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;?>
= \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'];?>
= \S::lang( 'zamowione-produkty' );?>:
| = ucfirst( \S::lang( 'produkt' ) );?> | = ucfirst( \S::lang( 'cena' ) );?> | = ucfirst( \S::lang( 'ilosc' ) );?> | = ucfirst( \S::lang( 'razem' ) );?> |
|---|---|---|---|
|
$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;
$regex = "-(]+href\s*=\s*['\"])(((?!'|\"|http://).)*)(['\"][^>]*>)-i";
echo preg_replace( $regex, "$1" . $base . "://" . $_SERVER['SERVER_NAME'] . "$2$4", '' . $product['language']['name'] . '' );
if ( $position['attributes'] ):?>
= $position['attributes'];?>
endif;
// custom fields
if ( $position['custom_fields'] ):?>
= $position['custom_fields'];?>
endif;
if ( $position['message'] ):?>
Wiadomość: = $position['message'];?>
endif;
?>
|
|||
|
$regex = "-( |
echo \S::decimal( $position['price_brutto_promo'] ) . ' zł'; if ( $position['price_brutto_promo'] and $position['price_brutto_promo'] < $position['price_brutto']) echo '' . \S::decimal( $position['price_brutto'] ) . ' zł'; if ( $position['price_brutto_promo'] and $position['price_brutto_promo'] < $position['price_brutto'] ) $discount += \S::normalize_decimal( ( $position['price_brutto'] - $position['price_brutto_promo'] ) * $position['quantity'] ); ?> | = $position['quantity'];?> | = \S::decimal( \S::normalize_decimal( $position['price_brutto_promo'] * $position['quantity'] ) );?> zł |
| Wartość koszyka: | = \S::decimal( $summary );?> zł | ||
| Rabat: -= \S::decimal( $discount );?> zł | |||
| Kod rabatowy: = $this -> coupon -> name;?> - = $this -> coupon -> amount;?> = $this -> coupon -> type == 1 ? '%' : 'zł';?> | |||
| = $this -> order['payment_method'];?> | |||
| = $this -> order['transport'];?> = $this -> order['transport_description'];?> |
= \S::decimal( $this -> order['transport_cost'] );?> zł | ||
| = ucfirst( \S::lang( 'razem' ) );?>: | = \S::decimal( $summary - $discount + $this -> order['transport_cost'] );?> zł | ||
| Wiadomość: = $this -> order['message'];?> | |||