Настройка темы "proStore"
Настройки для Shop-Script 7 и ниже.
В теме Сайт.
header.nav.shop_cat.html
Заменить {top_products_tree items=$wa->shop->categories(0, null, true, true)}
На
{$categories = $wa->shop->categories(0, 0, true, true)}
{if $wa->mylang}{$categories = $wa->mylang->categories($categories)}{/if}
{top_products_tree items=$categories}
После {$cloud = $wa->shop->tags()}
Добавить {if $wa->mylang}{$cloud = $wa->mylang->tags($cloud)}{/if}
sidebar.nav.shop.products.html
Заменить {side_products_tree items=$wa->shop->categories(0, null, true, true)}
На
{$categories = $wa->shop->categories(0, null, true, true)}
{if $wa->mylang}{$categories = $wa->mylang->categories($categories)}{/if}
{side_products_tree items=$categories}
sidebar.p.acco.tags.html и sidebar.shop.plugins.html
После {$cloud = $wa->shop->tags()}
Добавить {if $wa->mylang}{$cloud = $wa->mylang->tags($cloud)}{/if}
sidebar.promos.html и index.html
после {$promocards = $wa->shop->promos()}
{if $wa->mylang}{$promocards = $wa->mylang->promos($promocards)}{/if}
В теме Магазин.
compare.html
В начало файла добавьте строки
{if $wa->mylang}{$features = $wa->mylang->features($features)}{/if} {if $wa->mylang}{$products = $wa->mylang->products($products)}{/if}
home.html
после {$promocards = $wa->shop->promos()}
{if $wa->mylang}{$promocards = $wa->mylang->promos($promocards)}{/if}
product.html
В самом начале добавить {if $wa->mylang}{$stocks = $wa->mylang->stocks($stocks)}{/if}
После {$promocards = $wa->shop->promos()}
{if $wa->mylang}{$promocards = $wa->mylang->promos($promocards)}{/if}
После
{$crossselling = $product->crossSelling($cr_sale_qty)}
{$upselling = $product->upSelling($up_sale_qty)}
Добавить
{if $wa->mylang}{$upselling = $wa->mylang->products($upselling)}{/if}
{if $wa->mylang}{$crossselling = $wa->mylang->products($crossselling)}{/if}
2 комментария
добрый, А для Shop-Script 8?
Там обычно всё уже добавлено в самом шаблоне или на уровне приложения.