Show product after login

  • Posts: 79
  • Thank you received: 3
10 years 1 week ago #180182

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.2.3
-- PHP version -- : 5.3.3

Hello, I need to show a product list to every user, but product description only to registered users. How can I do it?.

I have a Joomla module asociated to a menu option whose type is "HikaShop Content Module". In its "Hikashop options" I set an associated category in order to show only product from this category.

I try setting category access level (ACL) to ALL and product ACL to registered, but when I do it, list disappears. I have also tried to set category ACL to registered and then, the list shows all products except those who belongs to category setting to "registered".

thanks in advance for your answer

Last edit: 10 years 1 week ago by pljuarez.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 1 week ago #180186

Hi,

This cannot be handled by the current available settings.
But you can potentially edit the view "product / listing_img_title" (or another one depending on which one you are using) and at the top of the file add code like:

if(hikashop_loadUser() == null)
  $this->params->set('link_to_product_page',0);

This way non registered will still see the listing but will not be able to reach the product description.

The following user(s) said Thank You: pljuarez

Please Log in or Create an account to join the conversation.

  • Posts: 79
  • Thank you received: 3
10 years 1 week ago #180276

Thanks for your quick response, IT WORKS for me!!!

Thanks

Last edit: 9 years 8 months ago by pljuarez.

Please Log in or Create an account to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum