VM2, visualizzare pesi e misure

Gio
Mag
03
2012
38 hits

logo-virtuemartPer visualizzare i pesi e le misure nella pagina del dettaglio prodotto in Virtuemart 2, รจ necessario aggiungere al codice php della pagina scelta alcune righe di codice...

 

 

		<?php //Product Weight
	if (!(($this->product->product_weight)==0)) { ?>
					<span class="product-fields-title" >
					<?php echo JText::_('COM_VIRTUEMART_PRODUCT_WEIGHT') ?>
					</span>
					<?php echo $this->product->product_weight ?>
					</br>
				<?php } ?>
	
	<?php //Product Length
	if (!(($this->product->product_length)==0)) { ?>
					<span class="product-fields-title" >
					<?php echo JText::_('COM_VIRTUEMART_PRODUCT_LENGTH') ?>
					</span>
					<?php echo $this->product->product_length ?>
					</br>
				<?php } ?>
	
	<?php //Product Width
	if (!(($this->product->product_width)==0)) { ?>
					<span class="product-fields-title" >
					<?php echo JText::_('COM_VIRTUEMART_PRODUCT_WIDTH') ?>
					</span>
					<?php echo $this->product->product_width ?>
					</br>
				<?php } ?>
	
	<?php //Product Height
	if (!(($this->product->product_height)==0)) { ?>
					<span class="product-fields-title" >
					<?php echo JText::_('COM_VIRTUEMART_PRODUCT_HEIGHT') ?>
					</span>
					<?php echo $this->product->product_height ?>
					</br>
				<?php } ?>

 

Aggiungi commento


Codice di sicurezza
Aggiorna