I created a product listing with 5 variations, then created a product bundle that permits “Any variation” with a discount for purchasing 5 products (of any variation).
The product bundle option then shows on the product page regardless of if “Show on products page” is ticked or not (that checkbox seems not to have any purpose if the add-on is set to show in the page or in the tab).
When I check the product listing the offered bundle price shows the discounted price option BUT at checkout the full un-discounted price is still being charged. This behaviour is the same regardless of what variation is selected or even if 5 of the same variation is selected.
A discount is only actually applied at the checkout when a total of 8 products from any of the 5 variations is added to the cart even though the Product Bundle Offer provides the discounted price for just 5 items.
So if you create a product bundle on a listing with options and select “Any Option” with a discount for 5 items the product bundle applies the discount for 5 of any option.
But if you create exactly the same bundle for with a listing with variations then the discount is only actually applied if the customer selects 8 items from the available variations.
Thanks for the detailed reply ikoshkin, I might hold off on the diff file for the moment because Product Bundles is behaving completely screwy at the moment and we have raised it in help desk.
It is bizarre because I have deleted the product bundle, disabled the product bundle add-on, cleared the site cache, cleared browser cache, logged out and logged back in again AND … the crazy behaviour of product bundle persists i.e. discounts are applied to a group of variants as part of the original product bundle (incorrectly) even thought the bundle no longer exists and the add on is uninstalled. Crazy stuff huh haha
My bad, for a full day we were trying multiple ways to create a simple customer discount, i.e. if a customer adds X number of products to a cart of “any” combination either from a category of products or alternatively a listing with multiple variations then they get a discount on all of those products. We attempted this both via promotions and via product bundles but neither seem capable of achieving that.
I the process of testing this in multiple ways I did not realise in the end that I had both a promotion and a product bundle active at the same time, hence the odd results above which I incorrectly attributed to a product bundle issue. Thanks Support
Nonetheless the ability to create such a simple discount remains elusive.
Promotions does not provide the ability to create the condition of “X” number of any products in category or “X” number of “any” type from a listing with multiple variations.
Product bundles has a tick box for number of “any variation” however the “any” is not precisely accurate as it is applied as “any of all”, i.e. you can create a promotion that will give a discount for 5 of any of all the variations but not 5 of any variation, this means the customer must select 5 Blue Shirts not 5 of any colour “variation” (for example) to get the discount.
It seems like a simple kind of discount that should be achievable either via category or variation.