License | Web Systems Pro |
Version | 3.10.0.2.wsp |
Update | 10/02/2024 |
| License | Web Systems Pro |
| Version | 3.10.0.2.wsp |
| Update | October 2, 2024 |
{($product.tags|default:[]|sep:', ')}
General template:
{$product.features['CHARACTERISTIC_CODE']}
Where 'FEATURE_CODE' is the feature ID (e.g. brand).
Works only for the following feature types:
Display features without HTML tags (relevant for feature type "Color"):
{implode(', ', $product.features['CHARACTERISTIC_CODE']|default:[])|strip_tags}
Display features with HTML tags:
{implode(', ', $product.features['CHARACTERISTIC_CODE']|default:[])|strip_tags}
Product color list:
{foreach $product.features['color'] as $color} {$color|strip_tags|strip} {/foreach}
{$wa_app_url}
{$wa->shop->categoryUrl($category)}
For example, you can use a comma or space as a separator. To do this, use the modifier «|sep:' '», you need to register «|sep:', '». Example:
{($product.tags|default:[]|sep:' ')}
All tags will be separated by a space.
{$wa->shop->categoryUrl($root_category)}
{$parent_category = $categories[count($categories) - 2]|default:null}
{$category = $wa->shop->category($category.id)} {$category.params.sample}
{$category.max_price}
Minimum product price in category:
{$category.min_price_without_currency}
Maximum product price in category:
{$category.max_price_without_currency}
Current product price:
{$product.price}
By ID:
{if $product.type_id == 1} Title dla towaru o typie z ID 1{/if}
By type name:
{if $product.type.name == 'Type name'} Title for products with the “Type name” type{/if}
{$product.meta_keywords} - product keywords {$product.meta_description} - product description {$product.meta_title} - product title {$category.meta_keywords} - category keywords {$category.meta_description} - category description {$category.meta_title} - category title
The variable {$category.name} displays only one category to which the product is linked.
{$product_categories_names = []} {foreach $product.categories as $product_category} {$product_categories_names[] = $product_category.name} {/foreach} {$product_categories_names|sep:' '}
{if $category.products_count == 0} {$products_count = 0} {else} {$products_count = $category.products_count} {/if} {$products_count}
Paste the following code at the beginning of the SEO template:
{if $category.products_count == 0} {$products_count = 0} {foreach $category.subcategories as $c} {$products_count = $products_count + $wa->shop->productsCount("category/`$c.id`")} {/foreach} {else} {$products_count = $category.products_count} {/if}
And use the variable {$products_count}. May increase category page loading time.
{if $page_number == 1} Szablon Title dla pierwszej strony {elseif $page_number == 2} Szablon Title dla drugiej strony {elseif $page_number == 3} Szablon Title dla trzeciej strony {else} Szablon Title dla kolejnych stron - {$page_number} {/if}
Specify individual levels:
{$parent_categories[POZIOM KATEGORII]['seo_name']}
Full path:
{$parent_category_seo_names = []} {foreach $parent_categories as $i => $_category} {$parent_category_seo_names[$i] = $_category['seo_name']} {/foreach} {$parent_category_seo_names|sep:' '}
{['one', 'two', 'three']|random}
{$product = shopSeoViewHelper::extendProduct($item.product)} {$product.seo_name}
or
{$product = shopSeoViewHelper::extendProduct($wa->shop->product($item.product.id))} {$product.seo_name}
{$category = shopSeoViewHelper::extendCategory($category)} {$category.fields[2].value} {$category.fields[3].value}
For example, for breadcrumbs (so that plugin does not modify it).
{$category.original_name}
{if $is_seofilter|default:false || count(shopSeofilterFilterFeatureValuesHelper::normalizeParams($smarty.get) == 0)} {$category.additional_description|default:''} {/if}
