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

#   how to not show a product after login.

##

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

Less More

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

11 years 7 months ago -  11 years 7 months ago [\#194917](#194917) by [tinkerbel](/forum/user/21046-tinkerbel "View tinkerbel's Profile")  *[how to not show a product after login.](/forum/26-product-category-display/875706-how-to-not-show-a-product-after-login#194917 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : i am trying to get a product to not display once a customer is logged in. is this possible.  the reason for this is that i have a product which cannot display any details until the customer has logged in. this is so as to comply with new medical rules.  so i've created a copy of the product to list with no price and no information other than the customer has to be logged in and registered in order to view any information as per the new law. the original copy of the product that includes all information has access level of registered. this way public cannot view.  however, once logged in i can now see two equal products. 1. with price and details 2. no price and no details. how can i make the 2nd once not show when a customer is logged in.  any solutions would be very appreciated? stella.")* was created by *[tinkerbel](/forum/user/21046-tinkerbel "View tinkerbel's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.4
-- Error-message(debug-mod must be tuned on) -- : i am trying to get a product to not display once a customer is logged in.
is this possible.

the reason for this is that i have a product which cannot display any details until the customer has logged in. this is so as to comply with new medical rules.

so i've created a copy of the product to list with no price and no information other than the customer has to be logged in and registered in order to view any information as per the new law.
the original copy of the product that includes all information has access level of registered. this way public cannot view.

however, once logged in i can now see two equal products. 1. with price and details 2. no price and no details. how can i make the 2nd once not show when a customer is logged in.

any solutions would be very appreciated?
stella.

Last edit: 11 years 7 months ago by [tinkerbel](/forum/user/21046-tinkerbel "View tinkerbel's Profile").

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

11 years 7 months ago [\#194935](#194935) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[how to not show a product after login.](/forum/26-product-category-display/875706-how-to-not-show-a-product-after-login#194935 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : i am trying to get a product to not display once a customer is logged in. is this possible.  the reason for this is that i have a product which cannot display any details until the customer has logged in. this is so as to comply with new medical rules.  so i've created a copy of the product to list with no price and no information other than the customer has to be logged in and registered in order to view any information as per the new law. the original copy of the product that includes all information has access level of registered. this way public cannot view.  however, once logged in i can now see two equal products. 1. with price and details 2. no price and no details. how can i make the 2nd once not show when a customer is logged in.  any solutions would be very appreciated? stella.")*

Hi,

Two ways, the first one could be to edit the view "product / listing_img_title" and add a PHP if condition based on the product id and on the user log status.
Something like: Code:

if($this-&gt;row-&gt;product_id != 'X' &#124;&#124; hikashop_loadUser() == null){ // display the content }

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

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

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

[](#top)
