News:

Looking for documentation? Take a look on our wiki

Main Menu

Weight of products

Started by Web Marketing Vicenza, September 08, 2017, 09:15:37 AM

Previous topic - Next topic

Web Marketing Vicenza

Hello

anybody know why in products I see the weight with 4 decimal numbers? It is possible to change from 4 to 2? Or cancel the number after comma?

I am trying to change the default.php in product detail. Do you know solutions?

Thanks
Agenzia di Web Marketing Vicenza specializzata in marketing digitale per aziende: Evisole Studio Associato

Web Marketing Vicenza

I think I found the solution:

In that file, I changes the Dimension adn added number_format on:

<h4><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DIMENSIONS_AND_WEIGHT'?></h4>
               
                <?php
                
if ($this->product->product_length 0) {
                echo 
'<div>'.JText::_('COM_VIRTUEMART_PRODUCT_LENGTH').': ' .number_format($this->product->product_length2)." ".$this->product->product_lwh_uom.'</div>';

....
Agenzia di Web Marketing Vicenza specializzata in marketing digitale per aziende: Evisole Studio Associato