Author Topic: Need Product Availability in multiple language  (Read 2293 times)

encreplus

  • Jr. Member
  • **
  • Posts: 238
    • Dr-ink
  • VirtueMart Version: 3.0.10
Need Product Availability in multiple language
« on: April 12, 2013, 23:18:26 pm »
In the product status page i need the content of the field  Availability  to be multiple language ...

I have try with this code :  COM_VIRTUEMART_AVAILABILITY_TEXT ... but the result on the front end is COM_VIRTUEMART_AVAILABILITY_TEXT ...

How can i fix this ??

Stefan

K&K media production

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 838
  • VirtueMart Version: VM3 on J3
Re: Need Product Availability in multiple language
« Reply #1 on: April 14, 2013, 02:41:36 am »
Is fixed for the next version.

You can make a template override for product details page and change line 222 to this:

Code: [Select]
<?php echo (file_exists(JPATH_BASE DS VmConfig::get('assets_general_path') . 'images/availability/' $this->product->product_availability)) ? JHTML::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' $this->product->product_availability$this->product->product_availability, array('class' => 'availability')) : JText::_($this->product->product_availability); ?>