I think that you see the decimals after saving a product at the admin interface. If i am right i have a tested solution for you.
Please open /administrator/components/com_virtuemart/html/product.product_display.php file for editing and replace the code from 153rd line to 167th with this one
PHP Code:<fieldset>
<legend><strong><?php echo $dim_weight_label ?></strong></legend>
<div class="formLabel"> <?php echo $VM_LANG->_PHPSHOP_PRODUCT_FORM_LENGTH ?>:</div>
<div class="formField" > <?php echo round($db->f("product_length"),0) . " " . $db->f("product_lwh_uom"); ?></div>
<div class="formLabel"> <?php echo $VM_LANG->_PHPSHOP_PRODUCT_FORM_WIDTH ?>:</div>
<div class="formField" > <?php echo round($db->f("product_width"),0) . " " . $db->f("product_lwh_uom"); ?></div>
<div class="formLabel"> <?php echo $VM_LANG->_PHPSHOP_PRODUCT_FORM_HEIGHT ?>:</div>
<div class="formField"> <?php echo round($db->f("product_height"),0) . " " . $db->f("product_lwh_uom"); ?></div>
<div class="formLabel"> <?php echo $VM_LANG->_PHPSHOP_PRODUCT_FORM_WEIGHT ?>:</div>
<div class="formField"><?php echo round($db->f("product_weight"),1) . " " . $db->f("product_weight_uom"); ?></div>
</fieldset>



LinkBack URL
About LinkBacks






Bookmarks