Author Topic: Quantity Price Change INCLUDING Variants  (Read 222 times)

bryanearl

  • Beginner
  • *
  • Posts: 33
  • Web Design and SEO / SMO
    • Bryan Earl Web Design
Quantity Price Change INCLUDING Variants
« 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.

  • 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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7885
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Quantity Price Change INCLUDING Variants
« Reply #1 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 
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3247
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Quantity Price Change INCLUDING Variants
« Reply #2 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.

bryanearl

  • Beginner
  • *
  • Posts: 33
  • Web Design and SEO / SMO
    • Bryan Earl Web Design
Re: Quantity Price Change INCLUDING Variants
« Reply #3 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7885
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Quantity Price Change INCLUDING Variants
« Reply #4 on: August 13, 2018, 00:42:54 am »
as I said....

Quote
perhaps 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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

StefanSTS

  • Global Moderator
  • Jr. Member
  • *
  • Posts: 125
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: Quantity Price Change INCLUDING Variants
« Reply #5 on: August 13, 2018, 22:05:47 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

bryanearl

  • Beginner
  • *
  • Posts: 33
  • Web Design and SEO / SMO
    • Bryan Earl Web Design
Re: Quantity Price Change INCLUDING Variants
« Reply #6 on: August 13, 2018, 22:22:37 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

  • Beginner
  • *
  • Posts: 33
  • Web Design and SEO / SMO
    • Bryan Earl Web Design
Re: Quantity Price Change INCLUDING Variants
« Reply #7 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!