Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {if isset($get_vars.is_old)}
- {assign var=is_old value=true}
- {/if}
- {if isset($get_vars.ver_id)}
- {assign var=ver_id value=$get_vars.ver_id}
- {/if}
- {if $deligate_use}
- <div class="baloon-content-localize" style="display: none;" data-point-text="{#DELIGATE_DELIVERY_POINT#}" data-term-text="{#DELIGATE_DELIVERY_TERM#}" data-price-text="{#DELIGATE_DELIVERY_PRICE#}" data-address-text="{#ADDRESS#}" data-phone-text="{#PHONE#}" data-worktime-text="{#DELIGATE_DELIVERY_WORKTIME#}" data-url-text="{#DELIGATE_DELIVERY_FIND_STORE#}" data-more-text="{#SHOP2_MORE#}" data-choose-text="{#CHOOSE#}"></div>
- <span class="shop2-delivery-step">2</span>
- <span class="shop2-delivery-step-name">{#DELIGATE_DELIVERY_CHOOSE_SHIPPING_METHOD#}</span>
- {/if}
- {if $deligate_use}<input name="delivery_id" id="delivery_id_deligate" type="hidden" value="{$delivery.attach_id}"/>{/if}
- <div class="options-list{if $deligate_use} padding{/if}">
- <div id="shop2-delivery-wait" class="shop2-info" style="display:none;">{#DELIGATE_DELIVERY_PRELOADER_TEXT#}</div>
- <div>
- <div class="shop2-delivery--item__tab{if $errors && ($type_error == 'selfdelivery')} active-tab{/if}">
- <div class="label point">
- <div class="tab-label">
- <span class="delivery-tab--icon"></span>
- <span class="delivery-tab--name">
- {#GR_PICK_UP_YOURSELF#}
- <span class="delivery-tab--note">{#GR_CONV_LOC#}</span>
- </span>
- </div>
- <div class="delivery-items">
- {foreach from=$deliveries_new item=dlvr key=code}
- {if isset($dlvr.code)}
- {if $dlvr.code == 'selfdelivery'}
- {if $dlvr.valid}
- {include file="global:shop2.v2-order-delivery-option-list.tpl" e=$dlvr k=$dlvr.attach_id deligate_option=true}
- {/if}
- {/if}
- {else}
- {if isset($dlvr.point)}
- {foreach from=$dlvr.point item=item key=k}
- <script type="text/javascript">
- shop2.delivery.ymapsData.{$item.service_code}{$item.tariff_hash} = [
- {foreach from=$item.terminals item=e key=c}
- {ldelim}
- 'service_code' : '{$item.service_code}{$item.tariff_hash}',
- 'attach_id' : '{$item.attach_id}',
- 'tariff_hash' : '{$item.tariff_hash}',
- 'id' : '{$e.id}',
- 'coords' : [{$e.Latitude}, {$e.Longitude}],
- 'name' : '{$item.desc}',
- 'desc' : '{$e.inDescription|replace:"'":""|regex_replace:"/[\r\n]/" : " "}',
- 'worktime' : '{$e.worktime}',
- 'address' : '{if $e.name}{$e.name|replace:"'":""|replace:'"':""|regex_replace:"/[\r\n]/" : " "} ({$e.address|replace:"'":""|replace:'"':""|regex_replace:"/[\r\n]/" : " "}){else}{$e.address|replace:"'":""|replace:'"':""|regex_replace:"/[\r\n]/" : " "}{/if}',
- 'phone' : '{$e.phone|escape:"javascript"}',
- 'site' : '{$e.site}',
- 'delivery_type' : '{$item.delivery_type}',
- 'cost' : '<span>{#DELIGATE_DELIVERY_PRICE#}:</span><label class="cost" data-cost="{if $item.service_code == "cdek"}{$e.prices[$item.tariff_hash]|price_convert}{else}{$item.cost|price_convert}{/if} {$currency.currency_shortname}"><input value="{$item.tariff_hash}" type="radio" name="cost" checked="checked"> <strong>{if $item.service_code == "cdek"}{$e.prices[$item.tariff_hash]|price_convert}{else}{$item.cost|price_convert}{/if} {$currency.currency_shortname}</strong>{if $item.insurance_type == 'insurance'} ({#SHOP2_DELIVERY_DELIGATE_INSURANCE#}){/if}{if $item.desc} ({$item.desc}){/if}</label><div class="description">{$e.description|replace:"\n":""}</div>'{if $item.term},
- 'term' : '{if $item.term.min == $item.term.max}{$item.term.max|spellcount:'день':'дня':#SHOP2_DELIVERY_TERM_DAYS#}{else}{#SHOP2_FROM#} {$item.term.min}{if $item.term.max} {#SHOP2_TO#} {$item.term.max}{/if} {#SHOP2_DELIVERY_TERM_DAYS#}{/if}'{/if}
- {rdelim},
- {/foreach}
- ];
- </script>
- <div class="option-type {if $cur}active-type{/if} map-option">
- <label class="option-label ymap" data-attach_id="{$item.attach_id}" data-service-code="{$item.service_code}{$item.tariff_hash}">
- <span>
- <input name="delivery_id" type="radio" autocomplete="off" value="{$item.attach_id}" />
- <span class="control-radio__label">
- {$item.name} {if $item.desc}- {$item.desc}{/if}{if $item.insurance_type == 'insurance'} ({#SHOP2_DELIVERY_DELIGATE_INSURANCE#}){/if}{if $item.cash_on_delivery} ({#SHOP2_CASH_ON_DELIVERY#}){/if}
- </span>
- {if $item.term}
- <span class="shop2-edost-day">
- {#SHOP2_ESTIMATED_DELIVERY_TIME#}:
- {if $item.term.min == $item.term.max || !isset($item.term.max)}
- {$item.term.min|spellcount:'день':'дня':#SHOP2_DELIVERY_TERM_DAYS#}
- {else}
- {#SHOP2_FROM#} {$item.term.min} {#SHOP2_TO#} {$item.term.max} {#SHOP2_DELIVERY_TERM_DAYS#}
- {/if}
- </span>
- {/if}
- </span>
- <span><strong>{if $item.service_code == "cdek"}от {/if}{$item.cost|price_convert} {$currency.currency_shortname}</strong></span>
- </label>
- <div class="option-details map">
- {include file="global:shop2.v2-order-delivery-deligate-option-list.tpl" e=$item only_params=true}
- <div class="map-select maxheight">
- {if $shop2.my.gr_select_wrapper}<label class="gr-select-wrapper">{/if}
- <select style="width: 100%;">
- <option value="">--{#SHOP2_SELECT_TYPE_SELECT#}--</option>
- {foreach from=$item.terminals item=e}
- <option value="{$e.id}">{if $e.name}{$e.name} ({$e.address}){else}{$e.address}{/if}</option>
- {/foreach}
- </select>
- {if $shop2.my.gr_select_wrapper}</label>{/if}
- </div>
- <div id="{$item.service_code}{$item.tariff_hash}" style="height: 600px;" class="map-wrapper"></div>
- <div class="deligate_points_fields">
- <div class="fields">
- {if $delivery && $delivery.delivery_type == 'point'}
- <input type="hidden" name="{$delivery.attach_id}[0]" value="{$delivery.deligate.address}">
- <input type="hidden" name="delivery_type" value="{$delivery.delivery_type}">
- <input type="hidden" name="{$delivery.attach_id}[deligate][tarif]" value="{$delivery.deligate.tarif}">
- <input type="hidden" name="{$delivery.attach_id}[deligate][terminal]" value="{$delivery.deligate.terminal}">
- {/if}
- </div>
- <div class="delivery-point">
- <div>
- <p><span class="title">{#ADDRESS#}:</span></p>
- <p class="point-address"></p>
- </div>
- <div>
- <p><span class="title">{#DELIGATE_DELIVERY_PRICE#}:</span><span class="point-cost"></span></p>
- </div>
- </div>
- <button class="shop2-btn" type="button" onclick="shop2.delivery.changeDeliveryPoint(this, '{$item.service_code}{$item.tariff_hash}');">{#CHANGE#}</button>
- </div>
- </div>
- </div>
- {/foreach}
- {/if}
- {/if}
- {/foreach}
- </div>
- </div>
- </div>
- <div class="shop2-delivery--item__tab{if $errors && ($type_error == 'edost' || $type_error == 'courier' || $type_error == 'deligate')} active-tab{/if}">
- <div class="label courier">
- <div class="tab-label">
- <span class="delivery-tab--icon"></span>
- <span class="delivery-tab--name">
- {#GR_DELIVER_TO_ADDRESS#}
- <span class="delivery-tab--note">{#GR_CONV_TIME#}</span>
- </span>
- </div>
- <div class="delivery-items">
- {foreach from=$deliveries_new item=dlvr key=code}
- {if isset($dlvr.code)}
- {if $dlvr.code == 'courier'}
- {if $dlvr.valid}
- {include file="global:shop2.v2-order-delivery-option-list.tpl" e=$dlvr k=$dlvr.attach_id deligate_option=true}
- {/if}
- {elseif $dlvr.code == 'edost'}
- {if $is_old}{include file="global:shop2-order-delivery-option-list.tpl" e=$dlvr k=$code deligate_option=true}{else}{include file="global:shop2.v2-order-delivery-option-list.tpl" e=$dlvr k=$dlvr.attach_id deligate_option=true}{/if}
- {/if}
- {else}
- {foreach from=$dlvr.door item=e}
- {include file="global:shop2.v2-order-delivery-deligate-option-list.tpl" e=$e service_code=$code}
- {/foreach}
- {/if}
- {/foreach}
- </div>
- </div>
- </div>
- <div class="shop2-delivery--item__tab{if $errors && ($type_error == 'ems' || $type_error == 'ruspost' || $type_error == 'deligate')} active-tab{/if}">
- <div class="label mail">
- <div class="tab-label">
- <span class="delivery-tab--icon"></span>
- <span class="delivery-tab--name">
- {#CMS_MENU_LINK_MAIL#}
- <span class="delivery-tab--note">{#GR_RUSSIAN_POST_EMS#}</span>
- </span>
- </div>
- <div class="delivery-items">
- {foreach from=$deliveries_new item=dlvr key=code}
- {if isset($dlvr.code)}
- {if ($dlvr.code == 'ems' || $dlvr.code == 'ruspost') && $dlvr.valid}
- {include file="global:shop2.v2-order-delivery-option-list.tpl" e=$dlvr k=$dlvr.attach_id deligate_option=true}
- {/if}
- {else}
- {if $code == 'ya_delivery'}
- {foreach from=$dlvr.pochta item=e key=k}
- {include file="global:shop2.v2-order-delivery-deligate-option-list.tpl" e=$e k=$dlvr.attach_id}
- {/foreach}
- {elseif $code == 'pochta' || $code == 'emspost'}
- {foreach from=$dlvr item=service}
- {foreach from=$service item=e key=k}
- {include file="global:shop2.v2-order-delivery-deligate-option-list.tpl" e=$e}
- {/foreach}
- {/foreach}
- {/if}
- {/if}
- {/foreach}
- </div>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement