News:

Support the VirtueMart project and become a member

Main Menu

How to change the unit dimension?

Started by ZangiefJ, January 07, 2015, 06:23:17 AM

Previous topic - Next topic

ZangiefJ

HI:

I use VM 3.0.2 + joomla 3.3.1

How to change the product unit dimension?

For example, product weight is 200g, I hope the display in front is 200g, not 200.0000g like picture that(include other height etc.)



THANK YOU!

Jeremy

[attachment cleanup by admin]

GJC Web Design

It's your template  - find that line and php number_format() it - something like (check the syntax - from memory)

$weight = number_format($weight,2);
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation