{include file="./pickup.functions.include.html" inline} {$has_map = $map.adapter !== 'waDisabledMapAdap'}
{* MAP *} {if $has_map}
{/if} {* FORM *}
{* STEP 1 *}
{_header_block title=$title show_product_name=true mobile_toolbar=$has_map} {if !empty($available_pickup)}
    {foreach $available_pickup as $pickup} {_pickup_item pickup=$pickup} {/foreach}
{/if}
{* STEP 2 *}
{_header_block show_back=true}

[`No need to place an order and reserve the purchase. See you in the store!`]

{* STEP 3 *}
{_header_block title=_w('Pickup order') show_back=true}
{_product product=$product}

[`Will prepare the order upon your arrival.`]

{if $customer}
[`Customer`]: {if !empty($customer.userpic)} {/if} {$customer.firstname|escape} [`Logout`]
{/if}
{foreach $form as $name => $_form}
{$name|escape}
{$_form}
{/foreach}
{* FINAL STEP *} {capture assign="_order_confirmation"}
{_close_button}

[`Thank you!`]

[`Hopping on to the payment...`]
[`See you in the store!`]
{/capture} {$_map = [ "adapter" => null, "api_uri" => null ]} {if !empty($map.adapter)} {$_map["adapter"] = $map.adapter} {if $map.adapter === "yandex"} {$_api_uri = "//api-maps.yandex.ru/2.1/?lang=ru_RU&load=Geolink,Map,Placemark,Clusterer,Collection,geoObject.addon.balloon,control.FullscreenControl,control.GeolocationControl,control.SearchControl,control.ZoomControl"} {if !empty($map.api_key)} {$_api_uri = "`$_api_uri`&apikey=`$map.api_key`"} {/if} {$_map["api_uri"] = $_api_uri} {/if} {if $map.adapter === "google"} {$_api_uri = "//maps.googleapis.com/maps/api/js"} {if !empty($map.api_key)} {$_api_uri = "`$_api_uri`?key=`$map.api_key`"} {/if} {$_map["api_uri"] = $_api_uri} {/if} {/if}