News:

Looking for documentation? Take a look on our wiki

Main Menu

Quantity Price Change INCLUDING Variants

Started by bryanearl, August 09, 2018, 22:14:56 PM

Previous topic - Next topic

bryanearl

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.


  • Parent product pricing is $2.49/each for quantity 1-4
  • Parent product pricing is $1.99/each for quantity of 5 or more

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.

GJC Web Design

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 
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

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.

bryanearl

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.

GJC Web Design

as I said....

Quoteperhaps a bug or over sight or feature not completed

All work on VM is done by volunteers
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

StefanSTS

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
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

bryanearl

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.

bryanearl

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!