Author Topic: [SOLVED] Display price per square meter  (Read 5552 times)

caco

  • Beginner
  • *
  • Posts: 19
[SOLVED] Display price per square meter
« 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!

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10272
  • VirtueMart Version: 3+
Re: Display price per square meter
« Reply #1 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
I do NOT do development work for hire.

caco

  • Beginner
  • *
  • Posts: 19
Re: Display price per square meter
« Reply #2 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

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10272
  • VirtueMart Version: 3+
Re: Display price per square meter
« Reply #3 on: March 05, 2011, 14:09:32 pm »
does the box have a even amount of square meters?

I do NOT do development work for hire.

caco

  • Beginner
  • *
  • Posts: 19
Re: Display price per square meter
« Reply #4 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....

caco

  • Beginner
  • *
  • Posts: 19
Re: Display price per square meter
« Reply #5 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.... :-\

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10272
  • VirtueMart Version: 3+
Re: Display price per square meter
« Reply #6 on: March 07, 2011, 14:07:39 pm »
y dont you use the "short description for the category display price?

I do NOT do development work for hire.

caco

  • Beginner
  • *
  • Posts: 19
Re: Display price per square meter
« Reply #7 on: March 09, 2011, 13:34:58 pm »
pfff..... Shame on me!  :-[
I didn't even think about it...
Thank you!

dkaneloglou

  • Beginner
  • *
  • Posts: 19
Re: [SOLVED] Display price per square meter
« Reply #8 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

rinopiponte

  • Beginner
  • *
  • Posts: 7
  • VM Developer
    • Design It
Re: [SOLVED] Display price per square meter
« Reply #9 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
and Here download page: http://design-it.es/diseno-web-extensiones/your-size-custom-size-virtuemart-detail

Regards.
**************************
VM Plugin Developements: http://design-it.es/diseno-web-extensiones
Website: http://design-it.es
**************************