1. Documenation
  2. WooCommerce Sales Trigger
  3. Shortcodes

Shortcodes

Introduction

In Version > 2.0, shortcodes have been introduced.It will allow you to place these triggers anywhere in theme and render output.Each trigger has its shortcode, and this can be found on single trigger screen:

Usage

Smarter Reviews

[wcst_smarter_reviews]

 

Best Seller

[wcst_best_seller_badge]
[wcst_best_seller_list]

 

Savings

[wcst_savings]

 

Low Stock

[wcst_low_stock]

 

Deal Expiry

[wcst_deal_expiry]

 

Sales Activities

[wcst_sales_count]
[wcst_sales_snippet]

 

Guarantee

[wcst_guarantee]

Each shortcode accepts following optional parameters:

  • trigger_ids
    To show the output of specific trigger. (optional)
  • product_id
    To show the output of specific product_id. (optional)
  • variation_id
    To show the output of specific variation ( used for variable products). (optional)

 

Examples

1. Will find all the matching deal expiry triggers and generate output.

[wcst_deal_expiry]

2. Will execute deal expiry specific trigger id 2233 and generate output

[wcst_deal_expiry trigger_ids="2233"]

3. Will execute specific deal expiry trigger with id 2233 for product with id 482 and generate output

[wcst_deal_expiry trigger_ids="2233" product_id="482"]


How can we help?