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

#   Two prices displayed when logged in

##

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

5 years 11 months ago -  5 years 11 months ago [\#326507](#326507) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Two prices displayed when logged in](/forum/25-install-update/901337-two-prices-displayed-when-logged-in#326507 "Hi. I have two prices I want to display for when a user is logged-in. One is wholesale and the other is retail (but I don't want to use the &quot;retail option&quot; because that caused issues before). Is there...")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

Hi. I have two prices I want to display for when a user is logged-in. One is wholesale and the other is retail (but I don't want to use the "retail option" because that caused issues before). Is there a way I can pull both prices in the product display for when the users are logged in?

Below are my prices. The one set to "Πελάτες" is the one displayed for logged-in users.

I'd also like to have every price say "Wholesale" or "Retail" beside it so the user knows which is which (for further clarification).

This message contains confidential information

Thank you.

Last edit: 5 years 11 months ago by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwMTMzNy10d28tcHJpY2VzLWRpc3BsYXllZC13aGVuLWxvZ2dlZC1pbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86559
- Thank you received: 14306
-
-

5 years 11 months ago [\#326510](#326510) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Two prices displayed when logged in](/forum/25-install-update/901337-two-prices-displayed-when-logged-in#326510 "Hi. I have two prices I want to display for when a user is logged-in. One is wholesale and the other is retail (but I don't want to use the &quot;retail option&quot; because that caused issues before). Is there...")*

Hi,

The data of the other price won't be available in the view files. So if you want to display the other price, you would have to run your own MySQL query on the hikashop_price table to load it, and then you can calculate the tax on it if any and do the display.
So it's possible, but there is no ready-made function you can call to do these for you.

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

5 years 11 months ago [\#326540](#326540) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Two prices displayed when logged in](/forum/25-install-update/901337-two-prices-displayed-when-logged-in#326540 "Hi. I have two prices I want to display for when a user is logged-in. One is wholesale and the other is retail (but I don't want to use the &quot;retail option&quot; because that caused issues before). Is there...")*

Could that be done by copying the already existing price and adjusting it? I'm not MySQL savvy, but I think I could understand the logic behind this...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwMTMzNy10d28tcHJpY2VzLWRpc3BsYXllZC13aGVuLWxvZ2dlZC1pbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86559
- Thank you received: 14306
-
-

5 years 11 months ago [\#326549](#326549) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Two prices displayed when logged in](/forum/25-install-update/901337-two-prices-displayed-when-logged-in#326549 "Hi. I have two prices I want to display for when a user is logged-in. One is wholesale and the other is retail (but I don't want to use the &quot;retail option&quot; because that caused issues before). Is there...")*

Hi,

It might.
For example, you could modify show_default.php and have such code: Code:

$copy = hikashop_copy($this-&gt;element-&gt;prices[0]); echo $this-&gt;currencyHelper-&gt;format($copy-&gt;price_value_with_tax-10, $copy-&gt;price_orig_currency_id);

This would display the price with tax minus 10.
But then, it supposes that the product doesn't have variants. To manage variants, it would be more complex...

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

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