VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: krumz on February 10, 2013, 20:04:36 PM

Title: Product Width, Height to Show Half Inches on Product Page
Post by: krumz on February 10, 2013, 20:04:36 PM
Hello everyone,

I have looked through the forum and the manual and it's possible I haven't yet found this but my question is:

When I have a product and I'm listing the width, height, etc. and say I enter 13.5 for the width - on the frontend product page it shows as just 13 inches.

Is there a way to fix this so it shows my actual dimensions?

Thank you.
Title: Re: Product Width, Height to Show Half Inches on Product Page
Post by: jjk on February 10, 2013, 21:05:43 PM
Not shure where you enter your dimensions. I've set up customs fields for height and width and selected 'Integer' as the custom field type. It does show entered decimal values correctly in my shop.
Title: Re: Product Width, Height to Show Half Inches on Product Page
Post by: krumz on February 10, 2013, 23:13:24 PM
I enter the dimensions when setting up a new Product. There are several tabs for Product Description, Product Information, etc. One of the tabs is for Product Dimensions and Weight. I didn't have to set up anything custom, it was just there.

I wonder what the difference is between the default I am using versus a custom field you set up? I would think the two should be the same?
Title: Re: Product Width, Height to Show Half Inches on Product Page
Post by: krumz on February 10, 2013, 23:34:29 PM
OK, so I set up a custom field for width, height, weight and it shows the exact dimensions as I enter them. I still wonder what the difference is between the default option to enter this information and a custom field?

I did notice the custom field is showing up after the description, is there a way to change this so it shows at the top of the page next to the product image?

Title: Re: Product Width, Height to Show Half Inches on Product Page
Post by: jjk on February 11, 2013, 15:00:37 PM
Quote from: krumz on February 10, 2013, 23:34:29 PM
I still wonder what the difference is between the default option to enter this information and a custom field?

The weight and dimension values in the product edit tab normally are used for shipping cost calculations only.

QuoteI did notice the custom field is showing up after the description, is there a way to change this so it shows at the top of the page next to the product image?
You would have to adjust the template for this. I think in this case you would have to make an override of ...\components\com_virtuemart\views\productdetails\tmpl