Add custom page template for composable products, bump to v1.3.2
All checks were successful
Create Release Package / PHP Lint (push) Successful in 48s
Create Release Package / PHP CodeSniffer (push) Successful in 1m0s
Create Release Package / PHP Unit (push) Successful in 59s
Create Release Package / build-release (push) Successful in 1m4s

- 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:
2026-03-01 14:08:44 +01:00
parent 8877ce976a
commit 3ac1e0d6f7
15 changed files with 2145 additions and 1568 deletions

View 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>