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

#   Show group price and normal price to all users

##

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

Less More

- Posts: 51
- Thank you received: 1
-
-

13 years 10 months ago [\#81369](#81369) by [Dorgo](/forum/user/8838-dorgo "View Dorgo's Profile")  *[Show group price and normal price to all users](/forum/2-general-talk-about-hikashop/76628-show-group-price-and-normal-price-to-all-users#81369 "I have set up a product with two prices. One restricted to group 'Club Member'.  How do I have both prices display but only people in group 'Club Member' able to purchase the product with their price?  Normal Price: 18.00 Member Price: 15.00  listing&#95;price.php product view only provides the 'normal price' in $this-&gt;row-&gt;prices array if not logged in as 'Club Member' If I remove the access control on the second price, add-to-cart automatically adds the lowest price.")* was created by *[Dorgo](/forum/user/8838-dorgo "View Dorgo's Profile")*

I have set up a product with two prices. One restricted to group 'Club Member'.

How do I have both prices display but only people in group 'Club Member' able to purchase the product with their price?

Normal Price: 18.00
Member Price: 15.00

listing_price.php product view only provides the 'normal price' in $this-&gt;row-&gt;prices array if not logged in as 'Club Member'
If I remove the access control on the second price, add-to-cart automatically adds the lowest price.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NjI4LXNob3ctZ3JvdXAtcHJpY2UtYW5kLW5vcm1hbC1wcmljZS10by1hbGwtdXNlcnM/dG1wbD1tYXJrZG93bg==) 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 [\#81390](#81390) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show group price and normal price to all users](/forum/2-general-talk-about-hikashop/76628-show-group-price-and-normal-price-to-all-users#81390 "I have set up a product with two prices. One restricted to group 'Club Member'.  How do I have both prices display but only people in group 'Club Member' able to purchase the product with their price?  Normal Price: 18.00 Member Price: 15.00  listing&#95;price.php product view only provides the 'normal price' in $this-&gt;row-&gt;prices array if not logged in as 'Club Member' If I remove the access control on the second price, add-to-cart automatically adds the lowest price.")*

What you could do is use the custom fields to display the two prices.
Else you will have to load all the products informations in the function "listing_price()" of the file "components/com_hikashop/views/product/view.html.php".
But it require a good PHP and Joomla knowledge.

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

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

Less More

- Posts: 51
- Thank you received: 1
-
-

13 years 10 months ago -  13 years 10 months ago [\#81495](#81495) by [Dorgo](/forum/user/8838-dorgo "View Dorgo's Profile")  Replied by *[Dorgo](/forum/user/8838-dorgo "View Dorgo's Profile")* on topic *[Show group price and normal price to all users](/forum/2-general-talk-about-hikashop/76628-show-group-price-and-normal-price-to-all-users#81495 "I have set up a product with two prices. One restricted to group 'Club Member'.  How do I have both prices display but only people in group 'Club Member' able to purchase the product with their price?  Normal Price: 18.00 Member Price: 15.00  listing&#95;price.php product view only provides the 'normal price' in $this-&gt;row-&gt;prices array if not logged in as 'Club Member' If I remove the access control on the second price, add-to-cart automatically adds the lowest price.")*

I was of the understanding that the business edition allowed this by default.

My PHP and joomla skills are decent. I think putting prices in custom fields instead of the prices section would confuse the client.

What do I need to do to allow this functionality using overrides (so hikashop can still be updated?)

Switching to magebridge at this point would probably push development past the deadline.

At a minimum how can I:

- load all prices for the product (even those restricted by ACL), then check the pice\_access for 'Club Member' and output that as member price
- choose which price will be added to cart when outputting the two prices based on the user's group (probably just don't output the form?)

Last edit: 13 years 10 months ago by [Dorgo](/forum/user/8838-dorgo "View Dorgo's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NjI4LXNob3ctZ3JvdXAtcHJpY2UtYW5kLW5vcm1hbC1wcmljZS10by1hbGwtdXNlcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#81633](#81633) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Show group price and normal price to all users](/forum/2-general-talk-about-hikashop/76628-show-group-price-and-normal-price-to-all-users#81633 "I have set up a product with two prices. One restricted to group 'Club Member'.  How do I have both prices display but only people in group 'Club Member' able to purchase the product with their price?  Normal Price: 18.00 Member Price: 15.00  listing&#95;price.php product view only provides the 'normal price' in $this-&gt;row-&gt;prices array if not logged in as 'Club Member' If I remove the access control on the second price, add-to-cart automatically adds the lowest price.")*

Hi,

By default, if you have a price with the acl "all" and a price with acl on the group, in the product page you can display several prices for users who have access to these prices.
Some threads already talk about it like:
[ www.hikashop.com/en/forum/2-general-talk...e-display.html#78541](http://www.hikashop.com/en/forum/2-general-talk-about-hikashop/76106-price-display.html#78541)
Or, with other kind of customization:
[ www.hikashop.com/en/forum/4-how-to/76039...ice-range.html#78100](http://www.hikashop.com/en/forum/4-how-to/76039-volume-price-range.html#78100)

After that, for guest users who have only one accessible price, it's currently not possible.
As Xavier said, using a custom field could be easier without making a lot of new SQL queries.

If you want to override the price loading by removing the ACL, there are three ways:
- Write into HikaShop core files (class currency) and at this moment, you wouldn't be able to update HikaShop without loosing your modifications (but it should be two lines to comment).
- Write new queries into views (using view override) and at this moment, you would be able to update HikaShop. It would be an inclusion of the "getListingPrices" of the currency class into your view.

Modifying the display would not modifying the rest of the process so, if the user have the access to the price, the lower price would be always chosen by HikaShop.

Regards,

---

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

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

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

[](#top)
