Author Topic: How to change the unit dimension?  (Read 1038 times)

ZangiefJ

  • Beginner
  • *
  • Posts: 24
How to change the unit dimension?
« on: January 07, 2015, 06:23:17 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10303
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: How to change the unit dimension?
« Reply #1 on: January 07, 2015, 20:13:11 pm »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation