From 110977d5ed7edda975f61ac3a588bfab5190500d Mon Sep 17 00:00:00 2001 From: "Paolo Cunti @codencode" Date: Tue, 8 Sep 2026 07:38:31 +0200 Subject: [PATCH] Add data-ps-fragment markers to dynamic fragments --- CONTEXT.md | 2 ++ templates/_partials/notifications.tpl | 2 +- templates/catalog/_partials/product-add-to-cart.tpl | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CONTEXT.md b/CONTEXT.md index 79a8025ef..aa394701d 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -131,6 +131,8 @@ attributes. component. - `data-ps-context="name"`: Identify the current page/scope. - `data-ps-template="name"`: Reference a template name to use it in JS. +- `data-ps-fragment="name"`: Identify a self-contained dynamic content fragment + for external integrations. **JavaScript Design Patterns:** diff --git a/templates/_partials/notifications.tpl b/templates/_partials/notifications.tpl index f57dc427e..7e660d016 100644 --- a/templates/_partials/notifications.tpl +++ b/templates/_partials/notifications.tpl @@ -4,7 +4,7 @@ *} {if isset($notifications)} -
+
{if $notifications.error} {block name='notifications_error'} diff --git a/templates/catalog/_partials/product-add-to-cart.tpl b/templates/catalog/_partials/product-add-to-cart.tpl index 9c695b0d2..7c16d1f34 100644 --- a/templates/catalog/_partials/product-add-to-cart.tpl +++ b/templates/catalog/_partials/product-add-to-cart.tpl @@ -3,7 +3,7 @@ * LICENSE.md file that was distributed with this source code. *} {if !$configuration.is_catalog} -
+
{block name='product_availability'}