1. Home
  2. Docs
  3. WPC Product Timer
  4. Actions & Conditionals

Actions & Conditionals

There are 12 kinds of actions (6 pairs) that users can apply to every single product:

  • Set In stock
  • Set Out of Stock
  • Set Regular Price
  • Set Sale Price
  • Set Purchasable
  • Set Unpurchasable
  • Set Set Visible
  • Set Hidden
  • Set Featured
  • Set Unfeatured
  • Enable Sold Individually
  • Disable Sold Individually

 

    • In Stock – Out of Stock: change the stock status of a product to In Stock or Out of Stock, the Add to Cart button will be hidden and there is a notification for stock in the front-end.
    • Regular Price – Sale Price: set the sale price for a product or change it back to the regular price.
    • Purchasable – Unpurchasable: enable or disable the Add to Cart button accordingly.
    • Featured – Unfeatured: make an item featured product and appear in the featured product category of the shop archive.
    • Visible – Hidden: display or hide a product completely from your store.
    • Enable/disable Sold Individually: enable/disable the purchase of only 1 unit of each item per order only.

These can be categorized into 3 groups:

  • Default actions: Set in stock, Set purchasable, Set visible.
  • Reverse actions: Set out of stock, Set unpurchasable, Set hidden.
  • Independent actions: Set featured/set unfeatured, Set regular price/ set sale price, Enable/disable Sold Individually.

 

Articles