javascript - How to display product unit of measurement on frontend (website) in Magento? -


i want display products unit of measurement @ frontend. have created weight_unit attribute in admin panel , adding products gram, kilogram, liter, etc. can't show @ frontend. use following code display @ frontend:

<?php echo $_product->getattributetext('weight_unit'); ?>  

still not getting proper show of product unit. please can suggest me how show it? there other methods represent product unit?

you can use translation method achieve this. can find out in following link.

https://magento.stackexchange.com/questions/6924/custom-attribute-ending

in post, translation method , translation csv files used achieve this. can write unit of measurement in csv file , use attribute code in translation method.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -