[sequra_widget]

Shortcode

Description

Allow showing promotional components on the product page based on current availability

OptionTypeDescription
productstringseQura product identifier (e.g., pp3). Required
product_idintWooCommerce product ID. Required
campaignstringseQura product campaign (e.g., permanente)
pricestringCSS selector to read the price from DOM.
alt_pricestringCSS selector to read the alternative price from DOM. This is required for variable products, for example.
is_alt_pricestringCSS 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.
themestringA JSON object that defines the promotional component style. You can use this tool to generate one
reverseintSet to 0 or 1 to switch this off or on.
reg_amountintDefine the WooCommerce product's registration fee amount in cents. Only used by services when this option is enabled for the merchant.
deststringCSS selector for the target element which will have the promotional component

Changelog

VersionDescription
2.0.0Introduced
3.0.0Add 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]");