Problems with internal product search

  • Posts: 128
  • Thank you received: 0
9 years 2 weeks ago #219216

1) OK I'll check in my translation file!

2) The problem occurs in both (Administration and website);
I have a replacement seen in "cart / Showcart" but it is needed. Follows the topic link
hikashop.com/forum/wishlist/873962-new-p...shlist.html?start=20

Always logged in!!!

Help me!!!

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

  • Posts: 13201
  • Thank you received: 2322
9 years 2 weeks ago #219236

Hi,

2/ In your case, the wishlists can be seen by everybody, right ?
But only the wishlist owner can edit the wishlist name, I think that your issue is coming from there.
If the wishlist owner edit the name, is that working ? We have checks by default to not allow anybody to edit the wishlist of another customer. So you will maybe have to add some code to allow modification of the name by anybody.

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

  • Posts: 128
  • Thank you received: 0
9 years 2 weeks ago #219304

So in my case it is necessary to display all the lists registered. For non-registered users can view them.
Before I upgrade to version 2.6.0 this problem did not occur!

Help me!!!

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

  • Posts: 13201
  • Thank you received: 2322
9 years 2 weeks ago #219342

Hi,

I just read again your message and as the problem is present in backend too, so this is another thing
Please give us a backend and FTP access to your website, we will debug it directly.

You can send the informations via our contact form (with a link to that topic in the message).
www.hikashop.com/support/contact-us.html

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

  • Posts: 13201
  • Thank you received: 2322
9 years 2 weeks ago #219487

Hi,

Please replace the function "save()" in administrator/components/com_hikashop/classes/cart.php by this code:

	function save(&$cart) {
		$app = JFactory::getApplication();
		$currUser = hikashop_loadUser(true);
		$user = JFactory::getUser();
		$session = JFactory::getSession();
		if($app->isAdmin()) {
			if(isset($cart->cart_name))
				$cart->cart_name = strip_tags($cart->cart_name);
			if(isset($cart->user_id))
				$cart->user_id = (int)$cart->user_id;
			if(isset($cart->cart_type))
				$cart->cart_type = strip_tags($cart->cart_type);
			$cart_id = parent::save($cart);
		} else if(!isset($cart->user_id) || !$app->isAdmin() || $currUser->user_cms_id == $cart->user_id || (isset($cart->session_id) && $session->getId() == $cart->session_id)) {
			if(isset($cart->cart_name))
				$cart->cart_name = strip_tags($cart->cart_name);
			if(isset($cart->cart_share))
				$cart->cart_share = strip_tags($cart->cart_share);
			if(isset($cart->cart_type))
				$cart->cart_type = strip_tags($cart->cart_type);
			if(!empty($cart->cart_params) && !is_string($cart->cart_params))
				$cart->cart_params = json_encode($cart->cart_params);
			if(!isset($cart->user_id) && empty($cart->cart_name))
				$cart->cart_name = '';
			if(!isset($cart->cart_id) && empty($cart->cart_coupon))
				$cart->cart_coupon = '';
			$cart_id = parent::save($cart);
		} else {
			$cart_id = $cart->cart_id;
		}
		return $cart_id;
	}

This will solve the backend issue, for the frontend the multi cart mode was disabled, that's why there was restrictions on the carts, so I enabled it and now the name can be set on frontend.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum