Trouble Adding Bundles in WooCommerce: Error on Product Page
-
Encountering a WooCommerce error<span style=”text-decoration: underline;”> adding bundles from the product page</span> (“You cannot add this bundle to the cart”). No issues adding from the category page. Any advice on fixing this? Thanks.
The page I need help with: [log in to see the link]
-
Hi gayathrih,
You might want to check the availability of all subitems inside that bundle to make sure they are publicly published and available. Smart bundles do not allow hidden products.
I saw that your site was using AJAX, you can also install this plugin to assist the AJAX add to cart on your site: https://www.ads-software.com/plugins/wpc-ajax-add-to-cart/
Best regards.
I don’t see tax being applied in this environment – I’m having a tax issue and need to see whether this is being applied correctly to the bundle
Hi Janilyn T
The plugin has been functioning flawlessly for years, but it has now been disrupted by the recent WordPress update.We have verified that there are no private products within any of our bundles. However, following the latest WordPress update, all our bundles have ceased to function.
While we can still add bundles to the cart from the category page, we encounter issues when attempting to do so from the product page. Thus, the bundles remain intact with no private products; it is solely the recent update that has caused this disruption in functionality that previously operated seamlessly for years.
We are willing to invest in premium support to promptly resolve this matter, as it is adversely affecting our sales. Please inform us of the payment procedure to expedite this resolution.
Regards,Gayathri
Hi?Janilyn T,
we also added the plugin you suggested and that doesn’t help either, It silently fails with no error messages anywhere.
We urgently request assistance to resolve this issue as soon as possible.
Regards,Gayathri
Hi?Janilyn T,
After reverting from version 8.0.2 to 8.0.1 and then to 8.0.0, we found that all three versions are dysfunctional/Broken. Ultimately, we had to resort to version 7.3.9, which functions perfectly. Thus, it appears that the update to version 8.0.0 is the cause of the malfunction.
Regards,Gayathri
Hi gayathrih,
Version 8.0.0 on brings about the changes in the Custom quantity option and the Min/Max limits for each subproduct can be configured individually.
I suggest that you check the quantity settings of the subproducts inside your bundle as well to make sure no conflicting rules are interfering.
We tested the latest version of this plugin with the latest version of WooCommerce and WordPress already. We can confirm that there is no such issue until now. You can also check our live demo (only WooCommerce, our WPCStore theme and WPC plugins there): https://demo.wpclever.net/woosb/
You can also read more about the Custom quantity changes on our doc site: https://doc.wpclever.net/woosb/quantity-settings/custom-quantity/
Please make sure you clear the caches and cookies from your site as well as browser after updating the plugin.
Best regards.
Hello, Customers can no longer add bundles to their shopping cart in our online shop either. However, as a logged in/registered user this seems to work. As a result, I only recognized this problem very late.
I’m also experiencing the same issue. I attempt to add the bundle to the cart and receive the dreaded “You cannot add this bundle to the cart”. But then I try again once or twice and it works.
The bundle is just one product with 5 variants.
I checked the new custom quantity feature and we are not using it, so it shouldn’t make a difference.
Clearly something is wrong. It would be great if you could please look into it.
Have also rolled back to v7.3.9.
Hi,
The Issue is fixed thus closing the ticket.
Regards,Gayathri
Our plugin doesn’t limit the availability of bundles based on membership or user authentication. You might want to check if there is any external plugin controlling the user authentication or membership or caching on your site interfering with ours.
Our developers have just released a new version for this plugin. Please make sure you check out the version 8.0.3 properly on your site.
Make sure you clear the caches and cookies from your site and browser before checking again as these won’t apply the changes properly.
Best regards.
Hi All,
problem is a little bit different, there is 2 types of products, products added (and not edited) before plugin version 7 and newer, added or edited after version 7. This version complicity changed way how products data is stored in database – woosb_ids in wp_postmeta.
Before was:
151/1,1276/1
After editing / saving again in database is:
a:2:{s:4:"u3g2";a:5:{s:2:"id";s:3:"151";s:3:"sku";s:13:"28-BU068-1000";s:3:"qty";s:1:"1";s:3:"min";s:0:"";s:3:"max";s:0:"";}s:4:"94yl";a:5:{s:2:"id";s:4:"1276";s:3:"sku";s:4:"TS06";s:3:"qty";s:1:"1";s:3:"min";s:0:"";s:3:"max";s:0:"";}}
I wrote for myself a simple script which is changing the way how bundles are stored in database and my problem did not occur again.
Hope that this will help someone in future.
Have a nice day and thank you for creating that brilliant plugin!
Hi @pgtg how did you fix it exactly? what is your script? Thanks!!
Hi kowjirow,
simple script getting all products, next checking if they have woosb_ids meta, next if needed recreate meta to new version with required fields only and saving it to database. To use it save it in php file in the same catalog where you have wp-config and run it.
<?php require_once(__DIR__ . '/wp-load.php'); $products = wc_get_products(['limit' => -1, 'return' => 'ids']); foreach ($products as $product_id) { $meta = get_post_meta($product_id, 'woosb_ids'); if ($meta && count($meta) && !is_array($meta['0'])) { $meta = getProductsFromMeta($meta['0']); if($meta) update_post_meta($product_id, 'woosb_ids', $meta); } } function getProductsFromMeta($meta) { $output = []; $produkty = explode(",", $meta); foreach ($produkty as $singleProduct) { $productData = explode("/", $singleProduct); $product = wc_get_product($productData['0']); if(!$product) return false; $output[generateKey()] = ['id' => $productData['0'], 'sku' => $product->get_sku(), 'qty' => $productData['1']]; } return $output; } function generateKey() { $key = ''; $key_str = 'abcdefghijklmnopqrstuvwxyz0123456789'; $key_str_len = strlen($key_str); for ($i = 0; $i < 4; $i++) { $key .= $key_str[random_int(0, $key_str_len - 1)]; } if (is_numeric($key)) { $key = generateKey(); } return $key; }
The script is simple, I didn’t want to write checking the product type at the beginning or adding additional, unnecessary fields to output, I only did it to make the bundles available for purchase again.
Hope that it will help you,
Have a nice day,
Pawe?Hi again @pgtg
Thanks for your help! I’m not sure it will help me. My problem is since the 8.0 plugin update, my bundle pages are broken and I got a js error on the console. It seems it can’t find database.
Example: https://test2024.sweet–laces.com/produit/pack-bred/
I thought your script was going to give me a hint to fix it but I don’t think it can.
I bought the premium version btw and I asked help from support team, they didn’t answer to my ticket since 1 week…
- You must be logged in to reply to this topic.