Variables
In this section, you will learn about the variables supported by the module.
Banner module variables
Using variables helps make your banners more dynamic, relevant, and engaging. They allow you to personalize text content and deliver messages that better match each visitor's context.
Variable | Description |
---|---|
{{ var cartSubtotal }} | use this variable to show the total cost of all items in the cart, excluding taxes and shipping. |
{{ var freeShippingSubtotal }} | use this variable to show the minimum cart subtotal required for free shipping. The value is pulled from Stores -> Configuration -> Sales -> Delivery Methods -> Free Shipping -> Minimum Order Amount. Free Shipping delivery method must be enabled. |
{{ var freeShippingLeft }} | use this variable to show how much is left until free shipping becomes available. The value depends on freeShippingSubtotal. |
Default Magento variables
The Promo Banner module supports all default Magento 2 variables. You can also use them to make your banner text more personalized.
A full list of Magento 2 variables is available in the Magento Variables Reference.