smoothlikejazz
Forum Replies Created
-
Forum: Plugins
In reply to: [WPC Product Bundles for WooCommerce] Compatibility Product Add-OnsAnd doing a little digging i’m seeing that in class-wc-cart-session.php the function “get_cart_from_session”, this does not include the addon totals
array(15) { ["subtotal"]=> string(7) "1000.00" ["subtotal_tax"]=> float(0) ["shipping_total"]=> string(4) "0.00" ["shipping_tax"]=> float(0) ["shipping_taxes"]=> array(0) { } ["discount_total"]=> float(0) ["discount_tax"]=> float(0) ["cart_contents_total"]=> string(7) "1000.00" ["cart_contents_tax"]=> float(0) ["cart_contents_taxes"]=> array(0) { } ["fee_total"]=> string(4) "0.00" ["fee_tax"]=> float(0) ["fee_taxes"]=> array(0) { } ["total"]=> string(7) "1000.00" ["total_tax"]=> float(0) }Yet when we’re setting the session within file class-wc-cart-session.php and method name “set_session”;
I do see the data for the addons and the smartbundle items separate.
array(2) { ["e2822a94c7415879aa513ab4e814b67e"]=> array(14) { ["addons"]=> array(1) { [0]=> array(3) { ["name"]=> string(16) "Pre-Event Nights" ["value"]=> string(26) "2 nights prior (Oct 22-23)" ["price"]=> string(4) "1050" } } ["woosb_ids"]=> string(7) "13073/1" ["key"]=> string(32) "e2822a94c7415879aa513ab4e814b67e" ["product_id"]=> int(14223) ["variation_id"]=> int(0) ["variation"]=> array(0) { } ["quantity"]=> int(1) ["data_hash"]=> string(32) "ba53b4648295fd7b9ed5dd1ba7c2d6cc" ["woosb_keys"]=> array(1) { [0]=> string(32) "18e6c4debcd889d52b2de175b4be3e57" } ["line_tax_data"]=> array(2) { ["subtotal"]=> array(0) { } ["total"]=> array(0) { } } ["line_subtotal"]=> float(0) ["line_subtotal_tax"]=> int(0) ["line_total"]=> float(0) ["line_tax"]=> int(0) } ["18e6c4debcd889d52b2de175b4be3e57"]=> array(13) { ["product_id"]=> int(13073) ["variation_id"]=> int(0) ["variation"]=> array(0) { } ["quantity"]=> int(1) ["woosb_pos"]=> int(1) ["woosb_qty"]=> int(1) ["woosb_parent_id"]=> int(14223) ["woosb_parent_key"]=> string(32) "e2822a94c7415879aa513ab4e814b67e" ["line_tax_data"]=> array(2) { ["subtotal"]=> array(0) { } ["total"]=> array(0) { } } ["line_subtotal"]=> float(1000) ["line_subtotal_tax"]=> int(0) ["line_total"]=> float(1000) ["line_tax"]=> int(0) } }Somewhere we are not combining this data when both Addons are used and Smart Bundled Items.
What i’m getting is a total of 1000, but with the addons I should be seeing a grand total of 2,050;
- This reply was modified 7 years, 3 months ago by smoothlikejazz.
- This reply was modified 7 years, 3 months ago by smoothlikejazz.
Forum: Plugins
In reply to: [WPC Product Bundles for WooCommerce] Compatibility Product Add-OnsHi WPclever,
I found this doing a search for compatibility with Woo-Commerce Addons, great plugin by the way.
Currently, I’m running into the issue where it displays the addons correctly, and calculates the total price correctly upon add on selections. Yet, when users proceed to Cart, The addons are on included only the items in the Smart bundle configuration are included on adding to cart.