Plugin Support
cyr61
(@cyr61)
Do you have any custom code that adds a product ? Can you show us a link to a product where this happens?
Hi,
The only active code is this (only 1 item in cart):
add_filter( ‘woocommerce_add_to_cart_validation’, ‘bbloomer_only_one_in_cart’, 9999, 2 );function bbloomer_only_one_in_cart( $passed, $added_product_id ) {
wc_empty_cart();
return $passed;
}
You can test it by requesting a quote on: https://www.holicolorpowders.fr/
Add any product except: https://www.holicolorpowders.fr/produit/extincteur-poudre-holi/
This product will be automatically be added to the quote (visible in mail and backend)
Cheers,
Jaap
Plugin Support
cyr61
(@cyr61)
Hi,
You have to complete a quote request to trigger the issue. Can you do that. You then will see it will have 2 products.
Cheers,
Jaap
Plugin Support
cyr61
(@cyr61)
There you go. I created a request and received email. See image
There must be something else going on, the email is sent.
This is not from our plugin.
This is what I suggest: As tests:
1: Change theme
2: Disable plugins and see if the issue remains.
Plugin Support
cyr61
(@cyr61)
To test change to storefront. It is very reliable.
Plugin Support
cyr61
(@cyr61)
Have you tested without the custom code above ( just to verify)?
@cyr61 yes, that’s it. Strange this code always worked fine up until some months ago.
I have replaced the code snippet with another. Also informed the guy from businessbloomer his snippet is not working with RFC Quote request.
https://www.businessbloomer.com/woocommerce-allow-1-product-cart/
Plugin Support
cyr61
(@cyr61)
It is strange. Thanks for letting me know. I will check further into this. But glad you found a solution 🙂