Files
wc-composable-product/assets/css/admin.css
magdev 6507f4d8bb 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>
2026-03-01 12:01:20 +01:00

63 lines
1.3 KiB
CSS
Executable File

/**
* Admin Styles for Composable Products
*
* @package WC_Composable_Product
*/
/* Hide composable panel by default */
#composable_product_data {
display: none;
padding: 12px;
}
/* Show composable panel when composable type is selected */
body.product-type-composable #composable_product_data {
display: block;
}
.composable_criteria_group {
border-top: 1px solid #eee;
padding-top: 12px;
margin-top: 12px;
}
#_composable_categories,
#_composable_tags {
min-height: 150px;
}
/* Hide composable-specific elements by default (but not tabs) */
.options_group.show_if_composable {
display: none;
}
/* Show composable elements when composable product type is selected */
body.product-type-composable .options_group.show_if_composable {
display: block;
}
/* Hide the Composable Options tab link by default */
.product_data_tabs li.composable_options {
display: none;
}
/* Show the Composable Options tab when composable type selected */
body.product-type-composable .product_data_tabs li.composable_options {
display: block;
}
.composable_options.composable_tab a::before {
content: '\f323';
font-family: 'Dashicons';
}
/* Enhanced select styling */
.wc-composable-product-admin .select2-container {
min-width: 50%;
}
/* Help tips */
.woocommerce-help-tip {
color: #666;
}