News:

Looking for documentation? Take a look on our wiki

Main Menu

Custom Fourmula in Virtuemart

Started by rinku, December 19, 2012, 07:45:11 AM

Previous topic - Next topic

rinku

Hi
I am using Joomla 2.5.8 and virtuemart version 2.0.14 this is the latest version I have downloaded
Now I have some syrups in my store
I want to calculate price at run time
Suppose I have entered the base price of Cough Syrup $2.00
Now i need if some body enter in text quantity 300ml and Age 10 in the product detail page
Of course these are custom fields Age and Quantity Plugins Text input.
The formula should be Price=(2.00*330)-10 like this means (Base Price*Qty)-AGE
The formula could be different for each syrup..
And the admin want to enter these formula in the back end for each product.

and one thing i needed also on some medicines
if someone enters the age less than 10
the price will be decreased by 2% and
if some one enters age greater than 10
the price will be increased by 5%

And the admin want to enter these formula in the back end for each product.
Not in the coding..
Just change the coding to enter the formula in admin section and make this to work.

if somebody have another alternative please tell but formula should be only in the back end

Sorry for the English...
Please help it is very urgent..

Immediate help will be highly appreciable

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

rinku

#2
Thank you so much for your quick reply sir
but what about the age factor and how to set up the custom formula in the backend for each product..
The formula can be changed at any time..
Please help

jenkinhill

As yours is a unique request I think you will need to write a plugin for that or commission a programmer to write one.
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

rinku

Thank You Jenkin Hill
For always quick to reply.
Thank you so much