To add AI Related Products Shortcode to your pages, posts and widget areas, please follow the instructions as given below.
Default Shortcode with default attributes:
Shortcode with supported attributes
Column Layout (Optional) :
Column possibilities are 1, 2, 3, 4, 5, and 6 (the default is “3,” so choose one of these).
Include Cart Products For Reference (Optional) :
Include items from the shopping cart to filter the related products. Options : yes / no (the default is “no”)
Number of Products (Optional) :
[ST_WOO_AI_REL_PRODUCTS no_of_products="12"]Set the number of products to display. Options: As you prefer (the default is “6”)
Number of Recently Ordered Products (Optional) :
Set 1 as a reference to filter products by most recently ordered/purchased item, 2 for two most recently ordered/purchased items, and so on. For all ordered/purchased items, leave it empty. (the default is empty)
Additional Meta Filters (Optional) :
Further, filter the products by choosing only those that are on sale, featured, or are the best-selling. Options: sale / featured / best-selling. (the default is empty, so choose one of these)
Shortcode with all attributes.
[ST_WOO_AI_REL_PRODUCTS column="4" cart_ref="yes" no_of_products="12" order_ref="1" meta_filter="best-selling"]
Note: If you want some attributes to have default value, then you don’t have to add it in the shortcode. You can use multiple shortcode with multiple settings anywhere in your site.
Adding shortcode in blocks.
- First search for shortcode block in your editor.
- Select the shortcode block.
- Please paste the shortcode with or without attributes according to your preference after adding the shortcode area to your editor.
Adding shortcode in classical editor.
You can just paste the shortcode in the editor where you want to add.