You've already forked wc-composable-product
Fix two critical bugs in v1.1.9
Bug 1: Admin - Both General and Composable tabs visible on initial load - Added explicit display:none to #composable_product_data panel - Panel now hidden by default, shows only when product-type-composable class is present - Prevents both tabs showing simultaneously on new product creation Bug 2: Frontend - No feedback when no products configured - Added empty state message when products array is empty - Users now see helpful message instead of blank grid - Cleared Twig cache to ensure template changes take effect 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,11 @@
|
||||
</div>
|
||||
|
||||
<div class="composable-products-grid">
|
||||
{% if products is empty %}
|
||||
<div class="composable-no-products">
|
||||
<p>{{ __('No products available for selection. Please configure the product criteria in the admin panel.') }}</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{% for product in products %}
|
||||
<div class="composable-product-item{% if not product.in_stock %} out-of-stock{% endif %}" data-product-id="{{ product.id }}" data-price="{{ product.price }}" data-stock-status="{{ product.stock_status }}">
|
||||
<div class="product-item-inner">
|
||||
@@ -52,6 +57,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if show_total %}
|
||||
|
||||
Reference in New Issue
Block a user