From 2a7c8122512a96c3db6c059210f1d20274e18f76 Mon Sep 17 00:00:00 2001 From: ayeshanisar786 Date: Fri, 5 Jun 2026 17:32:30 +0500 Subject: [PATCH] Fix PDP badge placement to work on all themes (Luma + Hyva) The backorder ETA badge was parented to the product.info.main container with after="product.info.price". On Hyva-based themes product.info.main is a container and the price block lives inside the inner product.info block, so the `after` reference resolved to nothing and the badge orphaned to the very bottom of the product page. Reparent to the standard product.info.additional slot, which is a real rendered slot just after the add-to-cart area on Luma, vanilla Hyva, and custom Hyva child themes. Matches the sibling next-day-eligibility module, which already uses this slot. No per-theme layout override needed. Co-Authored-By: Claude Opus 4.8 (1M context) --- view/frontend/layout/catalog_product_view.xml | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/view/frontend/layout/catalog_product_view.xml b/view/frontend/layout/catalog_product_view.xml index c54b66e..a155ba9 100644 --- a/view/frontend/layout/catalog_product_view.xml +++ b/view/frontend/layout/catalog_product_view.xml @@ -2,11 +2,23 @@ - + + - + template="ETechFlow_BackorderEtaDisplay::product/eta-badge.phtml"/> +