{if empty($order)}
{$shipping_address_html}
{if !empty($shipping_custom_fields)}
{foreach $shipping_custom_fields as $f}
{$f.title}: {$f.value|escape}
{/foreach}
[`Preferred shipping time:`] {if $customer_delivery_date} {wa_date('date', $customer_delivery_date, waDateTime::getDefaultTimezone())|escape} {elseif $customer_delivery_date_str} {$customer_delivery_date_str|escape} {/if} {if $customer_delivery_time} {if $customer_delivery_date} {/if} {$customer_delivery_time.from_hours|escape}:{$customer_delivery_time.from_minutes|escape} - {$customer_delivery_time.to_hours|escape}:{$customer_delivery_time.to_minutes|escape} {/if}
{/if} {/if} {$_package = shopShipping::extractItemsTotal($order.params, true)} {if $_package} {if !empty($_package.package_total_weight)}[`Total order weight`]: {$_package.package_total_weight}
{/if} {if !empty($_package)}[`Total order dimensions`]: {$_package.package_total_width}×{$_package.package_total_length}×{$_package.package_total_height}
{/if} {/if} {if $shipping_address} {if !empty($courier)}
{if !empty($shipping_date)}
[`Shipping time`]: {wa_date('date', $shipping_date, waDateTime::getDefaultTimezone())|escape} {$shipping_time_start|escape} - {$shipping_time_end|escape}
{if !empty($order.state)}
{/if}
{/if}
{if $edit_shipping_details_available}
[`Edit shipping details`]
{/if}
{$tracking}{/if} {/if} {/if} {if !empty($params.payment_name)}
{$billing_address}
{/if} {/if} {if $order.comment}{$order.comment|escape}{/if}
[`Qty`] | [`Total`] | ||
---|---|---|---|
{if $item.type != 'service'}
{if !empty($item.image_id)}
{$wa->shop->productImgHtml(['id' => $item.product_id, 'image_id' => $item.image_id, 'image_filename' => $item.image_filename, 'ext' => $item.ext], '48x48', ["class" => "js-retina-image"])}
{else}
![]() |
{if $item.type == 'service'}+{/if}
{if !empty($item.deleted)}
{$item.name|escape}
{if $item.type == 'product'}[`deleted product`]{else}[`deleted service`]{/if}
{else}
{$item.name|escape}
{/if}
{if empty($item.deleted) && $item.type == 'product' && $item.current_product_name|escape != $item.name|escape}
[`Current name`]: {$item.current_product_name|escape}
{/if}
{if !empty($item.sku_code) && empty($item.deleted)}
{$item.sku_code|escape} {/if} {if !empty($item.stock)} @{$item.stock.name|escape} {/if} {if !empty($item.stock_icon)} {$item.stock_icon} {/if} {if $item.product_codes}
{foreach $item.product_codes as $_code}
{$_code.name|escape}
{strip}
{if count($_code.values) >= $item.quantity}
{else}
{/if}
{sprintf_wp("%s out of %s", count($_code.values), $item.quantity)}
{/strip}
{/foreach}
|
{wa_currency_html($item.price, $order.currency)} × {$item.quantity} {if !empty($item.stock_unit)} {$item.stock_unit.name_short} {/if} | 0} title="{sprintf_wp("Total discount for this order item: %s.", wa_currency($item.total_discount, $order.currency))|escape}"{/if}>{wa_currency_html($item.price * $item.quantity, $order.currency)} |
[`Subtotal`] |
{wa_currency_html($subtotal, $order.currency)} |
||
[`Order content is unknown`] | |||
[`Discount`] {if !empty($order.coupon.code)} {if !empty($order.coupon.id) && $order.coupon.right} {/if} {$order.coupon.code|escape} {if !empty($order.coupon.id) && $order.coupon.right} {/if} {/if} | − {wa_currency_html($order.discount, $order.currency)} | ||
[`Shipping`] | {wa_currency_html($order.shipping, $order.currency)} | ||
[`Tax`] | {wa_currency_html($order.tax, $order.currency)} | ||
[`Total`] | {wa_currency_html($order.total, $order.currency)} |
{foreach $bottom_buttons as $b} {$b} {/foreach}
{$row.text|regex_replace:'@\
\r?(\n)@':'$1'|nl2br}