VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: rinku on December 19, 2012, 07:45:11 AM

Title: Custom Fourmula in Virtuemart
Post by: rinku on December 19, 2012, 07:45:11 AM
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
Title: Re: Custom Fourmula in Virtuemart
Post by: jenkinhill on December 19, 2012, 09:50:32 AM
This may work for you:  http://extensions.virtuemart.net/extensions-virtuemart-2/quantity-related-price-calculation-detail
Title: Re: Custom Fourmula in Virtuemart
Post by: rinku on December 19, 2012, 10:36:26 AM
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
Title: Re: Custom Fourmula in Virtuemart
Post by: jenkinhill on December 19, 2012, 12:40:26 PM
As yours is a unique request I think you will need to write a plugin for that or commission a programmer to write one.
Title: Re: Custom Fourmula in Virtuemart
Post by: rinku on December 19, 2012, 13:02:16 PM
Thank You Jenkin Hill
For always quick to reply.
Thank you so much