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

#   change per unit into per set, per length, per reel

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

14 years 5 months ago [\#51395](#51395) by [cobinet](/forum/user/7586-cobinet "View cobinet's Profile")  *[change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#51395 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")* was created by *[cobinet](/forum/user/7586-cobinet "View cobinet's Profile")*

Hello,

we are planing to sell products with a hikashop 2.5.
in the product-mask i haven't the possibility to change the phrase "per unit" after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?

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

14 years 5 months ago [\#51475](#51475) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#51475 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

Hi cobinet,

A way to do that is:
Create a "Custom field" in Hikashop &gt; Display &gt; Custom fields with the table "Product" with the title, for example: "product_per";

In your product configuration page, add "unit" in the "product_per" field.

Then in Hikashop &gt; Display &gt; Views, edit the view: "product / listing_price.php" in the good template.

Here you can replace: Code:

echo JText::_('PER_UNIT');

To: Code:

if($this-&gt;element-&gt;product_per == 'unit'){ echo JText::_('PER_UNIT'); }

And add custom values for your checks: unit / set / lenght / reel ...

The following user(s) said Thank You: [cobinet](/forum/user/7586-cobinet "View cobinet's Profile")

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

14 years 4 months ago -  14 years 4 months ago [\#51860](#51860) by [cobinet](/forum/user/7586-cobinet "View cobinet's Profile")  Replied by *[cobinet](/forum/user/7586-cobinet "View cobinet's Profile")* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#51860 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

I used this Version to solve the Problem:

$mengeneinheit1 = JText::_('PER_UNIT') ;
          foreach($this-&gt;fields as $fieldName =&gt; $oneExtraField) {
          if(!empty($this-&gt;element-&gt;$fieldName)){
          if( $this-&gt;fieldsClass-&gt;show($oneExtraField,$this-&gt;element-&gt;$fieldName) == 'pro Satz'){
          $mengeneinheit1 = JText::_('per pack');}
          else if( $this-&gt;fieldsClass-&gt;show($oneExtraField,$this-&gt;element-&gt;$fieldName) == 'pro Meter'){
               $mengeneinheit1 = JText::_('per meter');}
          else if( $this-&gt;fieldsClass-&gt;show($oneExtraField,$this-&gt;element-&gt;$fieldName) == 'pro Rolle'){
               $mengeneinheit1 = JText::_('per reel');}
          }
          }
          echo $mengeneinheit1;  

But thre's another Problem.In the product overviews, there is alway mentioned 'PER_UNIT' or my translation 'pro Stück' and not my chosen option (here per_pack). So i need to copy the text in another file, but i coldn't find it. Could you give me a hint.

Here the picture:
Overview
[ ![&#91;img](http://666kb.com/i/c48em37elhheo7fta.gif) ](http://666kb.com/i/c48em37elhheo7fta.gif "&#91;img")

Product Page
[ ![&#91;img](http://666kb.com/i/c48ekogzp3tiy7aoe.gif) ](http://666kb.com/i/c48ekogzp3tiy7aoe.gif "&#91;img")

Last edit: 14 years 4 months ago by [cobinet](/forum/user/7586-cobinet "View cobinet's Profile").

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

14 years 4 months ago -  14 years 4 months ago [\#51910](#51910) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#51910 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

Hi cobinet,

For the product overviews you need:
**$this-&gt;row-&gt;product\_per == 'unit'**
Code:

if($this-&gt;element-&gt;product_per == 'unit' &#124;&#124; $this-&gt;row-&gt;product_per == 'unit'){ echo JText::_('PER_UNIT'); }

Last edit: 14 years 4 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

- **[Afrosaxon](/forum/user/7759-afrosaxon "View Afrosaxon's Profile")**
- [![Afrosaxon's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7759-afrosaxon "View Afrosaxon's Profile")
- [ Offline](/forum/user/7759-afrosaxon)

Less More

- Posts: 11
- Thank you received: 0
-
-

14 years 4 months ago -  14 years 4 months ago [\#53602](#53602) by [Afrosaxon](/forum/user/7759-afrosaxon "View Afrosaxon's Profile")  Replied by *[Afrosaxon](/forum/user/7759-afrosaxon "View Afrosaxon's Profile")* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#53602 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

I'm a bit stuck with this, I try create a custom field, but the Table option is set to "address" can't change it too "Product" and add as per Xaviers instructions.

Also I am looking to create instead of the $14.95 each to $14.95 per page

Sorry but getting a bit lost creating this.

**Sorry fixed!, got it via the Configuration, languages file, edited that and voila, per page pops up ![;)](/media/kunena/emoticons/11.png ";)")**

Last edit: 14 years 4 months ago by [Afrosaxon](/forum/user/7759-afrosaxon "View Afrosaxon's Profile").

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

- **arens**
- ![arens's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)

Less More

- Thank you received: 0
-
-

13 years 11 months ago [\#73836](#73836) by arens  Replied by *arens* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#73836 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

Any issue.

How too change order of " per unit" for before the price??

Ex: per unit 345 €

tx

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxMzk1LWNoYW5nZS1wZXItdW5pdC1pbnRvLXBlci1zZXQtcGVyLWxlbmd0aC1wZXItcmVlbD90bXBsPW1hcmtkb3du) 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 11 months ago [\#73984](#73984) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#73984 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

Hi,

You can override the translation of: "PRICE_BEGINNING" to set: PRICE_BEGINNING="per unit". and the translation of: "PER_UNIT" to PER_UNIT=""

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

- **arens**
- ![arens's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)

Less More

- Thank you received: 0
-
-

13 years 11 months ago [\#73995](#73995) by arens  Replied by *arens* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#73995 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

Thx Xavier

I solved but i have aproblem in page Checkout appear "precio" in resume products.

See attacha capture

####  Attachment not found

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxMzk1LWNoYW5nZS1wZXItdW5pdC1pbnRvLXBlci1zZXQtcGVyLWxlbmd0aC1wZXItcmVlbD90bXBsPW1hcmtkb3du) 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 11 months ago [\#74121](#74121) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#74121 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

Hi,

You can edit the view "product / listing_price" and add a span tag around the text "echo JText:![:(](/media/kunena/emoticons/5.png ":(")'PRICE_BEGINNING');" like: Code:

echo "&lt;span class='hika_price_beginning'&gt;; echo JText::('PRICE_BEGINNING'); echo "&lt;/span&gt;";

And then add a property in the frontend css file like: Code:

.hikashop_checkout_cart .hika_price_beginning{ display: none; }

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

- **arens**
- ![arens's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)

Less More

- Thank you received: 0
-
-

13 years 11 months ago [\#74257](#74257) by arens  Replied by *arens* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#74257 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

Hi Xavier,

i put the code , but a error syntax,

the error:

arse error: syntax error, unexpected '/' in

i write this:
Code:

echo '&lt;span class="hika_price_beginning"&gt;'.JText::_('PRICE_BEGINNING');

But no dissappear .

The text appear , in the PDF, mail etc.. all

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxMzk1LWNoYW5nZS1wZXItdW5pdC1pbnRvLXBlci1zZXQtcGVyLWxlbmd0aC1wZXItcmVlbD90bXBsPW1hcmtkb3du) 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 11 months ago [\#74261](#74261) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#74261 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

Yes I forgot a double quote, try this: Code:

echo "&lt;span class='hika_price_beginning'&gt;".JText::_('PRICE_BEGINNING')."&lt;/span&gt;";

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

- **arens**
- ![arens's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)

Less More

- Thank you received: 0
-
-

13 years 11 months ago [\#74266](#74266) by arens  Replied by *arens* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#74266 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

I put the code bit no dissapear "Precio" ![:(](/media/kunena/emoticons/5.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxMzk1LWNoYW5nZS1wZXItdW5pdC1pbnRvLXBlci1zZXQtcGVyLWxlbmd0aC1wZXItcmVlbD90bXBsPW1hcmtkb3du) 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 11 months ago [\#74269](#74269) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#74269 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

Do you have set the CSS property ?

Could you give a link to your website ?

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

- **arens**
- ![arens's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)

Less More

- Thank you received: 0
-
-

13 years 11 months ago [\#74270](#74270) by arens  Replied by *arens* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#74270 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

i put the code in:

checkout / listing_price.php

And dissappear!!

is correct?

i need dissapear in Pdf and mails how too file modified??

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxMzk1LWNoYW5nZS1wZXItdW5pdC1pbnRvLXBlci1zZXQtcGVyLWxlbmd0aC1wZXItcmVlbD90bXBsPW1hcmtkb3du) 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 11 months ago [\#74523](#74523) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#74523 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

Hi,

All the views where "PRICE_BEGINNING" is present are:
"checkout / listing_price", "checkout / shipping", "product / listing_price".

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

- **[DFX](/forum/user/9847-dfx "View DFX's Profile")**
- [![DFX's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9847-dfx "View DFX's Profile")
- [ Offline](/forum/user/9847-dfx)

Less More

- Posts: 45
- Thank you received: 1
-
-

13 years 5 months ago [\#101359](#101359) by [DFX](/forum/user/9847-dfx "View DFX's Profile")  Replied by *[DFX](/forum/user/9847-dfx "View DFX's Profile")* on topic *[change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#101359 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

To expand a bit more on the original problem I am having trouble making this change show in the category listing - I assume there is a file I have to add this code to within the category view? I just can't seem to find which one to change.

So far I have added this code:

if($this-&gt;element-&gt;product_per == '' &#124;&#124; $this-&gt;row-&gt;product_per == ''){
echo JText::_('PER_UNIT');
}
else{
echo $this-&gt;element-&gt;product_per;
}

to the file "product / listing_price"

I still need this change to show on the category listing; [ goo.gl/4ZFzg](http://goo.gl/4ZFzg)

Thank you for your help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxMzk1LWNoYW5nZS1wZXItdW5pdC1pbnRvLXBlci1zZXQtcGVyLWxlbmd0aC1wZXItcmVlbD90bXBsPW1hcmtkb3du) 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 5 months ago [\#101589](#101589) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#101589 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

Hi,

What is the var $this-&gt;element-&gt;product_per ? a Custom field.
If not, you have to create a custom field with this name.

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

- **[DFX](/forum/user/9847-dfx "View DFX's Profile")**
- [![DFX's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9847-dfx "View DFX's Profile")
- [ Offline](/forum/user/9847-dfx)

Less More

- Posts: 45
- Thank you received: 1
-
-

13 years 5 months ago [\#101598](#101598) by [DFX](/forum/user/9847-dfx "View DFX's Profile")  Replied by *[DFX](/forum/user/9847-dfx "View DFX's Profile")* on topic *[Re: change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#101598 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

> Xavier wrote: Hi cobinet,
>
> For the product overviews you need:
> **$this-&gt;row-&gt;product\_per == 'unit'**
>
> Code:
>
> if($this-&gt;element-&gt;product_per == 'unit' &#124;&#124; $this-&gt;row-&gt;product_per == 'unit'){ echo JText::_('PER_UNIT'); }

Hi,

Yes I have created the custom field 'product_per' and I used the code from your post above.

Thanks again for your help.

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

- **[gabriel.robert](/forum/user/34146-gabriel-robert "View gabriel.robert's Profile")**
- [![gabriel.robert's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34146-gabriel-robert "View gabriel.robert's Profile")
- [ Offline](/forum/user/34146-gabriel-robert)

Less More

- Posts: 25
- Thank you received: 8
-

6 years 6 months ago [\#317553](#317553) by [gabriel.robert](/forum/user/34146-gabriel-robert "View gabriel.robert's Profile")  Replied by *[gabriel.robert](/forum/user/34146-gabriel-robert "View gabriel.robert's Profile")* on topic *[change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#317553 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

Hello,

I found this topic to do what I want to do, namely to be able to change the sales unit according to the categories or according to a choice.

but the problem is that this explanation dates from old version of hikashop and no longer goes.

can you tell us how to do the same operation with hikashop verion 4?

I thank you in advance !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxMzk1LWNoYW5nZS1wZXItdW5pdC1pbnRvLXBlci1zZXQtcGVyLWxlbmd0aC1wZXItcmVlbD90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

6 years 6 months ago [\#317556](#317556) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[change per unit into per set, per length, per reel](/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel#317556 "Hello,  we are planing to sell products with a hikashop 2.5. in the product-mask i haven't the possibility to change the phrase &quot;per unit&quot; after the price into one of the other terms mentioned above. A simple translation isn't usefull, because we sell different things per unit, per set, per length (per meter) ot per reel. So is there a possibility to adjust the term seperately for every product?")*

Hi,

The exact code indeed changed but the principle is still valid.
In the file product / listing_price.php
You have that code:
echo '&lt;span class="hikashop_product_price_per_unit"&gt;'.JText::_('PER_UNIT').'&lt;/span&gt;';
and you can still replace it with :
echo $this-&gt;element-&gt;product_per;
where "product_per" is the column name of the custom product field where you've selected / entered the text to have instead of "per unit".

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

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

[](#top)
