VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: bryanearl on August 09, 2018, 22:14:56 PM

Title: Quantity Price Change INCLUDING Variants
Post by: bryanearl on August 09, 2018, 22:14:56 PM
Joomla version 3.8.11
VM version 3.2.14



Currently, I have a product configured with about 10 possible variants / children depending on the color choice.


The above works properly when someone chooses 5 or more of the EXACT SAME COLOR / Child. However, if they order 3 blue and 2 pink, they do not get the discount. What's the deal here? How can I make it to where that price difference applies to any and all variants/children of the parent? I have searched and searched and can not find any similar questions within the last 5 years.
Title: Re: Quantity Price Change INCLUDING Variants
Post by: GJC Web Design on August 09, 2018, 23:42:59 PM
each variant is a separate product .. i.e. has its own product id .. I assume the quantity discount code is only working when the pid's are the same

perhaps a bug or over sight or feature not completed - I guess u need to dig into the code and see if u can use the parent id as the accumulator 
Title: Re: Quantity Price Change INCLUDING Variants
Post by: Studio 42 on August 10, 2018, 01:47:55 AM
The price calc is per product ID not parent+child.
If you dont use stock, you can perhaps group all child in main product ?
I know sometime it's not possible, so it's not the ultimate solution.
Perhaps this can be handel with a calculation rule, i never checked if this is possible with a calc plugin because the calc is per product ID too but you can perhaps get the current cart content in a trigger.
Another solution can be to create a specific customfield plugin but i'm not really know if this solution have better trigger for this.
Title: Re: Quantity Price Change INCLUDING Variants
Post by: bryanearl on August 12, 2018, 18:43:48 PM
It's unfortunate there isn't a simple solution for this issue. It seems there should absolutely be a simple checkbox in the product pricing area to select "apply to children" or not.
Title: Re: Quantity Price Change INCLUDING Variants
Post by: GJC Web Design on August 13, 2018, 00:42:54 AM
as I said....

Quoteperhaps a bug or over sight or feature not completed

All work on VM is done by volunteers
Title: Re: Quantity Price Change INCLUDING Variants
Post by: StefanSTS on August 13, 2018, 22:05:47 PM
Quote from: bryanearl on August 12, 2018, 18:43:48 PM
It's unfortunate there isn't a simple solution for this issue. It seems there should absolutely be a simple checkbox in the product pricing area to select "apply to children" or not.

You might send a ticket to iStraxx on virtuemart.net and ask if they add the feature if you buy a VirtueMart Supporter membership.

That helped adding features in the past.

Regards
Stefan
Title: Re: Quantity Price Change INCLUDING Variants
Post by: bryanearl on August 13, 2018, 22:22:37 PM
Quote from: StefanSTS on August 13, 2018, 22:05:47 PM

You might send a ticket to iStraxx on virtuemart.net and ask if they add the feature if you buy a VirtueMart Supporter membership.

That helped adding features in the past.

Excellent suggestion, thank you. I just sent in a ticket and I will see what they say.
Title: Re: Quantity Price Change INCLUDING Variants
Post by: bryanearl on August 15, 2018, 18:29:49 PM
FYI,

After speaking to iStraxx, he pointed me to the "Quantity Related Price Calculation" plugin (https://extensions.virtuemart.net/product/products/quantity-related-price-calculation-detail).

Although I obviously would have preferred this feature to be included in the core VM, I went ahead and purchased the plugin and got it installed and configured. It works perfectly for this situation!