Documentation for JoomShopping / YOOtheme Pro Integration Variables: Product
Product root variables are available when selecting the "Product" dynamic content.
Nested objects
- Manufacturer. Enable: Configuaration -> Product -> Show manufacturer (Products block) and Show manufacturer logo.
- Vendor. Enable: Configuration -> Product -> Display vendor (Product block) and Display vendor detail.
Multiple items sources
Root variables
Add date
product_date_added
Arguments
Date format
Date of change
date_modify
Arguments
Date format
Name
name
Name of the product.
Arguments
-
Short description
short_description
Arguments
-
Description
description
Полное описание.
Arguments
-
Products code
product_ean
Product identifier in the store.
Configuration -> Product -> Show product Code (Product block)
Output
product_ean
Arguments
Don't wrap in tag with id
Real EAN
real_ean
Digital code under the barcode.
Configuration -> Product -> EAN (Product block)
Output
real_ean
Arguments
Don't wrap in tag with id
Manufacturer code
manufacturer_code
Артикул товара, установленный производителем.
Configuration ->Product -> Manufacturer code (Product block)
Output
артикул
Arguments
Don't wrap in tag with id
URL
product_url
External link.
Arguments
-
Shipping information
shipping_info
Brief information about delivery.
Configuration -> Product -> Show "Plus shipping"
Not free shipping style classes
Free shipping text
Free shipping style classes
Add link
Arguments
Not free shipping textNot free shipping style classes
Free shipping text
Free shipping style classes
Add link
Description
Displays a short message in the delivery if the product price is lower/higher than the one specified in the store settings (Confoguration -> Checkout -> Free shipping for order (price) over) and the option to display this information (plus shipping) is enabled. Text arguments recognize the{sum_null_shipping} template, substituting the formatted value of the amount for free shipping instead. Adding a link creates a link from the text to the shipping description (Confoguration -> Static text -> Shipping description).
Weight
product_weight
Formatted weight of the product.
Configuration -> Product -> Show product weight (Product block)
Output
product_weight
Arguments
Don't wrap in tag with id
weight / volume / units
weight_volume_units
The quantitative or volumetric value of a unit of measurement of a product, specified in the base price subsection.
Configuration -> Product -> Show product weight (Product block)
Arguments
-
Hits count
hits
Configuration -> Product -> Hits (Product block)
Arguments
Text if value = 0
Number of sales
buys
Added variable.
Arguments
Text if value = 0
Deliveru time
delivery_time
Delivery date name. Can be hidden with CSS styles.
Configuration -> Product -> Show "Delivery time" (Product block)
Output
delivery_time
Arguments
-
Update price ajax-link
urlupdateprice
Arguments
-
Files: HTML ID
demo_files_id
ID of the block with demo files. Add it to the "ID" field in the settings of the block with product demo files.
Output
list_product_demofiles
Arguments
-
Images: HTML ID
images_middle_id
ID of the block with images. Add it to the "ID" field in the settings of the block with the product image gallery.
Output
list_product_image_middle
Arguments
-
Thumb images: HTML ID
images_thumb_id
Thumbnail block ID. Add it to the "ID" field in the product thumbnail block settings.
Output
list_product_image_thumb
Arguments
-Meta
Title
meta_title
Arguments
-Main category
Main category: ID
main_category_id
The numeric value of the product's primary category identifier (if specified).
Configuration -> Other config -> Use main category for product
Arguments
-
Main category: Title
main_category_name
Configuration -> Other config -> Use main category for product
Arguments
-
Category: ID
category_id
The numeric value of the identifier of the current product category (in which the product page is open).
Arguments
-Description
May be absent.
Category: Title
category_name
The name of the category in which the product is opened.
Arguments
-Description
May be absent.
Category: Link
category_link
Link to the category in which the product is opened.
Arguments
-Description
May be absent.Buttons
Print: Button
btn_print
Configuration -> Product -> Show button print
Arguments
-
Print: Attributes
print_attrs
Configuration -> Product -> Show button print
Output
onclick=window.print(); return false;
Arguments
-
Back: Button
btn_back
Configuration -> Product -> Show button back
Text
Icon
Display
Output
text
Arguments
Style classesText
Icon
Display
Description
The value of theonclick attribute can change if the Configuration -> Other config -> Back to shop (link in cart) option is specified.
Back: Attributes
back_attrs
Output
onclick=history.go(-1);
Arguments
-Description
The value of theonclick attribute can change if the Configuration -> Other config -> Back to shop (link in cart) option is specified.
Prices
Price
Text if value = 0
Not format
Do not add the _tmp_ext variable
product_price
Formatted cost of the product.
Output
product_price
Arguments
Don't wrap in tag with idText if value = 0
Not format
Do not add the _tmp_ext variable
Old price
Style classes
Do not add the _tmp_ext variable
product_old_price
Formatted old price.
Output
product_old_price
Arguments
Don't wrap in tag with idStyle classes
Do not add the _tmp_ext variable
Description
Displayed if it is > 0 and greater than the current price.
Min price
min_price
Formatted minimum price.
Arguments
-Description
Relevant when there are attributes with different prices.
Is different prices
different_prices
Logical value (0 or 1).
Arguments
-Description
Depends on the presence of attributes that change the standard price.
Price for basic members
product_price_default
Formatted price without discount.
Output
product_price_default
Arguments
Don't wrap in tag with id
Wholesale price unit
product_add_price_unit
Name of the unit of measurement of wholesale price.
Arguments
-
Tax info
tax_info
The formatted amount of tax payable on the item.
Configuration -> Product -> Show tax
Arguments
-
Basic price
basic_price
Formatted and calculated base price per unit of product with unit of measurement.
Output
basic_price
Arguments
Don't wrap in tag with id
Basic quantity
product_basic_price_unit_qty
The base quantity of a unit of measurement.
Arguments
-Description
Pulled from the unit of measurement settings.
Base discount
discount_value
Formatted value "price minus old price".
Arguments
-Description
May not be relevant for products with different prices.Amount of products in stock
Amount of product in stock
product_quantity
The numerical total quantity of the product in stock.
Configuration -> Product -> Quantity in stock (Product block)
Arguments
-Description
Displayed even if the "Unlimited" option is enabled.
Is unlimited
unlimited
Logical value (0 or 1).
Configuration -> Product -> Quantity in stock (Product block)
Arguments
-Description
Indicates whether this option is selected in the product settings.
Quantity in stock
qty_in_stock
The numerical quantity of goods in stock or the text "unlimited"
Configuration -> Product -> Quantity in stock (Product block)
Output
qty_in_stock
Arguments
Don't wrap in tag with idDescription
May depend on the number of attributes. If attributes are not selected, it may not output the value, but the block must exist to have somewhere to put it when switching attributes.
Availability info
available_info
Text "In stock" or "Out of stock".
Configuration -> Product -> Hide Text "product is not available"
Output
available_info
Arguments
-Reviews
Variables are displayed if reviews are enabled for the product: Configuaration -> Product -> Allow comments for products.
Reviews count
reviews_count
Arguments
-
Comment maximal mark
stars_count
Output
Configuration -> Product -> Comment maximal mark
Arguments
-
Rating star parts
parts_count
How many parts can an asterisk be divided into.
Output
Configuration -> Other config -> Rating star parts
Arguments
-Label
ID
label_id
Numeric identifier of the label.
Arguments
-
Name
label_name
Name/title of the label.
Output
label_name
Arguments
Style classesIn the standard template
label_name
Image
label_image
Label image.
Arguments
-Form
This refers to the form for adding a product to the cart or to favorites. The form should contain attributes, quantity selection, buttons and other fields added by third-party extensions. For convenience, a separate option is provided in the column and row settings (the "Advanced" tab). Some variables can be useful for creating your own form. Others are an integral part of the online store.
Form action link
action
Arguments
-
Quantity: Template
Options attributes
Add plus/minus buttons
Plus/minus position
Plus/minus vertical
Plus/minus button style classes
Minus icon
Plus icon
Input/option style classes
Input/option attributes
Placeholder
prod_qty_input
Template for the input field for the quantity of the product to be added.
Arguments
Block style classesOptions attributes
Add plus/minus buttons
Plus/minus position
Plus/minus vertical
Plus/minus button style classes
Minus icon
Plus icon
Input/option style classes
Input/option attributes
Placeholder
Description
The plus/minus buttons require the jQuery library to be connected.
Add to cart: Button
Text
Icon
Display
Active style
Active icon
btn_add_to_cart
Output
Arguments
Style classesText
Icon
Display
Active style
Active icon
Add to cart: Attributes
add_to_cart_attr
Add to cart button attributes.
Output
onclick=jQuery('#to').val('cart');
Arguments
-
Add to wishlist: Button
btn_add_to_wishlist
Configuration -> Shop functions -> Enable wishlist
Text
Icon
Display
Active style
Active icon
Output
Arguments
Style classesText
Icon
Display
Active style
Active icon
Add to wishlist: Attributes
wishlist_attr
Add to favorites button attributes.
Configuration -> Shop functions -> Enable wishlist
Output
onclick=jQuery('#to').val('wishlist');
Arguments
-
Product buttons style class
buttons_class
Button block class. Add it to the classes field in the button block settings.
Output
prod_buttons
Arguments
-TMP
This group of variables does not output anything by default, but is used to record data by third-party extensions. Their names describe the idea/logic of the JoomShopping component developers, where exactly they should be located in the template.
_tmp_var_bottom_price
_tmp_var_bottom_price
Arguments
-
_tmp_product_html_end
_tmp_product_html_end
Arguments
-Other
Universal string variable
universal
Arguments
-
Language constant
lang
Arguments
-- Introduction
- Pages
- Dynamic content
- Product
- Products list
- Category
- Manufacturer
- Vendor
- Search
- Checkout
- User
- Cart
- Wishlist
- Content
- Products filter
- Config
- Links
- For modules
- Creating a template
- Creating a module
- Custom modules
- Forms
- Variables
- Product
- Products list
- Category
- Manufacturer
- Vendor
- Search
- Cart
- Wishlist
- Checkout
- User
- Products filter
- Content
- Config
- Base element
- Link
- Universal list
- Universal string variable
- Language constant
- JSYT