[Skip to main content](#vessel-content)

#   Assigning Unit of Measure

##

- **[Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")**
- [![Cyngen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8590-cyngen "View Cyngen's Profile") Topic Author
- [ Offline](/forum/user/8590-cyngen)

Less More

- Posts: 49
- Thank you received: 2
-
-
-

14 years 1 month ago [\#67155](#67155) by [Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")  *[Assigning Unit of Measure](/forum/4-how-to/67155-assigning-unit-of-measure#67155 "Hello,  I followed the directions within the FAQ located at   www.hikashop.com/en/support/documentation/faq.html#each  I continue to get 'each' as the unit of measure, rather than the 'pound' i setup for a given product.  I did make the changes to the language area and added PER&#95;POUND to my override area for US English as well.  AT the present time the site is not online with DNS as I'm working with the client to convert over to a new system. I can provide the site and IP address if needed in a PM to gather any assistence if needed.  I'm on Joomla! 2.5.6 and Hikashop Business 1.6.0  cheers and thanks, Kurt")* was created by *[Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")*

Hello,

I followed the directions within the FAQ located at [ www.hikashop.com/en/support/documentation/faq.html#each](http://www.hikashop.com/en/support/documentation/faq.html#each)

I continue to get 'each' as the unit of measure, rather than the 'pound' i setup for a given product.

I did make the changes to the language area and added PER_POUND to my override area for US English as well.

AT the present time the site is not online with DNS as I'm working with the client to convert over to a new system. I can provide the site and IP address if needed in a PM to gather any assistence if needed.

I'm on Joomla! 2.5.6 and Hikashop Business 1.6.0

cheers and thanks,
Kurt

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MTU1LWFzc2lnbmluZy11bml0LW9mLW1lYXN1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 1 month ago -  14 years 1 month ago [\#67163](#67163) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: Assigning Unit of Measure](/forum/4-how-to/67155-assigning-unit-of-measure#67163 "Hello,  I followed the directions within the FAQ located at   www.hikashop.com/en/support/documentation/faq.html#each  I continue to get 'each' as the unit of measure, rather than the 'pound' i setup for a given product.  I did make the changes to the language area and added PER&#95;POUND to my override area for US English as well.  AT the present time the site is not online with DNS as I'm working with the client to convert over to a new system. I can provide the site and IP address if needed in a PM to gather any assistence if needed.  I'm on Joomla! 2.5.6 and Hikashop Business 1.6.0  cheers and thanks, Kurt")*

Hi,

Did you tried to edit your translation file and Override the line :

> PER\_UNIT=" each"

by :

> PER\_UNIT=" "

?

Last edit: 14 years 1 month ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MTU1LWFzc2lnbmluZy11bml0LW9mLW1lYXN1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")**
- [![Cyngen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8590-cyngen "View Cyngen's Profile") Topic Author
- [ Offline](/forum/user/8590-cyngen)

Less More

- Posts: 49
- Thank you received: 2
-
-
-

14 years 1 month ago -  14 years 1 month ago [\#67165](#67165) by [Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")  Replied by *[Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")* on topic *[Re: Assigning Unit of Measure](/forum/4-how-to/67155-assigning-unit-of-measure#67165 "Hello,  I followed the directions within the FAQ located at   www.hikashop.com/en/support/documentation/faq.html#each  I continue to get 'each' as the unit of measure, rather than the 'pound' i setup for a given product.  I did make the changes to the language area and added PER&#95;POUND to my override area for US English as well.  AT the present time the site is not online with DNS as I'm working with the client to convert over to a new system. I can provide the site and IP address if needed in a PM to gather any assistence if needed.  I'm on Joomla! 2.5.6 and Hikashop Business 1.6.0  cheers and thanks, Kurt")*

I'm not sure why I would blank out PER_UNIT as you stated. I tried that and my product detail page shows a 'blank' instead of a proper unit of measure.

Edited to Add: I'm not the best PHP coder out there (yet) so I'm sure it's something I've mucked up.

Thx, Kurt

Last edit: 14 years 1 month ago by [Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MTU1LWFzc2lnbmluZy11bml0LW9mLW1lYXN1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86579
- Thank you received: 14322
-
-

14 years 1 month ago [\#67251](#67251) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Assigning Unit of Measure](/forum/4-how-to/67155-assigning-unit-of-measure#67251 "Hello,  I followed the directions within the FAQ located at   www.hikashop.com/en/support/documentation/faq.html#each  I continue to get 'each' as the unit of measure, rather than the 'pound' i setup for a given product.  I did make the changes to the language area and added PER&#95;POUND to my override area for US English as well.  AT the present time the site is not online with DNS as I'm working with the client to convert over to a new system. I can provide the site and IP address if needed in a PM to gather any assistence if needed.  I'm on Joomla! 2.5.6 and Hikashop Business 1.6.0  cheers and thanks, Kurt")*

If you want to have help on the coding customization you did, we would need to know precisely what modification you did to which file and how you configured your custom field.
Could you please post some screenshots ?

The following user(s) said Thank You: [Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MTU1LWFzc2lnbmluZy11bml0LW9mLW1lYXN1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")**
- [![Cyngen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8590-cyngen "View Cyngen's Profile") Topic Author
- [ Offline](/forum/user/8590-cyngen)

Less More

- Posts: 49
- Thank you received: 2
-
-
-

14 years 1 month ago -  14 years 1 month ago [\#67311](#67311) by [Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")  Replied by *[Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")* on topic *[Re: Assigning Unit of Measure](/forum/4-how-to/67155-assigning-unit-of-measure#67311 "Hello,  I followed the directions within the FAQ located at   www.hikashop.com/en/support/documentation/faq.html#each  I continue to get 'each' as the unit of measure, rather than the 'pound' i setup for a given product.  I did make the changes to the language area and added PER&#95;POUND to my override area for US English as well.  AT the present time the site is not online with DNS as I'm working with the client to convert over to a new system. I can provide the site and IP address if needed in a PM to gather any assistence if needed.  I'm on Joomla! 2.5.6 and Hikashop Business 1.6.0  cheers and thanks, Kurt")*

Nicolas,

Attached are screen shots and the php file as defined by the FAQ [ www.hikashop.com/en/support/documentation/faq.html#each](http://www.hikashop.com/en/support/documentation/faq.html#each)

I setup a custom field called "uom"
I edited the product / listing_price.php file and it's attached as an .rtf with my changed colored in blue
I added "PER_POUND" to my language file.

I double checked the back end SQL record and it shows the column 'uom' populated with 'PER_POUND'

I included the front end behavior shot as well to show what is occuring.

Attached are screen shots and the php file in rtf format.

Thanks again, Kurt

- [ ![Add&#95;uom&#95;custom&#95;field.png](/forum/attachment/5962) ](/forum/attachment/5962 "...stom&#95;field.png") [ ](/forum/attachment/5962?download=1 "...stom&#95;field.png")
- [ ![Product&#95;Detail&#95;Page&#95;.png](/forum/attachment/5963) ](/forum/attachment/5963 "...tail&#95;Page&#95;.png") [ ](/forum/attachment/5963?download=1 "...tail&#95;Page&#95;.png")
- [ ![Language&#95;File.png](/forum/attachment/5964) ](/forum/attachment/5964 "Language&#95;File.png") [ ](/forum/attachment/5964?download=1 "Language&#95;File.png")
- [ ![Front&#95;end.png](/forum/attachment/5965) ](/forum/attachment/5965 "Front&#95;end.png") [ ](/forum/attachment/5965?download=1 "Front&#95;end.png")

Last edit: 14 years 1 month ago by [Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MTU1LWFzc2lnbmluZy11bml0LW9mLW1lYXN1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86579
- Thank you received: 14322
-
-

14 years 1 month ago [\#67467](#67467) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Assigning Unit of Measure](/forum/4-how-to/67155-assigning-unit-of-measure#67467 "Hello,  I followed the directions within the FAQ located at   www.hikashop.com/en/support/documentation/faq.html#each  I continue to get 'each' as the unit of measure, rather than the 'pound' i setup for a given product.  I did make the changes to the language area and added PER&#95;POUND to my override area for US English as well.  AT the present time the site is not online with DNS as I'm working with the client to convert over to a new system. I can provide the site and IP address if needed in a PM to gather any assistence if needed.  I'm on Joomla! 2.5.6 and Hikashop Business 1.6.0  cheers and thanks, Kurt")*

Can you try to change all your code by:
echo JText::_($this-&gt;element-&gt;uom);

The following user(s) said Thank You: [Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MTU1LWFzc2lnbmluZy11bml0LW9mLW1lYXN1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")**
- [![Cyngen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8590-cyngen "View Cyngen's Profile") Topic Author
- [ Offline](/forum/user/8590-cyngen)

Less More

- Posts: 49
- Thank you received: 2
-
-
-

14 years 1 month ago [\#67581](#67581) by [Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")  Replied by *[Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")* on topic *[Re: Assigning Unit of Measure](/forum/4-how-to/67155-assigning-unit-of-measure#67581 "Hello,  I followed the directions within the FAQ located at   www.hikashop.com/en/support/documentation/faq.html#each  I continue to get 'each' as the unit of measure, rather than the 'pound' i setup for a given product.  I did make the changes to the language area and added PER&#95;POUND to my override area for US English as well.  AT the present time the site is not online with DNS as I'm working with the client to convert over to a new system. I can provide the site and IP address if needed in a PM to gather any assistence if needed.  I'm on Joomla! 2.5.6 and Hikashop Business 1.6.0  cheers and thanks, Kurt")*

I will give this a try and report back the results. Again, thank you.

Kurt

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MTU1LWFzc2lnbmluZy11bml0LW9mLW1lYXN1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")**
- [![Cyngen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8590-cyngen "View Cyngen's Profile") Topic Author
- [ Offline](/forum/user/8590-cyngen)

Less More

- Posts: 49
- Thank you received: 2
-
-
-

14 years 1 month ago [\#67583](#67583) by [Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")  Replied by *[Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")* on topic *[Re: Assigning Unit of Measure](/forum/4-how-to/67155-assigning-unit-of-measure#67583 "Hello,  I followed the directions within the FAQ located at   www.hikashop.com/en/support/documentation/faq.html#each  I continue to get 'each' as the unit of measure, rather than the 'pound' i setup for a given product.  I did make the changes to the language area and added PER&#95;POUND to my override area for US English as well.  AT the present time the site is not online with DNS as I'm working with the client to convert over to a new system. I can provide the site and IP address if needed in a PM to gather any assistence if needed.  I'm on Joomla! 2.5.6 and Hikashop Business 1.6.0  cheers and thanks, Kurt")*

Nicolas,

That fixed it perfectly. If you have time, I'd be interested in knowing why the change from the documents? Did I read something incorrectly? Again, thank you for the quick response.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MTU1LWFzc2lnbmluZy11bml0LW9mLW1lYXN1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86579
- Thank you received: 14322
-
-

14 years 1 month ago [\#67646](#67646) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Assigning Unit of Measure](/forum/4-how-to/67155-assigning-unit-of-measure#67646 "Hello,  I followed the directions within the FAQ located at   www.hikashop.com/en/support/documentation/faq.html#each  I continue to get 'each' as the unit of measure, rather than the 'pound' i setup for a given product.  I did make the changes to the language area and added PER&#95;POUND to my override area for US English as well.  AT the present time the site is not online with DNS as I'm working with the client to convert over to a new system. I can provide the site and IP address if needed in a PM to gather any assistence if needed.  I'm on Joomla! 2.5.6 and Hikashop Business 1.6.0  cheers and thanks, Kurt")*

It must have been a miss somewhere in your changes. Maybe a space in a value or else.
I'm not the one who did this FAQ and the code from the FAQ should be changed to mine. It will be easier to follow for users.
I've actually made the change.

The following user(s) said Thank You: [Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MTU1LWFzc2lnbmluZy11bml0LW9mLW1lYXN1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")**
- [![Cyngen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8590-cyngen "View Cyngen's Profile") Topic Author
- [ Offline](/forum/user/8590-cyngen)

Less More

- Posts: 49
- Thank you received: 2
-
-
-

14 years 1 month ago [\#67669](#67669) by [Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")  Replied by *[Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")* on topic *[Re: Assigning Unit of Measure](/forum/4-how-to/67155-assigning-unit-of-measure#67669 "Hello,  I followed the directions within the FAQ located at   www.hikashop.com/en/support/documentation/faq.html#each  I continue to get 'each' as the unit of measure, rather than the 'pound' i setup for a given product.  I did make the changes to the language area and added PER&#95;POUND to my override area for US English as well.  AT the present time the site is not online with DNS as I'm working with the client to convert over to a new system. I can provide the site and IP address if needed in a PM to gather any assistence if needed.  I'm on Joomla! 2.5.6 and Hikashop Business 1.6.0  cheers and thanks, Kurt")*

Case closed as it were. Thanks for the fast good response.

Kurt

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MTU1LWFzc2lnbmluZy11bml0LW9mLW1lYXN1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.095 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
