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

#   Can the Price be displayed as a pair and each

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

13 years 10 months ago [\#81793](#81793) by [johnhelyar](/forum/user/12322-johnhelyar "View johnhelyar's Profile")  *[Can the Price be displayed as a pair and each](/forum/4-how-to/76699-can-the-price-be-displayed-as-a-pair-and-each#81793 "Hi there  Just want to say great but of software but i am trying to work something out  When a product is displayed it has the price as say £45.00 each but i would like to get it to display for some products as £45.00 a pair  is there away to be able to display either a pair or each depending on the product you are selling  Cheers in advance for you help")* was created by *[johnhelyar](/forum/user/12322-johnhelyar "View johnhelyar's Profile")*

Hi there

Just want to say great but of software but i am trying to work something out

When a product is displayed it has the price as say £45.00 each but i would like to get it to display for some products as £45.00 a pair

is there away to be able to display either a pair or each depending on the product you are selling

Cheers in advance for you help

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2Njk5LWNhbi10aGUtcHJpY2UtYmUtZGlzcGxheWVkLWFzLWEtcGFpci1hbmQtZWFjaD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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 [\#81842](#81842) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Can the Price be displayed as a pair and each](/forum/4-how-to/76699-can-the-price-be-displayed-as-a-pair-and-each#81842 "Hi there  Just want to say great but of software but i am trying to work something out  When a product is displayed it has the price as say £45.00 each but i would like to get it to display for some products as £45.00 a pair  is there away to be able to display either a pair or each depending on the product you are selling  Cheers in advance for you help")*

Hi,

Yes it's possible, you have to edit the view "product / listing_price" and where you can find the code"JText::_('PER_UNIT');" add a php condition before.
Check if the product have the ID ..., display PER_UNIT, else display PER_PAIR.

And create a new translation in HikaShop &gt; Configuration &gt; Languages, your language file, something like: PER_PAIR="a pair"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2Njk5LWNhbi10aGUtcHJpY2UtYmUtZGlzcGxheWVkLWFzLWEtcGFpci1hbmQtZWFjaD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 2
- Thank you received: 0
-
-

13 years 10 months ago [\#81860](#81860) by [johnhelyar](/forum/user/12322-johnhelyar "View johnhelyar's Profile")  Replied by *[johnhelyar](/forum/user/12322-johnhelyar "View johnhelyar's Profile")* on topic *[Can the Price be displayed as a pair and each](/forum/4-how-to/76699-can-the-price-be-displayed-as-a-pair-and-each#81860 "Hi there  Just want to say great but of software but i am trying to work something out  When a product is displayed it has the price as say £45.00 each but i would like to get it to display for some products as £45.00 a pair  is there away to be able to display either a pair or each depending on the product you are selling  Cheers in advance for you help")*

Ok thanks for getting back to me so quickly

im very new to the whole editing of php files so im not 100% sure what i need to add in can you let me know i found the file you said about and the line you are talking about im just not sure what to add in there

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2Njk5LWNhbi10aGUtcHJpY2UtYmUtZGlzcGxheWVkLWFzLWEtcGFpci1hbmQtZWFjaD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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 [\#81989](#81989) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Can the Price be displayed as a pair and each](/forum/4-how-to/76699-can-the-price-be-displayed-as-a-pair-and-each#81989 "Hi there  Just want to say great but of software but i am trying to work something out  When a product is displayed it has the price as say £45.00 each but i would like to get it to display for some products as £45.00 a pair  is there away to be able to display either a pair or each depending on the product you are selling  Cheers in advance for you help")*

Hi,

A similar question has already been posted on this forum, I invite you to make a search on that.
If you don't find your answer, then come back here ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2Njk5LWNhbi10aGUtcHJpY2UtYmUtZGlzcGxheWVkLWFzLWEtcGFpci1hbmQtZWFjaD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 2
- Thank you received: 0
-
-

13 years 7 months ago [\#94937](#94937) by [Conroy](/forum/user/14880-conroy "View Conroy's Profile")  Replied by *[Conroy](/forum/user/14880-conroy "View Conroy's Profile")* on topic *[Can the Price be displayed as a pair and each](/forum/4-how-to/76699-can-the-price-be-displayed-as-a-pair-and-each#94937 "Hi there  Just want to say great but of software but i am trying to work something out  When a product is displayed it has the price as say £45.00 each but i would like to get it to display for some products as £45.00 a pair  is there away to be able to display either a pair or each depending on the product you are selling  Cheers in advance for you help")*

Ive been trying to do this with no luck. do i have the coding right?

}else{
echo JText::_('PER_UNIT');
if(isset($this-&gt;element-&gt;main)) echo JText::_($this-&gt;element-&gt;main-&gt;salemethod);
elseif(isset($this-&gt;row)) echo JText::_($this-&gt;row-&gt;salemethod);
else echo JText::_($this-&gt;element-&gt;salemethod);
}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2Njk5LWNhbi10aGUtcHJpY2UtYmUtZGlzcGxheWVkLWFzLWEtcGFpci1hbmQtZWFjaD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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 7 months ago [\#95003](#95003) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Can the Price be displayed as a pair and each](/forum/4-how-to/76699-can-the-price-be-displayed-as-a-pair-and-each#95003 "Hi there  Just want to say great but of software but i am trying to work something out  When a product is displayed it has the price as say £45.00 each but i would like to get it to display for some products as £45.00 a pair  is there away to be able to display either a pair or each depending on the product you are selling  Cheers in advance for you help")*

Hi,

You can use: Code:

}else{ if(isset($this-&gt;row-&gt;salemethod)){ echo $this-&gt;row-&gt;salemethod; }else{ echo JText::_('PER_UNIT'); } }

If you have a translation for each "salemethod" so you can use: Code:

}else{ if(isset($this-&gt;row-&gt;salemethod)){ echo JText::_($this-&gt;row-&gt;salemethod); }else{ echo JText::_('PER_UNIT'); } }

and in the language file, add (for example): PER_PAIR="Per pair" if one of the salemethod value is "PER_PAIR".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2Njk5LWNhbi10aGUtcHJpY2UtYmUtZGlzcGxheWVkLWFzLWEtcGFpci1hbmQtZWFjaD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[btbjosh](/forum/user/12727-btbjosh "View btbjosh's Profile")**
- [![btbjosh's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/splatter_hand.png)](/forum/user/12727-btbjosh "View btbjosh's Profile")
- [ Offline](/forum/user/12727-btbjosh)

Less More

- Posts: 90
- Thank you received: 1
-
-
-

13 years 7 months ago [\#95050](#95050) by [btbjosh](/forum/user/12727-btbjosh "View btbjosh's Profile")  Replied by *[btbjosh](/forum/user/12727-btbjosh "View btbjosh's Profile")* on topic *[Can the Price be displayed as a pair and each](/forum/4-how-to/76699-can-the-price-be-displayed-as-a-pair-and-each#95050 "Hi there  Just want to say great but of software but i am trying to work something out  When a product is displayed it has the price as say £45.00 each but i would like to get it to display for some products as £45.00 a pair  is there away to be able to display either a pair or each depending on the product you are selling  Cheers in advance for you help")*

Hey John,

I've actually just set up similar logic in our store using this method and also have a custom field on the backend for each product that allows me to set whether it's "Each" or "From" pricing.

The thread is a little bloated with some garbage from me but may contain extra info to help you: [ www.hikashop.com/en/forum/2-general-talk...ext-after-price.html](http://www.hikashop.com/en/forum/2-general-talk-about-hikashop/77374-change-qeachq-text-after-price.html)

Good luck! :laugh:

---

![:)](/media/kunena/emoticons/3.png ":)") — Josh

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2Njk5LWNhbi10aGUtcHJpY2UtYmUtZGlzcGxheWVkLWFzLWEtcGFpci1hbmQtZWFjaD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 2
- Thank you received: 0
-
-

13 years 7 months ago [\#95150](#95150) by [Conroy](/forum/user/14880-conroy "View Conroy's Profile")  Replied by *[Conroy](/forum/user/14880-conroy "View Conroy's Profile")* on topic *[Can the Price be displayed as a pair and each](/forum/4-how-to/76699-can-the-price-be-displayed-as-a-pair-and-each#95150 "Hi there  Just want to say great but of software but i am trying to work something out  When a product is displayed it has the price as say £45.00 each but i would like to get it to display for some products as £45.00 a pair  is there away to be able to display either a pair or each depending on the product you are selling  Cheers in advance for you help")*

Thank you SOOO much guys. Im hoping i can get to the point where i can help people out like you guys have for me. Cheers

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2Njk5LWNhbi10aGUtcHJpY2UtYmUtZGlzcGxheWVkLWFzLWEtcGFpci1hbmQtZWFjaD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.086 seconds

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