Login To Add to Wishlist

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 6 months ago #98863

Is it possible to force the user to login in order to add an item to the wishlist? Currently if I'm not logged in and I click on wishlist the screen refreshes but nothing seems to happen. I assume it would take me to the login screen and tell me to login in order to add items to the wishlist.

Thanks!!

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

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #99106

Hi,

There is an option to "Hide wishlist button for guest users" in Config > Features > Wishlist.

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

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 6 months ago #99271

Hi Xavier,

I was hoping there was an option so ALL users see the wishlist but if they need to add something in their wishlist they need to login.

Maybe I'm not thinking this through but I don't see how it would make sense to add things to a wishlist if you cannot save the list anyway and it appears that that is what will happen if users don't have an account.

Thanks!!

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

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #99320

Hi,

I have added an enqueue message to prevent the customers that they have to login to use the wishlists. It will be in the next release.

You can edit the file "components/com_hikashop/controllers/product.php" function "updatecart()" after:

else if($cart_type == 'wishlist'){
Add:
				if(hikashop_loadUser() == null){
					$app->enqueueMessage('LOGIN_REQUIRED_FOR_WISHLISTS');
				}

And you can add the translation in the language file:
LOGIN_REQUIRED_FOR_WISHLISTS="You must be logged in to use the wishlists."

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

Time to create page: 0.067 seconds
Powered by Kunena Forum