VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: abzamon on September 04, 2012, 18:37:05 PM

Title: Setting up a price per kilo
Post by: abzamon on September 04, 2012, 18:37:05 PM
hello,
Is there a way to set up a price per kilo in VM2?
Can the wheight be a float?
For example I want to buy 1.3 kilos of tomatoes.

Thx for your answers.

Sylvain
Title: Re: Setting up a price per kilo
Post by: abzamon on September 09, 2012, 14:50:13 PM
nobody on this one?
up!
Title: Re: Setting up a price per kilo
Post by: jenkinhill on September 10, 2012, 11:25:08 AM
Maybe you need something like this?  http://extensions.virtuemart.net/extensions-virtuemart-2/custom-size-detail
Title: Re: Setting up a price per kilo
Post by: abzamon on September 12, 2012, 23:39:23 PM
Very interresting, I'm going to check it.
I should have found this by myself, thanks for your help.
Title: Re: Setting up a price per kilo
Post by: vigier on September 13, 2012, 01:08:55 AM
Alternative is to make a copy of the customtextplugin and install it using another name (as in creating your own customtextplugin). Use price_by_letter option, set the price_per_letter to the price/kg. You can then edit the PHP... Multiply the user value to the price/kg and you have the correct price.