Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
{% if store.gift_order_settings.is_gift_order_customer_motivation_enabled == '1' %}
checks whether the motivating popup feature is enabled by the merchant. If it’s enabled, a tooltip styled as a popover is displayed. This tooltip contains an icon, a message encouraging the customer to send their purchase as a gift, and a button leading to the cart.template_for_cart_gifts_widget
to display all the necessary fields for customers to customize their gifts.
store.gift_order_settings.is_gift_order_enabled == '1'
). If enabled, the template_for_cart_gifts_widget
is displayed. This template handles the display of all gifting options for customers, such as choosing a gift card design or writing a custom message.store.gift_order_settings
object. These settings control how and when the gifting features are presented to the customers.
{% if cart.gift_card_details | length > 0 %}
checks if there are any gift card details present in the cart. If there are, it displays the sender’s name, receiver’s name, and the gift message using the provided variables.Note: The gifting cart should be removed when the cart is empty.
data-toggle
attribute has been replaced with data-bs-toggle
. Therefore, the button triggering the collapse should look like this in Bootstrap 5: