News:

Support the VirtueMart project and become a member

Main Menu

Product length height - ".0000"

Started by okewaja, May 15, 2016, 19:15:55 PM

Previous topic - Next topic

okewaja

Hi,

Is there any way to turn off in virtuemart the ".0000" from product_length product_height? So the value would be f.e. 18 not 18.0000?

Joomla! 3.5.1 Stable [ Unicorn ] 05-April-2016 22:45 GMT
PHP Version 5.6.4-0+tld0

Thank you,
Matt

GJC Web Design

it can only be your template.. height isn't shown on the std templates

to change assume std. php number_format function
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

okewaja

#2
I'm not sure if I understand.
In database all products dimensions always save in .0000 format (product_length product_width product_height columns). Is there a way to save them without every time without .0000?

GJC Web Design

change their display!

google  php number_format function
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