{# ── Sticky Add to Cart Bar ──────────────────────────────────────────────── Included from base.html.twig (block base_body_script) only when page.extensions.ultimateStickyCart is present — i.e. only on product detail pages, and only when the merchant hasn't disabled it entirely. Image / title / price are rendered server-side straight from page.product below — always correct, because Shopware's own variant switching is a full page navigation (see ProductStickyCartSubscriber docblock), so there is no risk of these going stale without a page reload also happening. The quantity stepper, variant/option selector, and Add to Cart button are deliberately NOT rendered here. sticky-cart-bar.plugin.js clones them from the real buy-widget-form already on the page into [data-uc-sticky-actions] below, then re-initializes Shopware's own native plugins (QuantitySelector, VariantSwitch, AddToCart) on the clone. That means this bar automatically matches whatever the merchant's active theme looks like — same button classes, same behavior, same validation (stock limits, purchase steps, variant availability) — with zero custom re-implementation of cart logic. #} {% set ucSticky = page.extensions.ultimateStickyCart ?? null %} {% if ucSticky and page.product %} {% set product = page.product %} {% endif %}