Skip to main content

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
Products code product_ean
Product identifier in the store.
Configuration -> Product -> Show product Code (Product block)
Output
<span id="product_code">product_ean</span>
Arguments
Don't wrap in tag with id
Real EAN real_ean
Digital code under the barcode.
Configuration -> Product -> EAN (Product block)
Output
<span id="real_ean">real_ean</span>
Arguments
Don't wrap in tag with id
Manufacturer code manufacturer_code
Артикул товара, установленный производителем.
Configuration ->Product -> Manufacturer code (Product block)
Output
<span id="manufacturer_code">артикул</span>
Arguments
Don't wrap in tag with id
Shipping information shipping_info
Brief information about delivery.
Configuration -> Product -> Show "Plus shipping"
Arguments
Not free shipping text
Not 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
<span id="block_weight">product_weight</span>
Arguments
Don't wrap in tag with id
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
<span class="deliverytime">delivery_time</span>
Arguments
-

Meta

Title meta_title
Arguments
-

Main category

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
Output
<bytton type="button" onclick="history.go(-1);">text</button>
Arguments
Style classes
Text
Icon
Display
Description
The value of the onclick 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 the onclick attribute can change if the Configuration -> Other config -> Back to shop (link in cart) option is specified.

Prices

Price product_price
Formatted cost of the product.
Output
<span id="block_price">product_price</span>
Arguments
Don't wrap in tag with id
Text if value = 0
Not format
Do not add the _tmp_ext variable
Old price product_old_price
Formatted old price.
Output
<span id="old_price">product_old_price</span>
Arguments
Don't wrap in tag with id
Style 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
<span id="pricedefault">product_price_default</span>
Arguments
Don't wrap in tag with id
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
<span id="block_basic_price">basic_price</span>
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
<span id="product_qty">qty_in_stock</span>
Arguments
Don't wrap in tag with id
Description
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
<span id="not_available">available_info</span>
Arguments
-

Reviews

Variables are displayed if reviews are enabled for the product: Configuaration -> Product -> Allow comments for products.

Label

Name label_name
Name/title of the label.
Output
<span class="label-[label_id]">label_name</span>
Arguments
Style classes
In the standard template
<div class="product_label"> <span class="label_name">label_name</span> </div>

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.
Quantity: Template prod_qty_input
Template for the input field for the quantity of the product to be added.
Arguments
Block style classes
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
Description
The plus/minus buttons require the jQuery library to be connected.
Add to cart: Button btn_add_to_cart
Output
<button class="btn-buy" type="submit" onclick="jQuery('#to').val('cart');">text</button>
Arguments
Style classes
Text
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
Output
<button class="btn-wishlist" type="submit" onclick="jQuery('#to').val('wishlist');">text</button>
Arguments
Style classes
Text
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
-

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.

Other