News:

Support the VirtueMart project and become a member

Main Menu

Displaying Producy Dimensions on front end

Started by Gman1108, April 12, 2013, 00:21:31 AM

Previous topic - Next topic

Gman1108

Hi everyone,

Really hope you can help....

I've got all my products setup and have added some info in the 'Product dimensions and weight' tab.

Thing is,  don't see that info in the front end where customers should be able to see this info. I've searched all over the settings but can't seem to find where I've missed something.

I'm running Joomla 2.5 and VM 2.0.18a.

I'm not a expert at this, so whatever help you can give me will be greatly appreciated.

Many thanks.

jjk

#1
The length, height, width, weight fields in this tab are normally used for shipping calculations only. It is possible to use these fields in the the product views by altering the code like described here: http://forum.virtuemart.net/index.php?topic=97877.msg322694#msg322694
However, normally you just add dimensions to the product views by creating custom fields which, once created can be assigned to each of your products in the 'Custom Fields' tab of your 'Product edit' view.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Gman1108

Hello,

Thanks for the tip...it makes sense to use custom fields. Just been doing that, set it all up which is pretty straight forward, but I don't see the info on the front end.

Done some digging around and what I've done is spot on, yet I don't see the info I added.

I;ve setup the field as a string, not hidden and not for admin only.

I'm expecting to see it on the page of the item I'm browsing to.

Any ideas at all?

Thank you.

jjk

Personally I'm using the 'Integer' for my custom field size values instead of 'string". You can i.e. define "Size" and then group "Length", "Height" and "Width" under the "Size" field by selecting "Size" as a parent in the custom field settings. This way you can select "Size" in your 'Product Edit' view > 'Custom Fields' tab and assign them to your product all at once instead of individually.  I think you forgot to assign your custom fields to the product in the 'Product Edit' view > 'Custom Fields' tab, which is why they are not displayed in your frontend product view.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

jenkinhill

If you just want to display the product dimensions in the product decsription see http://forum.virtuemart.net/index.php?topic=92756.0  for the code snippets to use.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Gman1108

Thanks guys,

JJK, I've added the custome field to my products, but still, the info doesnt show...could I have missed something here?

jenkinhill, I don't have the confidence to try that yet. As you can probably tell, getting into the code isn't something I can do right now, I'm sure I'll paste that code in the wrong place, and then I'll be in a right mess.

Hope you can help guys.

Many thanks,