The user wants to block or prevent double discounts on bundles and their component products.
Discounts are stacking inappropriately, either because the bundle discount is applied on top of individual component discounts or due to conflicting discount mechanisms in the cart.
The user attempted to fix this by adding custom PHP code snippets that:
Reset product prices in the cart for bundle items and components to their regular prices.
Remove or reset discount values during cart calculations.
These attempts included hooking into WooCommerce’s cart calculation hooks such as:
woocommerce_before_calculate_totals
woocommerce_cart_calculate_fees
but none successfully prevented the double discount
What Has Been Tried:
Various code snippets to force-set prices of bundle and component products to their regular price, effectively trying to override sale prices or stacked discounts.
Checking and manipulating keys like 'wpc_composite' and 'composite_parent' within cart items to identify bundle and component products.
Resetting discount arrays or subtotal values on cart items.
Changing hook priorities and trying different WooCommerce hooks for recalculating totals.
Requested code that can be simply added via WPCode plugin or directly in theme’s functions.php.
Attempts to remove discounts or fees related to bundles directly from the cart.
Summary for Support Team:
The customer needs help ensuring that discounts on composite bundle products do not stack multiple times. This likely requires insight into the plugin’s discount application process and WooCommerce cart calculation hooks. The customer also needs official support contacts for the WPC Composite plugin for deeper technical assistance or bug fixes from the plugin developers.
-
-
-
-
-
-
-
-
What Has Been Tried:The user wants to block or prevent double discounts on bundles and their component products.
Discounts are stacking inappropriately, either because the bundle discount is applied on top of individual component discounts or due to conflicting discount mechanisms in the cart.
The user attempted to fix this by adding custom PHP code snippets that:
Reset product prices in the cart for bundle items and components to their regular prices.
Remove or reset discount values during cart calculations.
These attempts included hooking into WooCommerce’s cart calculation hooks such as:
woocommerce_before_calculate_totals
woocommerce_cart_calculate_fees
but none successfully prevented the double discount
-
-
-
-
-
-
Summary for Support Team:Various code snippets to force-set prices of bundle and component products to their regular price, effectively trying to override sale prices or stacked discounts.
Checking and manipulating keys like 'wpc_composite' and 'composite_parent' within cart items to identify bundle and component products.
Resetting discount arrays or subtotal values on cart items.
Changing hook priorities and trying different WooCommerce hooks for recalculating totals.
Requested code that can be simply added via WPCode plugin or directly in theme’s functions.php.
Attempts to remove discounts or fees related to bundles directly from the cart.
The customer needs help ensuring that discounts on composite bundle products do not stack multiple times. This likely requires insight into the plugin’s discount application process and WooCommerce cart calculation hooks. The customer also needs official support contacts for the WPC Composite plugin for deeper technical assistance or bug fixes from the plugin developers.