VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ex3mist on August 05, 2015, 15:36:59 PM

Title: Fixed price for the cart variants
Post by: ex3mist on August 05, 2015, 15:36:59 PM
Hello,
Is there a sollution how to make the prices of each cart variants not to be a sum that is added to the default price, but rather a fixed number. For example:
If a product costs $100, and for one of its variants the price is $120, I have to add 20 in the price field of the variant and it appears as "+20" in the dropdown box. Can I make it so that you should insert 120 in the field, and to appear as "120" in the dropdown?

VM 3.X.

P.S. I couldn't find another topic for this, if there is any, please, give me a link to it.
Title: Re: Fixed price for the cart variants
Post by: Studio 42 on August 06, 2015, 00:16:41 AM
Hi,
No, only possible with a plugin.

Grreetings
Title: Re: Fixed price for the cart variants
Post by: ex3mist on August 06, 2015, 12:50:16 PM
Quote from: Studio 42 on August 06, 2015, 00:16:41 AM
Hi,
No, only possible with a plugin.

Grreetings

Is there such plugin? Can you provide a link, please?
Title: Re: Fixed price for the cart variants
Post by: Studio 42 on August 06, 2015, 12:57:05 PM
Hi ex3mist,
I don't know if a plugin support this, because, as you know, i write my own plugins when i need one for a customer.
I'm on writing a plugin supporting this(and many more) comming out next week certainly.

Greets,
Patrick
Title: Re: Fixed price for the cart variants
Post by: PRO on August 06, 2015, 16:40:51 PM
https://forum.virtuemart.net/index.php?topic=127362.0
Title: Re: Fixed price for the cart variants
Post by: Studio 42 on August 06, 2015, 18:41:40 PM
Hi Pro, your solution do not show the additional cost, but overide the main price.
This mean if you change the main base price, the price overide do not fit the new one.
Exemple:
current price : 115
option :=120
selecting 120 set price to 120

Now
new price : 125
when you don't check options, then option set the old price.(in this case 120 and you loose money ;) )

How i wrote my new plugin, is you can use a multiplicator(perhaps i add another method). This mean, having multiple price for multiple shopper group, or on updating a price, your price follow the base price.

Greets,
Patrick
Title: Re: Fixed price for the cart variants
Post by: ex3mist on August 07, 2015, 09:37:09 AM
Quote from: Studio 42 on August 06, 2015, 12:57:05 PM
I'm on writing a plugin supporting this(and many more) comming out next week certainly.

Hello Patrick,
I'll be happy if you let me know when it's finished, so I can see if it does what I need. I'm not in a hurry.