feat: implement WooCommerce storefront foundation
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Single product — wrapper delegates to Woo hooks + XShop gallery/layout.
|
||||
*
|
||||
* We keep Woo's core hooks (woocommerce_before_single_product, etc.) and
|
||||
* render XShop gallery + summary via components. No business logic rewrite.
|
||||
*
|
||||
* WC version tested: 11.1.0
|
||||
* Template version: 1.6.4
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
get_header('shop');
|
||||
|
||||
do_action('woocommerce_before_main_content');
|
||||
|
||||
while (have_posts()) {
|
||||
the_post();
|
||||
wc_get_template_part('content', 'single-product');
|
||||
}
|
||||
|
||||
do_action('woocommerce_after_main_content');
|
||||
|
||||
get_footer('shop');
|
||||
Reference in New Issue
Block a user