LogoLogo
HomeBlogDocsGuides
  • Data Capturing
    • Improve quality of tracking data
    • Server side vs. Client side Tracking
  • Tracking
    • Shopify
      • Add zubi liquid
      • App Embeds
  • Marketing Automation
    • Setup marketing automation
    • Pixels, Tags & Trackers
      • Bundle advertising pixels
      • Integrate Google Analytics 4
      • Send Pixel data to Facebook
    • Attribution
      • Traffic attribution in GA4
      • Improved conversion tracking
    • Audiences
      • Setup dynamic audiences
    • Facebook dynamic product ads
    • Personalized landing pages
    • Remarketing
      • Remarketing with Facebook
      • Remarketing with Google Ads
  • Product Recommendations
    • Setup Recommendations
      • Blocks
      • Design
      • Advanced settings
      • Deploy
        • Javascript
        • Shopify
          • Liquid file
        • Prestashop
          • Positions
        • WooCommerce
          • Use shortcodes
            • Pagebuilder
            • Widget
            • WP Bakery
    • Handle Cache
      • Litespeed Cache
      • Prestashop
      • W3 Total Cache
      • WP Fastest Cache
      • WP Rocket
    • How-to Guides
      • WooCommerce
        • Hide Related Products & Upsell
        • Fix common layout issues
      • Slider fixes
    • Troubleshooting
Powered by GitBook
On this page
  1. Product Recommendations
  2. Setup Recommendations
  3. Deploy

WooCommerce

PreviousPositionsNextUse shortcodes

Last updated 2 years ago

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.

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

Adding a shortcode to product page