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

#   Hiding Price information

##

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

Less More

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

10 years 11 months ago [\#222387](#222387) by [chisstu](/forum/user/37907-chisstu "View chisstu's Profile")  *[Hiding Price information](/forum/26-product-category-display/880778-hiding-price-information#222387 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.29 -- Browser(s) name and version -- : Chrome Version 46.0.2490.86 m  I've just upgraded to business edition. I am only permitted to show price information to registered users. Retail price and selling price must be hidden from public view.  The issue I have is that I can limit the selling price easily enough, but need to be able to hide the Retail Price as well. I have seen a number of similar posts, but none that I am able to follow and execute with success.  Thanks.")* was created by *[chisstu](/forum/user/37907-chisstu "View chisstu's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5.29
-- Browser(s) name and version -- : Chrome Version 46.0.2490.86 m

I've just upgraded to business edition. I am only permitted to show price information to registered users. Retail price and selling price must be hidden from public view.

The issue I have is that I can limit the selling price easily enough, but need to be able to hide the Retail Price as well. I have seen a number of similar posts, but none that I am able to follow and execute with success.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODA3NzgtaGlkaW5nLXByaWNlLWluZm9ybWF0aW9uP3RtcGw9bWFya2Rvd24=) 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: 86584
- Thank you received: 14325
-
-

10 years 11 months ago [\#222485](#222485) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hiding Price information](/forum/26-product-category-display/880778-hiding-price-information#222485 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.29 -- Browser(s) name and version -- : Chrome Version 46.0.2490.86 m  I've just upgraded to business edition. I am only permitted to show price information to registered users. Retail price and selling price must be hidden from public view.  The issue I have is that I can limit the selling price easily enough, but need to be able to hide the Retail Price as well. I have seen a number of similar posts, but none that I am able to follow and execute with success.  Thanks.")*

Hi,

There is no setting to hide the retail price based on the user group of the user.

You would have to add such code at the beginning of the file "listing_price" of the "product" view via the menu Display&gt;Views: Code:

$my = JFactory::getUser(); $userGroups = JAccess::getGroupsByUser($my-&gt;id); if(in_array(XXX,$userGroups)) $this-&gt;row-&gt;product_msrp = null;

where XXX is the user group id for which you don't want to show the retail price.

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

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

Less More

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

10 years 11 months ago -  10 years 11 months ago [\#222659](#222659) by [chisstu](/forum/user/37907-chisstu "View chisstu's Profile")  Replied by *[chisstu](/forum/user/37907-chisstu "View chisstu's Profile")* on topic *[Hiding Price information](/forum/26-product-category-display/880778-hiding-price-information#222659 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.29 -- Browser(s) name and version -- : Chrome Version 46.0.2490.86 m  I've just upgraded to business edition. I am only permitted to show price information to registered users. Retail price and selling price must be hidden from public view.  The issue I have is that I can limit the selling price easily enough, but need to be able to hide the Retail Price as well. I have seen a number of similar posts, but none that I am able to follow and execute with success.  Thanks.")*

Hi Nicolas,

Thanks for this, however, it didn't bring me any success - I ended up with the code appearing in the front end where the retail price was (no price shown though!).

After this, the Retail price disappeared from my product listing, but it appears to be permanently missing. It continued to show in the product page.

Since this first attempt I have reverted back to a back up of my database and a backup of the com_hikashop folder and the listing_price file from my template folder.

Last edit: 10 years 11 months ago by [chisstu](/forum/user/37907-chisstu "View chisstu's Profile").

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

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

Less More

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

10 years 11 months ago [\#222711](#222711) by [chisstu](/forum/user/37907-chisstu "View chisstu's Profile")  Replied by *[chisstu](/forum/user/37907-chisstu "View chisstu's Profile")* on topic *[Hiding Price information](/forum/26-product-category-display/880778-hiding-price-information#222711 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.29 -- Browser(s) name and version -- : Chrome Version 46.0.2490.86 m  I've just upgraded to business edition. I am only permitted to show price information to registered users. Retail price and selling price must be hidden from public view.  The issue I have is that I can limit the selling price easily enough, but need to be able to hide the Retail Price as well. I have seen a number of similar posts, but none that I am able to follow and execute with success.  Thanks.")*

Using this - seems to do the trick!

&lt;?php $user = JFactory::getUser();
if($user-&gt;guest) $this-&gt;row-&gt;product_msrp = null; ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODA3NzgtaGlkaW5nLXByaWNlLWluZm9ybWF0aW9uP3RtcGw9bWFya2Rvd24=) 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: 86584
- Thank you received: 14325
-
-

10 years 11 months ago [\#222690](#222690) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hiding Price information](/forum/26-product-category-display/880778-hiding-price-information#222690 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.29 -- Browser(s) name and version -- : Chrome Version 46.0.2490.86 m  I've just upgraded to business edition. I am only permitted to show price information to registered users. Retail price and selling price must be hidden from public view.  The issue I have is that I can limit the selling price easily enough, but need to be able to hide the Retail Price as well. I have seen a number of similar posts, but none that I am able to follow and execute with success.  Thanks.")*

Hi,

1. The code modification I provided doesn't have the capability to remove the display of the retail price from the listing.
By default, there is no display of the retail price on the listing.
But when you removed the customization of the listing_price view file, you must have also lost the other modification that you had done to display the retail price on the listing. So you'll have to add this one back in.

2. Regarding the code I gave, you need to put it inside &lt;?php and ?&gt; tags
If you put that code outside such tags, it won't do anything and will just be seen as text to be displayed on the page.
So make sure that you have the &lt;?php and ?&gt; tags around the code.

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

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

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