Skip to main content

Documentation for JoomShopping / YOOtheme Pro Integration Variables: Product in list

Product root variables are available when selecting the source of multiple "Products" elements or dynamic content for modules.

Nested objects

  • Manufacturer. Enable: Configuration -> Product -> Show manufacturer (block "List products").
  • Vendor. Enable: Configuration -> Product -> Display vendor (block "List products").

Multiple items sources

Not available without additional extensions that allow you to display a list inside a list item.

Root variables

Main category ID main_category_id
Numeric identifier of the main product category.
Configuration -> Other config -> Use main category for product
Arguments
-
Name name
Name/title of the product.
Arguments
-
In the standard template
<div class="name"> <a href="/link">name</a> </div>
Short description short_description
Arguments
-
In the standard template
<div class="description">short_description</div>
Products code product_ean
Product identifier in the store.
Configuration -> Product -> Show product code (List products block)
Arguments
Don't wrap in tag with id
In the standard template
<span class="jshop_code_prod"><span>product_ean</span></span>
Real EAN real_ean
Digital code under the barcode.
Configuration -> Product -> EAN (List products block)
Arguments
Don't wrap in tag with id
Manufacturer code manufacturer_code
Product article number set by the manufacturer.
Configuration -> Product -> Manufacturer code (List products block)
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 (Configuration -> 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 (Configuration -> Static text -> Shipping description).
Weight product_weight
Formatted weight of the product.
Configuration -> Product -> Show product weight (List products block)
Arguments
Don't wrap in tag with id
In the standard template
<div class="productweight"> <span>product_weight</span> </div>
Hits count hits
Configuration -> Product -> Hits (Product block)
Arguments
Text if value = 0
Number of sales buys
Added variable.
Arguments
Text if value = 0
Delivery time delivery_time
Delivery date name. Can be hidden with CSS styles.
Configuration -> Product -> Show "Delivery time" (List products block)
Arguments
-
In the standard template
<div class="deliverytime"> <span>delivery_time</span> </div>
Characteristics: Template extra_fields_tpl
Template for displaying product characteristics.
Configuration -> Product -> Show characteristics (List products block)
Arguments
List tag
List style classes
Hide item name
Item name style classes
Name/value separator
Show leader dots
Hide item description
Item description style classes
Item description icon
Value style classes
In the standard template
<div class="extra_fields"> <div> <span class="label-name">name:</span> <span class="data">value</span> </div> <div> <span class="label-name">название:</span> <span class="data">значение</span> </div> ... </div>

Links

Add to cart buy_link
Add to cart link.
Configuration -> Product -> Show buy button in a product list
Arguments
-
Add to wishlist wishlist_link
Link to add from the wish list.
Configuration -> Shop functions -> Enable wishlist
Arguments
-

Buttons

Add to cart btn_add_to_cart
Add to cart link template in the form of a button.
Configuration -> Product -> Show buy button in a product list
Output
<span class="buttons"> <a class="button_buy" href="/[value]">text</a> </span>
Arguments
Style classes
Text
Icon
Display
Active style
Active icon
Add to wishlist btn_add_to_wishlist
Add to wishlist link template in the form of a button.
Configuration -> Shop functions -> Enable wishlist
Output
<span class="buttons"> <a class="product-button-wishlist" href="/[value]">text</a> </span>
Arguments
Style classes
Text
Icon
Display
Active style
Active icon

Prices

Price product_price
Formatted cost of the product.
Arguments
Text if value = 0
Not format
Do not add the _tmp_ext variable
Description
The product cost formatted according to the settings (currency section). The value may differ depending on user group discounts. The prefix "from" may be added if the Configuration -> Product -> Show minimum price option is enabled and the product price changes depending on the attributes.
In the standard template
<div class="jshop_price"> <span>price + _tmp_var_price_ext</span> </div>
Old price product_old_price
Formatted old price.
Arguments
Style classes
Do not add the _tmp_ext variable
Description
Displayed if it is > 0 and greater than the current price.
In the standard template
<div class="old_price"> <span>old_price + _tmp_var_old_price_ext</span> </div>
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.
Configuration -> Product -> Show Price for basic members
Arguments
-
In the standard template
<div class="default_price"> <span>product_price_default</span> </div>
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 basic price per unit of product with unit of measurement.
Arguments
-
In the standard template
<div class="base_price"> <span>basic_price / unit</span> </div>
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 numeric total quantity of the product in stock.
Arguments
-
Description
Displayed even if the "Unlimited" option is enabled.
Quantity in stock qty_in_stock
The numerical quantity of goods in stock or the text "unlimited"
Configuration -> Product -> Quantity in stock (List products block)
Arguments
-
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.
In the standard template
<div class="qty_in_stock"> <span>qty_in_stock</span> </div>
Available info available_info
Text "In stock" or "Out of stock".
Configuration -> Product -> Hide text "product is not available"
Arguments
Available style classes
Not available style classes

Rating

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

Label

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

TMP

Other