- Posts: 128
- Thank you received: 0
Problems with internal product search
- sergiobertini
-
Topic Author
- Offline
Less
More
10 years 10 months ago #219216
by sergiobertini
Replied by sergiobertini on topic Problems with internal product search
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!!!
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.
10 years 10 months ago #219236
by Xavier
Replied by Xavier on topic Problems with internal product search
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.
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.
- sergiobertini
-
Topic Author
- Offline
Less
More
- Posts: 128
- Thank you received: 0
10 years 10 months ago #219304
by sergiobertini
Replied by sergiobertini on topic Problems with internal product search
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!!!
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.
10 years 10 months ago #219342
by Xavier
Replied by Xavier on topic Problems with internal product search
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
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.
10 years 10 months ago #219487
by Xavier
Replied by Xavier on topic Problems with internal product search
Hi,
Please replace the function "save()" in administrator/components/com_hikashop/classes/cart.php by this code:
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 replace the function "save()" in administrator/components/com_hikashop/classes/cart.php by this code:
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.194 seconds