Welcome, Guest
Username: Password: Remember me

TOPIC: I need some small changes in templates

I need some small changes in templates 8 years 5 months ago #1462

  • davram
  • davram's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
Hello!
I need some small changes in templates if is possible.

I want to see in product details Product Weight and Product Unit.

Can you help me please ?

Thank you
Last Edit: 8 years 5 months ago by davram.
The administrator has disabled public write access.

Re: I need some small changes in templates 8 years 5 months ago #1465

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 910
  • Thank you received: 568
  • Karma: 25
Hi,
Just do this:

In Virtuemart backend, just add custom fields for those(unit, weight) and in product edit, put the value for them.

Thanks
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
The administrator has disabled public write access.

Re: I need some small changes in templates 8 years 5 months ago #1467

  • davram
  • davram's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
Thank you.

I found this code to add default.php from templates/ot_petshop/html/com_virtuemart/productdetails


</br>
<?php //Product Weight
if (!(($this->product->product_weight)==0)) { ?>
<span class="product-fields-title" >
<?php echo JText::_('Greutate: ') ?>
</span>
<?php echo $this->product->product_weight ?>
<?php echo JText::_(' ') ?>
<?php echo $this->product->product_weight_uom; ?>
<br>

<span class="product-fields-title" >
<?php echo JText::_('Disponibil la: ') ?>
</span>
<?php echo $this->product->product_unit; ?>
<?php } ?>
The administrator has disabled public write access.
Time to create page: 0.158 seconds