You've already forked wc-composable-product
Add custom page template for composable products, bump to v1.3.2
All checks were successful
All checks were successful
- Custom WooCommerce template with compact header + full-width selector - Twig layout template (single-product-composable.html.twig) + PHP loader - Body class 'single-product-composable' for CSS scoping - Renamed *.twig to *.html.twig (proper naming convention) - Refreshed .pot with accurate file refs, merged all .po files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
37
templates/single-product-composable.html.twig
Normal file
37
templates/single-product-composable.html.twig
Normal file
@@ -0,0 +1,37 @@
|
||||
{# Custom single product template for composable products #}
|
||||
<div id="product-{{ product_id }}" class="{{ product_class }}">
|
||||
|
||||
{# Compact product header — replaces the large image gallery #}
|
||||
<div class="composable-product-header">
|
||||
{% if image_html %}
|
||||
<div class="composable-header-thumbnail">
|
||||
{{ image_html|raw }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="composable-header-info">
|
||||
<h1 class="product_title entry-title">{{ product_name|esc_html }}</h1>
|
||||
|
||||
{% if price_html %}
|
||||
<div class="composable-header-price price">
|
||||
{{ price_html|raw }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if short_description %}
|
||||
<div class="composable-header-description">
|
||||
{{ short_description|raw }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{# Full-width product selector #}
|
||||
<div class="composable-selector-area">
|
||||
{{ selector_html|raw }}
|
||||
</div>
|
||||
|
||||
{# WooCommerce after-summary content (tabs, related products) #}
|
||||
{{ after_summary_html|raw }}
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user