dimensions anf product reference in product details in virtuemart

contact272
10 Posts
contact272 posted this 29 April 2017

Hello Themler Team,
First of all congratulation for the great work, this is awesome to use such efficient tool.
I have a jommla/virtuemart website with thousands of products and I've decided after the last update to use themler' template. I manage to set everything but I need two more details to be displayed in the product detail page (knowing that those 2 information are compulsory for my client :-(((((.
I need to display the dimensions of the product (lenght / weight / height ...) AND as well the "Reference" of the product (as many products are similar).
Please please, what solution can I apply to make those 2 sets of information to be dispalyed?
I would take any solution as I am very willing to use themler but without this I will have to use another template :-((((
Thanks very much in advance
Estelle

Hello Themler Team, First of all congratulation for the great work, this is awesome to use such efficient tool. I have a jommla/virtuemart website with thousands of products and I've decided after the last update to use themler' template. I manage to set everything but I need two more details to be displayed in the product detail page (knowing that those 2 information are compulsory for my client :-(((((. I need to display the dimensions of the product (lenght / weight / height ...) AND as well the "Reference" of the product (as many products are similar). Please please, what solution can I apply to make those 2 sets of information to be dispalyed? I would take any solution as I am very willing to use themler but without this I will have to use another template :-(((( Thanks very much in advance Estelle
Vote to pay developers attention to this features or issue.
3 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 02 May 2017

Hi,

I need to display the dimensions of the product (lenght / weight / height ...)

I've found the following manual solution:

Product Weight

<?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 } ?>

PRODUCT LENGTH

<?php //Product Length
if (!(($this->product->product_length)==0)) { ?>
<?php echo JText::_('COM_VIRTUEMART_PRODUCT_LENGTH') ?>
<strong>
<?php echo floor($this->product->product_length) ?></strong>
</br>
<?php } ?>

PRODUCT WIDTH

<?php //Product Width
if (!(($this->product->product_width)==0)) { ?>
<?php echo JText::_('COM_VIRTUEMART_PRODUCT_WIDTH') ?>
<strong>
<?php echo floor($this->product->product_width) ?></strong>
</br>
<?php } ?>

PRODUCT HEIGHT

<?php //Product Height
if (!(($this->product->product_height)==0)) { ?>
<span class="product-fields-title" >
<?php echo JText::_('COM_VIRTUEMART_PRODUCT_HEIGHT') ?>
</span>
<?php echo floor($this->product->product_height) ?>
</br>
<?php } ?>

All custom PHP can be added to the CMS CODE control (Insert tab >> More). Add this control to the place where you want the result to appear.
This is for Product Details template.

AND as well the "Reference" of the product (as many products are similar).

Do you mean product SKU? If so please find custom code here:

http://answers.themler.com/articles/67028/tips-and-tricks#t_2

Thank you,
Olivia

Hi, > I need to display the dimensions of the product (lenght / weight / height ...) I've found the following manual solution: Product Weight `<?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 } ?>` PRODUCT LENGTH `<?php //Product Length if (!(($this->product->product_length)==0)) { ?> <?php echo JText::_('COM_VIRTUEMART_PRODUCT_LENGTH') ?> <strong> <?php echo floor($this->product->product_length) ?></strong> </br> <?php } ?>` PRODUCT WIDTH `<?php //Product Width if (!(($this->product->product_width)==0)) { ?> <?php echo JText::_('COM_VIRTUEMART_PRODUCT_WIDTH') ?> <strong> <?php echo floor($this->product->product_width) ?></strong> </br> <?php } ?>` PRODUCT HEIGHT `<?php //Product Height if (!(($this->product->product_height)==0)) { ?> <span class="product-fields-title" > <?php echo JText::_('COM_VIRTUEMART_PRODUCT_HEIGHT') ?> </span> <?php echo floor($this->product->product_height) ?> </br> <?php } ?>` All custom PHP can be added to the CMS CODE control (Insert tab >> More). Add this control to the place where you want the result to appear. This is for Product Details template. > AND as well the "Reference" of the product (as many products are similar). Do you mean product SKU? If so please find custom code here: http://answers.themler.com/articles/67028/tips-and-tricks#t_2 Thank you, Olivia
contact272
10 Posts
contact272 posted this 02 May 2017

Hello Olivia,

This is great, thanks very much for your help. I discovered the use of CMS CODE and this is so efficient to customize everything, great!
YOU made my day !

Hello Olivia, This is great, thanks very much for your help. I discovered the use of CMS CODE and this is so efficient to customize everything, great! YOU made my day !
Support Team
Support Team posted this 03 May 2017

Hi,

You're welcome!
Please let us know if you have any other questions.

Thank you,
Olivia

Hi, You're welcome! Please let us know if you have any other questions. Thank you, Olivia
You must log in or register to leave comments