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

#   product\_dimension\_unit instead of each by price

##

- **[cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")**
- [![cobinet&#95;edv's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile") Topic Author
- [ Offline](/forum/user/9990-cobinet-edv)

Less More

- Posts: 107
- Thank you received: 0
-
-

13 years 10 months ago [\#86092](#86092) by [cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")  *[product\_dimension\_unit instead of each by price](/forum/2-general-talk-about-hikashop/77548-product-dimension-unit-instead-of-each-by-price#86092 "Hallo,  If I see price of the product, I see the word &quot;each&quot; behind the price. I would see the value of the field &quot;product&#95;dimension&#95;init&quot; instead of &quot;each&quot;.  How to?")* was created by *[cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")*

Hallo,

If I see price of the product, I see the word "each" behind the price.
I would see the value of the field "product_dimension_init" instead of "each".

How to?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 10 months ago -  13 years 10 months ago [\#86154](#86154) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[product\_dimension\_unit instead of each by price](/forum/2-general-talk-about-hikashop/77548-product-dimension-unit-instead-of-each-by-price#86154 "Hallo,  If I see price of the product, I see the word &quot;each&quot; behind the price. I would see the value of the field &quot;product&#95;dimension&#95;init&quot; instead of &quot;each&quot;.  How to?")*

Hi,

You can override the view "product &#124; listing_price" and replace the code: Code:

if(isset($price-&gt;price_min_quantity) &amp;&amp; empty($this-&gt;cart_product_price) &amp;&amp; $this-&gt;params-&gt;get('per_unit',1)){ if($price-&gt;price_min_quantity&gt;1){ echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price-&gt;price_min_quantity); }else{ echo JText::_('PER_UNIT'); } }

By Code:

if(isset($price-&gt;price_min_quantity) &amp;&amp; empty($this-&gt;cart_product_price) &amp;&amp; $this-&gt;params-&gt;get('per_unit',1)){ if($price-&gt;price_min_quantity&gt;1){ echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price-&gt;price_min_quantity); }else{ echo ' ' . JText::_($this-&gt;row-&gt;product_dimension_unit); } }

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 13 years 10 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

- **[cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")**
- [![cobinet&#95;edv's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile") Topic Author
- [ Offline](/forum/user/9990-cobinet-edv)

Less More

- Posts: 107
- Thank you received: 0
-
-

13 years 10 months ago [\#86668](#86668) by [cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")  Replied by *[cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")* on topic *[product\_dimension\_unit instead of each by price](/forum/2-general-talk-about-hikashop/77548-product-dimension-unit-instead-of-each-by-price#86668 "Hallo,  If I see price of the product, I see the word &quot;each&quot; behind the price. I would see the value of the field &quot;product&#95;dimension&#95;init&quot; instead of &quot;each&quot;.  How to?")*

Thanks

It works fine.
Have you one idee for switch between englisch and german?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 10 months ago [\#86743](#86743) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[product\_dimension\_unit instead of each by price](/forum/2-general-talk-about-hikashop/77548-product-dimension-unit-instead-of-each-by-price#86743 "Hallo,  If I see price of the product, I see the word &quot;each&quot; behind the price. I would see the value of the field &quot;product&#95;dimension&#95;init&quot; instead of &quot;each&quot;.  How to?")*

Hi,

You can use JoomFish (if on J15) or FaLang. You should find an integration plugin with HikaShop on their website.

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

- **[cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")**
- [![cobinet&#95;edv's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile") Topic Author
- [ Offline](/forum/user/9990-cobinet-edv)

Less More

- Posts: 107
- Thank you received: 0
-
-

13 years 10 months ago [\#86766](#86766) by [cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")  Replied by *[cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")* on topic *[product\_dimension\_unit instead of each by price](/forum/2-general-talk-about-hikashop/77548-product-dimension-unit-instead-of-each-by-price#86766 "Hallo,  If I see price of the product, I see the word &quot;each&quot; behind the price. I would see the value of the field &quot;product&#95;dimension&#95;init&quot; instead of &quot;each&quot;.  How to?")*

I have it already done
It works
But I must create for each unit one value in falang to translate
I have 40 units
I would have product_dimension_unit on german site and for example product_dimension_unit2 on englisch site

I know, I want too much

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 10 months ago [\#86790](#86790) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[product\_dimension\_unit instead of each by price](/forum/2-general-talk-about-hikashop/77548-product-dimension-unit-instead-of-each-by-price#86790 "Hallo,  If I see price of the product, I see the word &quot;each&quot; behind the price. I would see the value of the field &quot;product&#95;dimension&#95;init&quot; instead of &quot;each&quot;.  How to?")*

I don't have FaLang installed on my end, but if you find the method to know in which language you are, you just have to add a if condition to display dimension unit or dimension unit2.

You should post on the FaLang forum to know how get the var of the language.
I think that it's stored in the session, or maybe in a cookie.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTQ4LXByb2R1Y3QtZGltZW5zaW9uLXVuaXQtaW5zdGVhZC1vZi1lYWNoLWJ5LXByaWNlP3RtcGw9bWFya2Rvd24=) 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.057 seconds

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