News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Setting up a price per kilo

Started by abzamon, September 04, 2012, 18:37:05 PM

Previous topic - Next topic

abzamon

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

abzamon


jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

abzamon

Very interresting, I'm going to check it.
I should have found this by myself, thanks for your help.

vigier

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.