[sequra_widget]
Shortcode
Description
Allow showing promotional components on the product page based on current availability
| Option | Type | Description |
|---|---|---|
product | string | seQura product identifier (e.g., pp3). Required |
product_id | int | WooCommerce product ID. Required |
campaign | string | seQura product campaign (e.g., permanente) |
price | string | CSS selector to read the price from DOM. |
alt_price | string | CSS selector to read the alternative price from DOM. This is required for variable products, for example. |
is_alt_price | string | CSS selector to decide when to read the alternative price by looking for the presence of an element in the DOM. This is required for variable products, for example. |
theme | string | A JSON object that defines the promotional component style. You can use this tool to generate one |
reverse | int | Set to 0 or 1 to switch this off or on. |
reg_amount | int | Define the WooCommerce product's registration fee amount in cents. Only used by services when this option is enabled for the merchant. |
dest | string | CSS selector for the target element which will have the promotional component |
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced |
| 3.0.0 | Add support for new options |
Usage Example
$options = 'product="pp3" campaign="" product_id=999'; // Configure as many options as you need
do_shortcode("[sequra_widget $options]");Updated 6 months ago