You've already forked wc-composable-product
v1.2.0 - Fix product selection, cart pricing, admin tabs + CI/CD
Fix three critical bugs that persisted through v1.1.11-v1.1.14: - Product selection always empty: meta_query checked _product_type in postmeta, but WooCommerce uses the product_type taxonomy. Replaced with correct tax_query using NOT IN operator. - Cart price always 0.00: composable_price_calculated flag persisted in session, preventing recalculation on page loads. Removed flag; static variable already handles per-request dedup. - Admin tabs both visible on load: JS now triggers WooCommerce native tab click instead of manually toggling panel visibility. Add Gitea CI/CD release workflow triggered on v* tags. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
8
assets/js/admin.js
Normal file → Executable file
8
assets/js/admin.js
Normal file → Executable file
@@ -17,12 +17,14 @@
|
||||
if (productType === 'composable') {
|
||||
$('.show_if_composable').show();
|
||||
$('.hide_if_composable').hide();
|
||||
$('#composable_product_data').show();
|
||||
$('.product_data_tabs .composable_options a').show();
|
||||
// Show the composable tab, then click it so WooCommerce's
|
||||
// native tab system hides all other panels properly
|
||||
$('.product_data_tabs li.composable_options').show();
|
||||
$('ul.product_data_tabs li.composable_options a').trigger('click');
|
||||
} else {
|
||||
$('.show_if_composable').hide();
|
||||
$('.product_data_tabs li.composable_options').hide();
|
||||
$('#composable_product_data').hide();
|
||||
$('.product_data_tabs .composable_options a').hide();
|
||||
}
|
||||
}).trigger('change');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user