Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
selected_quantity and custom_fields_payload updated.In this mode, Apple Pay represents a “Pay for current cart” action.
Best Practice:
Ensure that each page includes the Apple Pay template once only – either:Once on the product page (single product mode), or Once on the cart / other page (cart mode).
{% include 'vitrin:checkout/apple-pay-quick-checkout.jinja' %}window.productObj.selected_productproduct-quantity)selected_quantitycustom_fields_payloadwindow.productObj.selected_productis always defined on the product details page.your responsibility is simply to keep these two values updated whenever the user changes them.
selected_quantity reflects the latest quantity.custom_fields_payload contains the expected values.selected_quantity on quantity change.custom_fields_payload on custom field change (same as Add to Cart).selected_product (product page) and cart (cart mode) are up to date.