{if !empty($embedded_version)} {include 'templates/actions/backend/BackendOrders.html'} {/if} {if !empty($embedded_version)}
{/if} {if !empty($money_on_hold_warning)}
{if $money_on_hold_warning == 'total_fixed'}

[`The editing of this order is limited because customer’s funds are authorized on a bank account.`]

{sprintf_wp( "You may change the list of ordered items. However, the order total of %s must remain unchanged because the selected payment plugin does not support partial funds capturing.", sprintf('%s', shop_currency_html($order.amount_on_hold, $order.currency, $order.currency)) )} {else}

[`The editing of this order is limited because customer’s funds are authorized on a bank account.`]

{sprintf_wp( "You may change the list of ordered items. However, the order total after your changes may not exceed the captured amount of %s.", sprintf('%s', shop_currency_html($order.amount_on_hold, $order.currency, $order.currency)) )} {/if}
{/if}
{* Templates *} {function name="service_item"} {$multi_variants = count($service.variants) > 1}
  • {if !empty($service.item)} {if !empty($service.fake)} {else} {if !$multi_variants} {else} {/if} {/if} {$currency} {else} {if !$multi_variants} {$service.variants[$service.variant_id].price_html} {else} {/if} {$currency} {/if}
    {if !empty($service.item.total_discount)} {shop_currency_html(-$service.item.total_discount,$currency,$currency)|string_format:"[`Total discount for this service: %s.`]"} {/if}
  • {/function} {function name='sku_stocks_select' sku=[] item=[] stocks=[]} {/function} {function name="product_item"} {$_active_sku = $product["skus"][$product["item"]["sku_id"]]|default:null} {$_stock_unit = null} {if $fractional_config["stock_units_enabled"]} {if isset($product["stock_unit_id"])} {$_stock_unit = $formatted_units[$product["stock_unit_id"]]} {else} {$_stock_unit = $formatted_units[$product["item"]["stock_unit_id"]]} {/if} {/if} {if $product.url_crop_small} {else} {/if} {if empty($product.fake)}{$product.name|escape}{else}{$product.item.name|escape}{/if} {if empty($product.fake)}{$product.price_html}{/if} {if count($product.skus) == 1} {$sku = reset($product.skus)} {if !empty($sku.compare_price) && $sku.compare_price > 0} ({shop_currency_html((float)$sku.compare_price,$product.currency,$order.currency)}) {/if} {/if} {if empty($product.fake)} {if count($product.skus) == 1} {$product.icon} {else} {$product.icon} {/if} {/if} {if empty($product.fake) && $product.item.type == 'product' && $product.current_product_name|escape != $product.item.name|escape}
    [`Old name`]: {$product.item.name|escape}
    {/if}

    {if count($product.skus) > 1}

    {else} {$sku = $product.skus[$product.item.sku_id]} {if $sku && empty($sku.fake) && !empty($sku.sku)} {$sku.sku} {/if}
    {if !empty($sku.stock)} {sku_stocks_select sku=$sku item=$product.item stocks=$stocks} {/if}
    {if !empty($product.fake)}

    {elseif !empty($sku.fake)}

    {sprintf(_w('SKU %s no longer exists for this product'), $sku['name'])}

    {/if} {/if}

    {if !empty($product.services)} {/if}
    {$_order_count_step = $product["order_count_step"]|default:1} {if !empty($_active_sku["order_count_step"])} {$_order_count_step = $_active_sku["order_count_step"]} {/if} {$_order_count_min = $product["order_count_min"]|default:1} {if !empty($_active_sku["order_count_min"])} {$_order_count_min = $_active_sku["order_count_min"]} {/if} {$_max = 0} {if !$wa->shop->settings('ignore_stock_count')} {$_max = $_active_sku.count|default:0} {if !empty($_active_sku["stock"]) && !empty($_active_sku["stock"][$product.item.stock_id])} {$_max = $_active_sku["stock"][$product.item.stock_id]} {/if} {/if}
    × {if !empty($_stock_unit)} {$_stock_unit["name_short"]} {/if}
    {if $product["show_order_counts"]} {/if}
    {$currency}
    {if !empty($product.item.total_discount)} {shop_currency_html(-$product.item.total_discount,$currency,$currency)|string_format:"[`Total discount for this order item: %s.`]"}{/if} {/function}
    {$_default_customer_source = ''} {if empty($order.id) && !empty($order_editor_config['source'])} {$_default_customer_source = $order_editor_config['source']} {/if}
    {if empty($order.id)}
    {/if}

    {if empty($order.id)}[`Add products`]{else}{shopHelper::encodeOrderId({$order.id})}{/if}

    [`Comment to the order`]:
    {if !empty($order.id)} {foreach $order.items as $product} {call product_item index = $product@index} {/foreach} {/if} {if !empty($order.id)} {/if}

    [`If you have not found a certain product, enter a more detailed search query to see more exact results.`]

    [`Subtotal`] {$order.subtotal|default:null} {$currency}
    [`Shipping`] {if !empty($order.shipping_id)} {$_shipping_id=$order.shipping_id} {else} {$_shipping_id=''} {/if} {$_json_encode_options = 0} {if defined('JSON_UNESCAPED_UNICODE')}{$_json_encode_options = constant('JSON_UNESCAPED_UNICODE')}{/if}
    {$_shipping_id={$_shipping_id|regex_replace:'@\..+$@':''}} {foreach $shipping_methods as $m_id => $m} {if !empty($m.custom_html)} {$_m_id={$m_id|regex_replace:'@\..+$@':''}}
    {$m.custom_html}
    {/if} {/foreach}
    {$currency}
    [`Payment`]
    {foreach $payment_methods as $m} {if !empty($m.custom_html)}
    {$m.custom_html}
    {/if} {/foreach}
    [`Discount`] [`No coupon`] {*Coupon show/remove*} {if empty($order.coupon)} {$hidden_first = 'style="display: none"'} {if !empty($order.coupon)}{$order.coupon.code|escape}{/if} {else} {$hidden_first = ''} {if $order.coupon.right} {if !empty($order.coupon)}{$order.coupon.code|escape}{/if} {else} {if !empty($order.coupon)}{$order.coupon.code|escape}{/if} {/if} {/if} {if !empty($order.items_total_discount)}{$order.discount|wa_currency:$currency:'%'} {/if} {$currency} {if !empty($order.items_total_discount)} {/if} {capture name=hold_discount}
    [`Total discount breakdown`]
    - [`Discount applicable to individual items:`] {shop_currency_html((float)$order.items_total_discount|default:0,$currency,$currency)|escape:ENT_QUOTES}
    - [`Discount applicable to entire order:`] {shop_currency_html((float)$order.discount|default:0-(float)$order.items_total_discount|default:0,$currency,$currency)} {/capture}
    [`Tax`] {$order.tax|default:''} {$currency}
    [`Total`] {$order.total|default:''} {$currency}



    {$wa->csrf()}
    {if !empty($embedded_version)}
    {* #s-content *} {/if} {* @event backend_order_edit.%plugin_id% *} {if !empty($backend_order_edit)}{foreach $backend_order_edit as $plugin_id => $plugin_html}{$plugin_html}{/foreach}{/if}