Wishlist bugs

  • Posts: 113
  • Thank you received: 18
12 years 2 months ago #66841

When not logged in, the wishlist module shows "Wishlist Empty".
Adding an item to the wishlist prompts to display wishlists - all previously created wishlists from previous users (also not logged in) are displayed.

Once logged in, the wishlist created previously (when not logged in) is no longer accessible.

When viewing a wishlist, clicking "Save" presents no acknowledgement that the wishlist was saved...though it does appear to save.

When items from the wishlist are added to the cart, there is no acknowledgement / confirmation that the items were added, no prompt to display the cart as seen when items are added to the cart from methods other than the wishlist.

The "Create a new wishlist" displays a message:
"The new wishlist will be displayed when products get added to it."
But no new wishlist is actually created, and items subsequently added to wishlist are added to the original.

When the wishlist is deleted, the wishlist module is not updated - it still shows items in the wishlist. Clicking on "Show Wishlist" in the module shows the items that were in the list deleted. There is no ability to delete (no checkbox) these items from the list. Clicking "Back" from the wishlist display then shows "No wishlist found".

When logged in, no items in the wishlist, adding an item displays a message indicating success:
"Product successfully added to the wishlist"
and the option so continue shopping or display wishlist is presented.
If continue shopping is selected, the wishlist module is not updated to reflect the item just added.
Reloading the page with (F5) updates the wishlist module display as expected.

Last edit: 12 years 2 months ago by csymmonds.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #67116

Hi csymmonds,

Thanks for your report, to display only the users wishlist when not logged in, you can edit the file "yourSite/components/com_hikashop/views/cart/view.html.php" and in the function "showcarts", replace the line:

$filters = array('a.user_id='.(int)$user->id.'  AND a.cart_type ='.$database->quote($cart_type));
By:
		$session = JFactory::getSession();
		if($session->getId()){
			$cart->session_id = $session->getId();
		}
		if($user->id != 0){
			$filters = array('a.user_id='.(int)$user->id.'  AND a.cart_type ='.$database->quote($cart_type));
		}else if(isset($cart->session_id)){
			$filters = array('a.session_id='.$database->quote($cart->session_id).'  AND a.cart_type ='.$database->quote($cart_type));
		}

I'm working on the other problems.

Last edit: 12 years 1 month ago by Xavier.

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

Time to create page: 0.041 seconds
Powered by Kunena Forum