This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{* Вставить в шаблон этапа выбора способа доставки, в самое начало, такой код: *} | |
{strip} | |
{$_user_region=null} | |
{$_shipping_addresses = $wa->user('address', null)} | |
{if !$_shipping_addresses} | |
{$_sess=$wa->session('shop/checkout')} | |
{if $_sess.contact && ($_sess['contact'] instanceof waContact)} | |
{$_shipping_addresses = $_sess.contact->get('address', null)} | |
{/if} | |
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{** | |
* Шаблон извещения администратора магазина об оформленном заказе | |
*} | |
<h1 style="font-size: 20px;">Заказ {$order.id}</h1> | |
{if !empty($customer.email) || !empty($customer.phone) || !empty($customer.name)} | |
<h2 style="font-size:18px">Покупатель</h2> | |
{if !empty($customer.name)} | |
Имя: {$customer.name}<br> | |
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Inflector::rules('transliteration', array( | |
'/а/' => 'a', | |
'/б/' => 'b', | |
'/в/' => 'v', | |
'/г/' => 'g', | |
'/д/' => 'd', | |
'/е/' => 'e', | |
'/ё/' => 'yo', | |
'/ж/' => 'zh', | |
'/з/' => 'z', |