VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: Haksli on August 08, 2015, 14:06:31 PM

Title: Price calculation depending on custom attributes
Post by: Haksli on August 08, 2015, 14:06:31 PM
Hi!

I need to make automatic calculation of the product price depending on products size (length, depth and width).  The length, width and depth are custom fields that user enters.

The formula of price calculation is like: p1*(height*depth + width*depth)+p2*(lenght+depth+width)+p3. Pi - some values.

How to make such price calculation with virtuemart? Is it possible?

Maybe there are some other ecommerce extension that may have such functionality?

Thanks in advance!
Title: Re: Price calculation depending on custom attributes
Post by: Studio 42 on August 08, 2015, 21:54:51 PM
Hi haski,
You can certainly find plugin doing this as custom size by istraxx.
This is not a problem in Virtuemart.

I'm myself on developing a new plugin, with more features but including your needs.
You can then :
- add color blocks as options
- add image as option from any folder from joomla images.
- any options can use operators +,-,=,*
- * operator is your need and permit to use either the product price(as your need) or the base price from plugin and add another price for calculation.( Eg 3.1416 for cylinder price calculation) and multiply the price by the quantity entered(you can choose decimals or integer).

You can find it next in my shop.

Greets,

Patrick