Author Topic: Show Product Packaging on Details  (Read 720 times)

LeandroM

  • Beginner
  • *
  • Posts: 2
  • A beginner
Show Product Packaging on Details
« on: August 10, 2021, 22:27:17 pm »
Hi guys!

My system: VirtueMart 3.8.9 10514 + Joomla 3.9.28.

I want to show in product details the Packaging value and unit.

I tried this code below, but it only shows zero.

Code: [Select]
<?php //Product Packaging
if (!(($item->product_packaging)==0)) 
?>

 <span class="product-fields-title" >
 <?php echo JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING'?>:
 </span>
 <?php echo floor($item->product_packaging?>
 </br>
<?php ?>

Anyone could help me return the value and the unit?