WordPress - WooCommerce generator
In this article
☝️ Note: This generator is only available in the Pro version.
With this dynamic slide generator you can show the contents of your products.
Tutorial
- 1
-
Creating a new dynamic slide
To get started, go to any Slider Settings page and add a new dynamic slide. Choose
WooCommerce
. - 2
-
Configuring the generator
Set up your generator. Choose the settings you want. Popular options you probably want to configure: category where your content will be pulled from, the number of slides you want to have, the ordering of the content.
You can also click on the View Records button to see the data you'll be creating your slide with.
When you're done, click on
Add
. - 3
-
Editing the dynamic slide
After you saved your generator, you'll be redirected to the Slide Editor to set up the look of your slide. You can create your content by using variables.
Not sure what are the variables or how to use them? Learn how to work with variables.
Products by filter
Creates slides from your WooCommece products in the selected categories.
Configuration
You can use these options to set what you want your generator to show.
Filter
Category
You can select the categories from where you want the products.
Tag
You can select tags to filter your products from the selected categories
Featured
You can choose to only show the products, which are featured or not featured or all.
In stock
You can choose to only show the products in stock or not in stock or all products.
Downloadable
You can choose to only show the products, which are downloadable or not downloadable or all.
Virtual
You can choose to only show the products, which are virtual or not virtual or all.
Create text variables
You can create variables based on what value are you receiving on the other variables.
Example: variable||equalvalue||true||false
: if variable
equals to equalvalue
, then you will get the text true
, but if it's not equal, the text will be false
. The new variable's name will be textvariable (the variable
replaced by your variable's name).
Round Rating
- Half
- Third
- Quarter
Visibility
You can set the visibility here.
Replace These Timestamp Variables
Separate them with comma.
Date Format
Any PHP date format can be used.
Order
Field
The field which decides the ordering of your content.
- Creation date
- Modification date
- Total sales
- Regular price
- Sale price
- Price
- ID
- Title
☝️ Note: We are using the same ordering WooCommerce does. If you are using price ordering with "variable" (also called "variation") products, meaning one product has multiple prices, you might see the ordering as wrong, but that ordering works the same way as it does at WooCommerce.
Order
The order direction.
- Ascending
- Descending
Generator Settings
Learn about the Generator Settings
at the Generator Settings documentation.
Variables
These are the available variables you can use to build your dynamic slide content in the Slide Editor.
Not sure what are the variables or how to use them? Learn how to work with variables.
- title - The title of the product.
- url - Url to the product.
- description - The description of the product.
- image - The featured image of the product.
- thumbnail - The thumbnail of the product's featured image.
- price - The price of the product.
- regular_price - The regular price of the product.
- price_with_tax - The price of the product including taxes.
- sale_price - If the product is on sale, this variable will contain the sale price, but if it isn't on sale, it will contain the original price.
- rating - The rating of the product.
- ID - The ID of the product.
- categoryX - The name of the Xth category.
- categoryXlink - Url to the Xth category.
- categoryXdescription - The description of the Xth category.
- categoryXID - The ID of the Xth category.
- price_without_currency - The price of the product without the currency symbol.
- tags - The tags of the product.
- excerpt - The excerpt of the product.
If the product has variations
- variation_min_price
- variation_min_price_currency
- variation_min_regular_price
- variation_min_regular_price_currency
- variation_min_sale_price
- variation_min_sale_price_currency
- variation_max_price
- variation_max_price_currency
- variation_max_regular_price
- variation_max_regular_price_currency
- variation_max_sale_price
- variation_max_sale_price_currency
☝️ Note: The post_meta values are asked down too to have them as variables, but note, that WooCommerce has changed how it stores certain things, so some of them aren't returning the real values, like the _featured variable.
Products by IDs and/or SKUs
Creates slides from your WooCommece products by their ID.
Configuration
You can use these options to set what you want your generator to show.
Filter
IDs
The ID of your products. Write one per line.
SKUs
The SKUs of your products. Write one per line.
Generator Settings
Learn about the Generator Settings
at the Generator Settings documentation.
Variables
These are the available variables you can use to build your dynamic slide content in the Slide Editor.
Not sure what are the variables or how to use them? Learn how to work with variables.
- title - The title of the product.
- url - Url to the product.
- description - The description of the product.
- image - The featured image of the product.
- thumbnail - The thumbnail of the product's featured image.
- price - The price of the product.
- regular_price - The regular price of the product.
- price_with_tax - The price of the product including taxes.
- sale_price - If the product is on sale, this variable will contain the sale price, but if it isn't on sale, it will contain the original price.
- rating - The rating of the product.
- ID - The ID of the product.
If the product has variations
- variation_min_price
- variation_min_price_currency
- variation_min_regular_price
- variation_min_regular_price_currency
- variation_min_sale_price
- variation_min_sale_price_currency
- variation_max_price
- variation_max_price_currency
- variation_max_regular_price
- variation_max_regular_price_currency
- variation_max_sale_price
- variation_max_sale_price_currency
☝️ Note: The post_meta values are asked down too to have them as variables, but note, that WooCommerce has changed how it stores certain things, so some of them aren't returning the real values, like the _featured variable.
Categories
Creates slides from your WooCommece categories. (Not from the products inside them.)
Configuration
You can use these options to set what you want your generator to show.
Filter
Parent Category
You can set the parent category.
Submenu Limit
You can set a submenu limit.
Generator Settings
Learn about the Generator Settings
at the Generator Settings documentation.
Variables
These are the available variables you can use to build your dynamic slide content in the Slide Editor.
Not sure what are the variables or how to use them? Learn how to work with variables.
- title - The title of the category.
- description - The description of the category.
- image - The featured image of the category.
- count - The products inside the category.
- url - Url to the category.
- ID - The ID of the category.
Common questions
How to create an add to cart button?
The way WooCommerce works is, that if you add this:
?add-to-cart=68
to the end of your url:
https://example.com/?add-to-cart=68
it will add the 68 ID product to the cart. When you are using variables, you can write texts next to them, so you could just insert this to any link field, like the link of a button:
https://example.com/?add-to-cart={ID/1}
Just replace https://example.com/ with your website's url.