Add to Wishlist Workflow

  • Posts: 48
  • Thank you received: 0
12 years 2 months ago #65534

Just trying to figure out how to use this feature on my site

1. Is there a way to remove the Add to Wishlist on the category listing?
2. When a customer clicks on the add-to-wishlist a popup appears, if they click on view wishlist, it shows all of the wishlists, not just the one that they clicked on. Is there a way to get it to prompt a customer to login or create an account in order to add this to their wishlist? This is similar to the way they do it on Amazon. The reason I ask this is currently, on the wishlist there is a "Back" button. This "Back" button takes the customer to their control panel. If the customer is not logged in, it prompts them to login. This flow doesn't seem to work. If a customer has not signed in, they are taken to a wishlist with a "back" button that doesn't take them back to the product but takes them to a login screen. There are not any instructions to help the cu
3. If there is not a way to prompt a customer to login, is there a way to get the show wishlist to just show the wishlist for that customer like the one in the module?


"The doctor of the future will give no medicine, but will interest his patients in the care of the human frame, in diet, and in the cause and prevention of disease." Thomas Edison

Meditation for Health
www.seekwithinyou.com

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

  • Posts: 12953
  • Thank you received: 1778
12 years 2 months ago #65556

Hi,

1. Yes, you'll just have to edit your category listing menu and set the "Display 'Add to wishlist' button" option to NO.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 2 months ago #65770

Hi jackpotwinner,

2. The problem of the "View wishlist" button in the popup has been corrected, you can see this post to edit it on your end: www.hikashop.com/en/forum/4-how-to/64555...questions.html#65049
You can add a check for the back button, if the user is not logged in, you can hide this button, or set another url.
Edit the view "cart / showcarts" in HikaShop > Display > Views
And add the code:

$userCurrent = hikashop_loadUser(true);
if(isset($userCurrent))
	$userCurrent = $userCurrent->id;
else
	$userCurrent = 0;
After:
$cart_type = JRequest::getString('cart_type','cart');

and the code:
				<?php if($userCurrent != 0){ ?>
				<td>
					<a href="<?php echo JRoute::_('index.php?option='.HIKASHOP_COMPONENT.'&view=user&layout=cpanel'.$Itemid); ?>" >
						<span class="icon-32-back" title="<?php echo JText::_('HIKA_BACK'); ?>">
						</span>
						<?php echo JText::_('HIKA_BACK'); ?>
					</a>
				</td>
				<?php } ?>

Instead of:
				<td>
					<a href="<?php echo JRoute::_('index.php?option='.HIKASHOP_COMPONENT.'&view=user&layout=cpanel'.$Itemid); ?>" >
						<span class="icon-32-back" title="<?php echo JText::_('HIKA_BACK'); ?>">
						</span>
						<?php echo JText::_('HIKA_BACK'); ?>
					</a>
				</td>

To remove the back button, or you can change the url by adding a else condition.

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

Time to create page: 0.051 seconds
Powered by Kunena Forum