WooCommerce

The next step is to go back to the Engage plugin within WooCommerce and place the shortcodes just created. There are two options for doing this,

  1. Add the shortcode directly to the site using a widget, a textblock within the pagebuilder etc

  2. For the Product Page the standard hooks are avaiable to use from within the Engage plugin. Just select the recommendation block to be displayed in the position of the page that you would like to use.

Adding a shortcode to product page

Shortcodes

If adding the short code directly, without making a block design from within the Engage plattform the below parameters should be used. It should be noted that this is not the recommended approach since the ability to track the recommendation performance per block/page will not be possible.

Basics:

  • [ zlt_default ] => Use this when you like to use the default theme style for recommendations

  • [ zlt tid=1 ] => Use this when you want to specify the design template to use

Make sure to use single quotes when setting string parameters. E.g. [zlt_defaultmodel='my_model_id' columns=4]

Parameter
Applicable to
Description
Example

header

zlt_default & zlt

The title above your recommendations

header='You might like'

model

zlt_default & zlt

Set the model to use (leave blank for default)

model='default_collaborative_filter'

tid

zlt only

The design template id to use.

tid=1

columns

zlt_default only

Set the number of columns (default = 4)

columns=4

limit

zlt_default only

Limits the number of products being returned

data-prods

zlt_default only

Not yet available

data-mprods

zlt_default only

Not yet available

data-slide

zlt_default only

Number of products to display in slider

data-slide=4

data-mslide

zlt_default only

Number of products to display in mobile slider (set to 0 to disable)

data-mslide=2

Last updated