News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Product Unit in VM 2.0.12b default in productdetails/tmpl/default.php

Started by meldmeaan, October 10, 2012, 16:21:08 PM

Previous topic - Next topic

meldmeaan

Hi,
I have added the following in productdetails/tmp/default.php after line 279
// Product Unit
    $product_unit = '';
    if ($this->product->product_unit) {
?>
        <div class="product-unit">
    <?php
        echo 
JText::_('COM_VIRTUEMART_PRODUCT_UNIT') .$this->product->product_unit;
    ?>

        </div>
    <?php // Product unit END

This to display the product unit in Product Detail.
There is one problem with it....
I live in the netherlands so Cubic Meter is spelled as Kubiekemeter.
I this piece of code it show CUBM as product unit. That should be Kubiekemeter.
In the language file it says : COM_VIRTUEMART_UNIT_NAME_CUBM="Kubiekemeter"
So what im i doing wrong ?
And could this become a default in VM to show the unit of a product.??

Greetings
ivo