first commit
This commit is contained in:
12
web/common/templates/components/jsShop.config.tpl
Normal file
12
web/common/templates/components/jsShop.config.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
<script>
|
||||
wpj.jsShop = wpj.jsShop || { };
|
||||
|
||||
{$photo_types_id = $cfg.Photo.id_to_type|array_flip}
|
||||
|
||||
wpj.jsShop.config = { // (dynamic config) deprecated, use jsShopContext instead!!!
|
||||
...wpj.jsShop.config,
|
||||
imageType: {block "jsshop_image_type"}{$photo_types_id['product_cart']|default:0}{/block}
|
||||
}
|
||||
|
||||
{block "custom-config"}{/block}
|
||||
</script>
|
||||
Reference in New Issue
Block a user