VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Products, Prices, Tax and Categories VM 1.1 => Topic started by: caco on March 04, 2011, 16:05:20 pm

Title: [SOLVED] Display price per square meter
Post by: caco on March 04, 2011, 16:05:20 pm
Hello,

I've been looking for this, but I have only found old topics. ???
 Here is my question.
I working on a website that will sell floor tiles. So each product is sold by box of about 1,512m2. I would like to display the square meter price on the category page (under each product). Then, when we are on the product page, the quantity will be calculated by box, so there is no problem.
So... How can I display the price per square meter on the category page?

Thank you for your help!
Title: Re: Display price per square meter
Post by: PRO on March 04, 2011, 18:00:12 pm
product_weight_uom
    The Product Weight's unit of measure

http://virtuemart.net/documentation/Developer_Manual/Modifying_the_Layout.html#Templates
Title: Re: Display price per square meter
Post by: caco on March 05, 2011, 09:49:17 am
Tank you for the link. The thing is I want to display the price per square meter on the category page although I sell the product by box. I still don't know how to do it. Did I miss something? :P
Title: Re: Display price per square meter
Post by: PRO on March 05, 2011, 14:09:32 pm
does the box have a even amount of square meters?

Title: Re: Display price per square meter
Post by: caco on March 05, 2011, 15:44:02 pm
I'm not sure I understand the question.... :-[
However, if this can help, there are 2 different boxes (1.440m2, 1.512m2 ). I had forgotten that I also sell product that have a linear meter price.
I guess the "easiest" thing would be for me to add a field in the database, and then display it in the category page....
Title: Re: Display price per square meter
Post by: caco on March 05, 2011, 16:37:43 pm
I tried to add the field manually to the database, but I can't display it on the category page. I also tried to add it via the product type field, but same problem. I don't manage to display it.... :-\
Title: Re: Display price per square meter
Post by: PRO on March 07, 2011, 14:07:39 pm
y dont you use the "short description for the category display price?

Title: Re: Display price per square meter
Post by: caco on March 09, 2011, 13:34:58 pm
pfff..... Shame on me!  :-[
I didn't even think about it...
Thank you!
Title: Re: [SOLVED] Display price per square meter
Post by: idor on October 26, 2011, 13:08:50 pm
Hello,
I have a similar question. I have a store that sells wood.
The price is XXXeuros per meter.
What I want is an input where the user puts the value of the meters for example 0,5 or 3 or 5,5 etc
and then to calculate the total price.
Is it possible?
Thank you
Title: Re: [SOLVED] Display price per square meter
Post by: rinopiponte on May 06, 2015, 13:50:46 pm
Even though this is an old post, it could be useful for other users
I found a new paid extension (apart from the official developed by VM [custom size = 40$] for 20€] that allows fixing the width and length in order to calculate de price. The price is calculated by square meter.
Here is a demo: http://design-it.es/impresion-aluminio3mm-detail (http://design-it.es/impresion-aluminio3mm-detail)
and Here download page: http://design-it.es/diseno-web-extensiones/your-size-custom-size-virtuemart-detail (http://design-it.es/diseno-web-extensiones/your-size-custom-size-virtuemart-detail)

Regards.