init_product

Tag {init_product} prints the detailed information of the specific product.

 Parameters

  • name - variable name where the returned data is saved. Default value is "product".
  • id -  ID number of the product to return.
  • language_id - defines the language version of the product description

Attributes

  • id - prints the product ID
  • description - prints the product description
  • thumbnail - prints the product thumbnail
  • name - prints the product title
  • unit - prints product unit e.g. "kg", "tk"
  • is_published - return 1 if product published and 0 otherwise
  • buttons - action-buttons, available only for editors
  • image - prints the product image
  • category - prints the category of the product
  • category_id - prints the ID number of the protduct's category
  • manufacturer - prints the manufacturer of the product
  • manufacturer_id - prints the ID number of the product's manufacturer
  • model - prints the model of the product
  • price - prints the price of the product
  • profile_data - the array of the attributes.