Merge Tags: Personalized

This post is also available in: Czech Polish

In this type of template Samba recommends maximum 10 products. One product can be presented with various attributes:

  • {{product*_title}} – product’s name
  • {{product*_url}} – products’s URL
  • {{product*_image}} – link to image’s URL
  • {{product*_price}} – product price
  • {{product*_price_before}} – price before discount
  • {{product*_brand}} – product’s brand
  • {{product*_description}} – product’s description
  • {{product*_free_shipping}} – if shipping is free or not (true/false)
  • {{product*_pack}} – amount of pieces included in package
  • {{product*_product_line}} – product line

Before you begin...

Supported values *=1, 2, …, 10

Note: There is no need to use all attributes.

Resizer

If you want Samba to take care of the image size automatically, you need to extend Merge Tags with the image size. This can be done in 2 ways.

Image placeholders

See this article.

Merge Tags

You can use this merge tag in the form

  • {{product1_image}}/width/height
    • the image is set to the selected width and height in pixels
  • {{product1_image}}/width
    • the image is set to the selected width in pixels, the height is calculated automatically, preserving the proportions of the images

For example:

src=”{{product1_image}}/195/195

 

Image enlargement

If a size larger than the native image size is selected, a transparent area is automatically added around the image.

 

This post is also available in: Czech Polish

Updated on May 16, 2024

Was this article helpful?

Related Articles