ShortCode Usage Guide

Atrás

ShortCode (auto data replacement)

ShortCode (auto data replacement)

On all pages and Blocks/Menus, automatic replacement of Code with Static Data is possible.
Each page has unique data, for example page ID (article, product, page).

Below is a list of the main data for auto-replacement.


{HOTENGINE-SC:current_page_id} - Current page ID (article, page, product, news)
{HOTENGINE-SC:site_url} - Your site URL (address)
{HOTENGINE-SC:lang} - Language of the opened page
{HOTENGINE-SC:site_tagline} - Site tagline
{HOTENGINE-SC:contacts} - Contact block
{HOTENGINE-SC:slide_menu_widget:XX} - Slide Menu widget block
{HOTENGINE-SC:slider_widget:XX} - Slider widget block
{HOTENGINE-SC:smart_search_widget:PARAM} - Search Filter widget block
{HOTENGINE-SC:main_menu_widget} - main menu
{HOTENGINE-SC:langmenu} - language switching

{HOTENGINE-SC:user_nickname} - User name (if logged in)
{HOTENGINE-SC:user_id} - User ID (if logged in)
{HOTENGINE-SC:user_login} - User Login (if logged in)
{HOTENGINE-SC:user_discount} - User discount
{HOTENGINE-SC:user_cashback} - Cashback balance
{HOTENGINE-SC:user_group_id} - User group ID

{HOTENGINE-SC:shop_cart_menu} - cart with products (Block/Menu Cart)
{HOTENGINE-SC:favorites} - link to favorite products
{HOTENGINE-SC:shop_compare_menu} - product comparison
{HOTENGINE-SC:shop_cat_page_image} - Path to product image (if product page is open)
{HOTENGINE-SC:shop_cat_page_id} - Product ID (if product page is open). You can also use {HOTENGINE-SC:current_page_id}
{HOTENGINE-SC:shop_cat_page_name} - «Slug URL» page name for SEO-friendly URL.
{HOTENGINE-SC:shop_cat_page_sku} - Product SKU (if product page is open)
{HOTENGINE-SC:shop_cat_page_currency} - Product currency (abbreviated) (if product page is open)
{HOTENGINE-SC:shop_cat_page_currency_iso} - Product currency (ISO) (if product page is open)
{HOTENGINE-SC:shop_cat_page_price} - Product price (if product page is open)
{HOTENGINE-SC:shop_cat_page_title} - Product name
{HOTENGINE-SC:shop_cat_page_video} - Video URL (link to video)

{HOTENGINE-SC:pers_shop_cat_val_name} - Shop category name (only inside category and button in subcategory list)
{HOTENGINE-SC:pers_shop_cat_val_title} - Shop category title (only inside category and button in subcategory list)
{HOTENGINE-SC:pers_shop_cat_val_id} - Shop category ID (only inside category and button in subcategory list)
{HOTENGINE-SC:shop_cat_producer_val_name} - Producer category name (only inside category and button in subcategory list)
{HOTENGINE-SC:shop_cat_producer_val_id} - Producer category ID (only inside category and button in subcategory list)
{HOTENGINE-SC:shop_cat_collection_val_name} - Collection category name (only inside category and button in subcategory list)
{HOTENGINE-SC:shop_cat_collection_val_id} - Collection category ID (only inside category and button in subcategory list)

{HOTENGINE-SC:blog_cat_val_name} - Article catalog category name (only inside category and button in subcategory list)
{HOTENGINE-SC:blog_cat_page_id} - Article ID (only in article category)
{HOTENGINE-SC:blog_cat_page_name} - «Slug URL» page name for SEO-friendly URL.
{HOTENGINE-SC:blog_cat_page_title} - Article title (only in article category)
{HOTENGINE-SC:blog_cat_val_id} - Article catalog category ID (only inside category and button in subcategory list)




For example, you can use this code to display the name of an authorized user on the site:
Code: html
<span class="user_login_name">Welcome {HOTENGINE-SC:user_login}</span>


Or you can use this code to create Meta data for social networks (e.g. Open Graph markup):
Code: html
<meta property="og:image" content="{HOTENGINE-SC:shop_cat_page_image}"/>
<meta property="og:title" content="{HOTENGINE-SC:shop_cat_page_title}>



Example of creating a link to an authorized user's profile:
Code: html
https://boostore.pro/{HOTENGINE-SC:lang}/users.php?p=user_profile&action=userprofile&userid={HOTENGINE-SC:user_id}



Atrás