From 9643ce6d4429d1099bc06053c7cf656556455a92 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 19 Jul 2026 01:43:09 +0800 Subject: [PATCH] feat(shop): archive/order widget zones for home sidebar slots Wire shop_home top/sidebar and product bottom fluid on product archives, plus order center top/bottom fluid areas. --- templates/pages/page-orders.php | 6 ++++++ templates/shop/product-cat.php | 11 +++++++++++ templates/shop/product-tag.php | 11 +++++++++++ 3 files changed, 28 insertions(+) diff --git a/templates/pages/page-orders.php b/templates/pages/page-orders.php index a2abd93a..b762f978 100644 --- a/templates/pages/page-orders.php +++ b/templates/pages/page-orders.php @@ -55,6 +55,9 @@ $tabs = [ ]; ?> + +
+
@@ -369,4 +372,7 @@ $tabs = [
+ +
+ diff --git a/templates/shop/product-cat.php b/templates/shop/product-cat.php index d15133fa..3cbe6dcc 100644 --- a/templates/shop/product-cat.php +++ b/templates/shop/product-cat.php @@ -9,6 +9,12 @@ defined('ABSPATH') || exit; get_header(); +if (is_active_sidebar('shop_home_top_fluid')) { + echo '
'; + dynamic_sidebar('shop_home_top_fluid'); + echo '
'; +} + $term = get_queried_object(); $paged = max(1, (int) get_query_var('paged')); $orderby = ''; @@ -141,4 +147,9 @@ wp_enqueue_script( AKSRT_VERSION, true ); +if (is_active_sidebar('shop_product_bottom_fluid')) { + echo '
'; + dynamic_sidebar('shop_product_bottom_fluid'); + echo '
'; +} get_footer(); diff --git a/templates/shop/product-tag.php b/templates/shop/product-tag.php index b6ba0f89..fd4896f2 100644 --- a/templates/shop/product-tag.php +++ b/templates/shop/product-tag.php @@ -9,6 +9,12 @@ defined('ABSPATH') || exit; get_header(); +if (is_active_sidebar('shop_home_top_fluid')) { + echo '
'; + dynamic_sidebar('shop_home_top_fluid'); + echo '
'; +} + $term = get_queried_object(); $paged = max(1, (int) get_query_var('paged')); $orderby = ''; @@ -165,4 +171,9 @@ wp_enqueue_script( AKSRT_VERSION, true ); +if (is_active_sidebar('shop_product_bottom_fluid')) { + echo '
'; + dynamic_sidebar('shop_product_bottom_fluid'); + echo '
'; +} get_footer();