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

#   Two prices display for logged in members.

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 10 months ago [\#84443](#84443) by [dschafer](/forum/user/4413-dschafer "View dschafer's Profile")  *[Two prices display for logged in members.](/forum/4-how-to/77266-two-prices-display-for-logged-in-members#84443 "For the public, only the public price is displaying. This is good. For members who are logged in, BOTH the public and member prices are displaying. I want members to see only member discount price....")* was created by *[dschafer](/forum/user/4413-dschafer "View dschafer's Profile")*

For the public, only the public price is displaying. This is good. For members who are logged in, BOTH the public and member prices are displaying. I want members to see only member discount price. When they add the item to the cart, it is using the correct price, but I don't want the public price to display on my items. Please help!
[ ![Capture.JPG](/forum/attachment/7857) ](/forum/attachment/7857 "Capture.JPG")

- [ ![Capture.JPG](/forum/attachment/7857) ](/forum/attachment/7857 "Capture.JPG") [ ](/forum/attachment/7857?download=1 "Capture.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MjY2LXR3by1wcmljZXMtZGlzcGxheS1mb3ItbG9nZ2VkLWluLW1lbWJlcnM/dG1wbD1tYXJrZG93bg==) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#84447](#84447) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Two prices display for logged in members.](/forum/4-how-to/77266-two-prices-display-for-logged-in-members#84447 "For the public, only the public price is displaying. This is good. For members who are logged in, BOTH the public and member prices are displaying. I want members to see only member discount price....")*

Hi,

There is in HikaShop an option which allow you to select the price display method.
System &gt; Configuration &gt; Display &gt; Default parameters for products &gt; Price display method.
You should select "Cheapest price" not, all.

Regards,

---

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

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 10 months ago [\#84565](#84565) by [dschafer](/forum/user/4413-dschafer "View dschafer's Profile")  Replied by *[dschafer](/forum/user/4413-dschafer "View dschafer's Profile")* on topic *[Two prices display for logged in members.](/forum/4-how-to/77266-two-prices-display-for-logged-in-members#84565 "For the public, only the public price is displaying. This is good. For members who are logged in, BOTH the public and member prices are displaying. I want members to see only member discount price....")*

My configuration is already set to 'cheapest price'. Is there a different reason two prices would be displaying??

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MjY2LXR3by1wcmljZXMtZGlzcGxheS1mb3ItbG9nZ2VkLWluLW1lbWJlcnM/dG1wbD1tYXJrZG93bg==) 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 [\#84899](#84899) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Two prices display for logged in members.](/forum/4-how-to/77266-two-prices-display-for-logged-in-members#84899 "For the public, only the public price is displaying. This is good. For members who are logged in, BOTH the public and member prices are displaying. I want members to see only member discount price....")*

Hi,

Can you try to add this code in the view "product / listing_price" in HikaShop &gt; Display &gt; Views: Code:

?&gt; &lt;script&gt; var spans = document.getElementsByTagName("span"); for (var i = 0; i &lt; &lt;?php echo $i; ?&gt;; i++) { alert('hikashop_product_price_'+i); if (spans[i].className == 'hikashop_product_price_'+i) { spans[i].style.display = 'none'; } } &lt;/script&gt; &lt;?php

Just before "echo JText::_('PRICE_END');"

PS: I don't tried this code.

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 10 months ago [\#85101](#85101) by [dschafer](/forum/user/4413-dschafer "View dschafer's Profile")  Replied by *[dschafer](/forum/user/4413-dschafer "View dschafer's Profile")* on topic *[Two prices display for logged in members.](/forum/4-how-to/77266-two-prices-display-for-logged-in-members#85101 "For the public, only the public price is displaying. This is good. For members who are logged in, BOTH the public and member prices are displaying. I want members to see only member discount price....")*

Hi,

I added the code you specified in the file com_hikashop/views/product/tmpl/listing_price.php

[ ![Capture2-1-11-13.JPG](/forum/attachment/7922) ](/forum/attachment/7922 "...e2-1-11-13.JPG")

It brought up a dialog box to which I had to click on many times:

[ ![Capture-1-11-13.JPG](/forum/attachment/7923) ](/forum/attachment/7923 "...re-1-11-13.JPG")

And at the end, two prices still displayed.

Other suggestions?

- [ ![Capture2-1-11-13.JPG](/forum/attachment/7922) ](/forum/attachment/7922 "...e2-1-11-13.JPG") [ ](/forum/attachment/7922?download=1 "...e2-1-11-13.JPG")
- [ ![Capture-1-11-13.JPG](/forum/attachment/7923) ](/forum/attachment/7923 "...re-1-11-13.JPG") [ ](/forum/attachment/7923?download=1 "...re-1-11-13.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MjY2LXR3by1wcmljZXMtZGlzcGxheS1mb3ItbG9nZ2VkLWluLW1lbWJlcnM/dG1wbD1tYXJrZG93bg==) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#85131](#85131) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Two prices display for logged in members.](/forum/4-how-to/77266-two-prices-display-for-logged-in-members#85131 "For the public, only the public price is displaying. This is good. For members who are logged in, BOTH the public and member prices are displaying. I want members to see only member discount price....")*

Hi,

First, please do not write directly in HikaShop files and use view overrides.
You wouldn't be able to update HikaShop without loosing your modification otherwise.

You can use some code to display only the last (or the first) price.
Just use this code in the begin of the listing_price view. Code:

&lt;?php $class =''; if(!empty($this-&gt;row-&gt;prices) &amp;&amp; count($this-&gt;row-&gt;prices)&gt;1){ // Display several prices // $class = ' hikashop_product_several_prices'; // Display the last one $this-&gt;row-&gt;prices = array( end($this-&gt;row-&gt;prices) ); // Display the first one // $this-&gt;row-&gt;prices = array( reset($this-&gt;row-&gt;prices) ); } ?&gt;

Regards,

---

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

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

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

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