Unfortunately, I must inform you that this issue is not solvable for us now. Smart bundles do not allow express checkout functionality from other plugins at the moment.
We have released a plugin to add the Buy Now button to quickly add the bundles to the cart to buy https://wordpress.org/plugins/wpc-buy-now-button/ and bring them to the checkout directly. Please give it a try.
If sub-products have SKU specified, these will be recorded inside the Order details and bundles as below:
Our plugin won't automatically create an SKU for bundles, so if you would like to specify the SKU for smart bundles, you will need to manually do that in the Inventory tab of the bundle product page.
Yes, I'm getting the same Fatal error. I believe the problem is happening when you have a Product Bundle inside a Grouped Product and have a conflicting simple product in the cart that is part of the Product Bundle contained in the Grouped Product.
Warning: Undefined array key "data" in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 225
Hi, when adding to cart or using express checkout I receiv the Fatal error seen in the attachment.
I have been trying all kind of changes inside the plugin in order to check if this error can be fixed but I couldn't.
Please if you have a solution, I will be waiting your reply.
Thanks in advance!!
Attached files: Screenshot_2023-04-05 WordPress › Error.png
Hi Mariano,
Thanks for contacting us here.
Unfortunately, I must inform you that this issue is not solvable for us now. Smart bundles do not allow express checkout functionality from other plugins at the moment.
We have released a plugin to add the Buy Now button to quickly add the bundles to the cart to buy https://wordpress.org/plugins/wpc-buy-now-button/ and bring them to the checkout directly. Please give it a try.
Best regards.
Janilyn T. - WPClever Support Agent
Ok thanks I'm testing it! Hoping it will work.
I have a question, if a buy a bundle that has 3 products with SKUs:
SKUA x 2
SKUB x 1
SKUC x 3
But the bundle has NO SKU.
How is SKU going to be seen in the order in WooCommerce?
Thanks!
Hi Mariano,
Thanks for contacting us here.
If sub-products have SKU specified, these will be recorded inside the Order details and bundles as below:
Our plugin won't automatically create an SKU for bundles, so if you would like to specify the SKU for smart bundles, you will need to manually do that in the Inventory tab of the bundle product page.
Best regards.
Janilyn T. - WPClever Support Agent
Yes, I'm getting the same Fatal error. I believe the problem is happening when you have a Product Bundle inside a Grouped Product and have a conflicting simple product in the cart that is part of the Product Bundle contained in the Grouped Product.
Warning: Undefined array key "data" in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 225
Fatal error: Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:225 Stack trace: #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(651): WC_Cart_Totals->get_items_from_cart() #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(143): WC_Cart_Totals->calculate_item_totals() #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(134): WC_Cart_Totals->calculate() #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1401): WC_Cart_Totals->__construct() #4 /var/www/html/wp-includes/class-wp-hook.php(306): WC_Cart->calculate_totals() #5 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #6 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1308): do_action() #8 /var/www/html/wp-content/plugins/wpc-grouped-product-premium/includes/class-woosg.php(822): WC_Cart->remove_cart_item() #9 /var/www/html/wp-includes/class-wp-hook.php(308): WPCleverWoosg->add_to_cart() #10 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #11 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action() #12 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1279): do_action() #13 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(824): WC_Cart->add_to_cart() #14 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(796): WC_Form_Handler::add_to_cart_handler_simple() #15 /var/www/html/wp-includes/class-wp-hook.php(308): WC_Form_Handler::add_to_cart_action() #16 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #17 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action() #18 /var/www/html/wp-settings.php(645): do_action() #19 /var/www/html/wp-config.php(98): require_once('...') #20 /var/www/html/wp-load.php(50): require_once('...') #21 /var/www/html/wp-blog-header.php(13): require_once('...') #22 /var/www/html/index.php(17): require('...') #23 {main} thrown in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 225