- Posts: 162
- Thank you received: 0
Disable multiple wishlists
- info@vesica.org
-
Topic Author
- Offline
Less
More
12 years 2 months ago #172239
by info@vesica.org
Disable multiple wishlists was created by info@vesica.org
-- HikaShop version -- : 2.3.2
-- Joomla version -- : 2.5.24
-- PHP version -- : 5.4.29
Hi,
Is there a possibility to disable multiple wishlists? I've already disabled multiple carts.
thanks!
-- Joomla version -- : 2.5.24
-- PHP version -- : 5.4.29
Hi,
Is there a possibility to disable multiple wishlists? I've already disabled multiple carts.
thanks!
Please Log in or Create an account to join the conversation.
12 years 2 months ago #172240
by Xavier
Replied by Xavier on topic Disable multiple wishlists
Hi,
If you have disabled the multi cart option, so it's ok, it's the same option for the carts and the wishlists.
If you have disabled the multi cart option, so it's ok, it's the same option for the carts and the wishlists.
Please Log in or Create an account to join the conversation.
- info@vesica.org
-
Topic Author
- Offline
Less
More
- Posts: 162
- Thank you received: 0
12 years 2 months ago #172473
by info@vesica.org
Replied by info@vesica.org on topic Disable multiple wishlists
Hi,
I did that but sometimes when I login for the first time and go to User Control Panel, click on Wishlist link I'm taken to multiple wishlist page, second time when I click on the link everything is fine, I'm directed to wishlist cart view.
thanks!
I did that but sometimes when I login for the first time and go to User Control Panel, click on Wishlist link I'm taken to multiple wishlist page, second time when I click on the link everything is fine, I'm directed to wishlist cart view.
thanks!
Please Log in or Create an account to join the conversation.
12 years 2 months ago #172477
by Xavier
Replied by Xavier on topic Disable multiple wishlists
Hi,
Do you have any cache enabled ?
I just checked the code and it should only display the button to show the cart view and not the listing.
Do you have any cache enabled ?
I just checked the code and it should only display the button to show the cart view and not the listing.
Please Log in or Create an account to join the conversation.
- info@vesica.org
-
Topic Author
- Offline
Less
More
- Posts: 162
- Thank you received: 0
12 years 2 months ago #172672
by info@vesica.org
Replied by info@vesica.org on topic Disable multiple wishlists
Hi,
The cache is disabled because I'm developing, I've also have a cache extension that is deleting cache every time I save something in back-end. Actually I've notice that the problem is when I logout on the wishlist page and login on the same page. After login instead of displaying the single wishlist is displaying the multiple wishlist page.
thanks!
The cache is disabled because I'm developing, I've also have a cache extension that is deleting cache every time I save something in back-end. Actually I've notice that the problem is when I logout on the wishlist page and login on the same page. After login instead of displaying the single wishlist is displaying the multiple wishlist page.
thanks!
Please Log in or Create an account to join the conversation.
12 years 2 months ago #172683
by Xavier
Replied by Xavier on topic Disable multiple wishlists
Hi,
Yes there was indeed a missing thing, in "components/com_hikashop/views/cart/view.html.php" function "showcarts()" thanks to replace:
By:
Yes there was indeed a missing thing, in "components/com_hikashop/views/cart/view.html.php" function "showcarts()" thanks to replace:
Code:
$app->redirect(JRoute::_($url.'&return='.urlencode(base64_encode(hikashop_currentUrl('',false))),false));
Code:
if($config->get('enable_multicart','0'))
$app->redirect(JRoute::_($url.'&return='.urlencode(base64_encode(hikashop_currentUrl('',false))),false));
else
$app->redirect(JRoute::_($url.'&return='.base64_encode(hikashop_completeLink('cart&task=showcart&cart_type='.$cart_type.'&Itemid='.$Itemid,false,false,true)),false));
Please Log in or Create an account to join the conversation.
- info@vesica.org
-
Topic Author
- Offline
Less
More
- Posts: 162
- Thank you received: 0
12 years 2 months ago #172784
by info@vesica.org
Replied by info@vesica.org on topic Disable multiple wishlists
Hi,
I can't find this line of code in the components/com_hikashop/views/cart/view.html.php:
The only code related that I see in this file and in the showcarts() function is:
thanks!
I can't find this line of code in the components/com_hikashop/views/cart/view.html.php:
Code:
$app->redirect(JRoute::_($url.'&return='.urlencode(base64_encode(hikashop_currentUrl('',false))),false));
The only code related that I see in this file and in the showcarts() function is:
Code:
if($cartVal == null){
global $Itemid;
$url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=cart&task=showcarts&cart_type='.$cart_type.'&Itemid='.$Itemid;
$app->redirect($url);
}
thanks!
Please Log in or Create an account to join the conversation.
12 years 2 months ago #172835
by Xavier
Replied by Xavier on topic Disable multiple wishlists
Hi,
So replace the found code by:
So replace the found code by:
Code:
if($cartVal == null){
global $Itemid;
if($config->get('enable_multicart','0'))
$url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=cart&task=showcarts&cart_type='.$cart_type.'&Itemid='.$Itemid;
else
$url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=cart&task=showcart&cart_type='.$cart_type.'&Itemid='.$Itemid;
$app->redirect($url);
}
Please Log in or Create an account to join the conversation.
- info@vesica.org
-
Topic Author
- Offline
Less
More
- Posts: 162
- Thank you received: 0
12 years 2 months ago #173072
by info@vesica.org
Replied by info@vesica.org on topic Disable multiple wishlists
Hi,
I've changed the code and now when I try to load the wishlist page I get a redirect loop.
Please see screenshot.
thanks!
I've changed the code and now when I try to load the wishlist page I get a redirect loop.
Please see screenshot.
thanks!
Please Log in or Create an account to join the conversation.
12 years 2 months ago #173085
by Xavier
Replied by Xavier on topic Disable multiple wishlists
Hi,
Yes indeed that's not correct, after verification the code you found is in the wrong function and for the wrong thing.
Thanks to add:
After:
The code will be in the next release.
Yes indeed that's not correct, after verification the code you found is in the wrong function and for the wrong thing.
Thanks to add:
Code:
if(hikashop_loadUser() == null){
global $Itemid;
$url = '';
if(!empty($Itemid)){
$url='&Itemid='.$Itemid;
}
if(!HIKASHOP_J16){
$url = 'index.php?option=com_user&view=login'.$url;
}else{
$url = 'index.php?option=com_users&view=login'.$url;
}
if($config->get('enable_multicart','0'))
$app->redirect(JRoute::_($url.'&return='.urlencode(base64_encode(hikashop_currentUrl('',false))),false));
else
$app->redirect(JRoute::_($url.'&return='.base64_encode(hikashop_completeLink('cart&task=showcart&cart_type='.$cart_type.'&Itemid='.$Itemid,false,false,true)),false));
return false;
}
Code:
$searchMap = array('a.cart_id','a.cart_name','a.cart_type');
The code will be in the next release.
Please Log in or Create an account to join the conversation.
- info@vesica.org
-
Topic Author
- Offline
Less
More
- Posts: 162
- Thank you received: 0
12 years 2 months ago #173266
by info@vesica.org
Replied by info@vesica.org on topic Disable multiple wishlists
Hi,
now when I logout on the wishlist page I get a white page.
thanks!
now when I logout on the wishlist page I get a white page.
thanks!
Please Log in or Create an account to join the conversation.
12 years 2 months ago #173275
by Xavier
Replied by Xavier on topic Disable multiple wishlists
Hi,
I am not able to reproduce the issue on my end.
When I log out on the wishlist page, I am well redirected to a login page.
Thanks to wait until the next release for this issue.
I am not able to reproduce the issue on my end.
When I log out on the wishlist page, I am well redirected to a login page.
Thanks to wait until the next release for this issue.
Please Log in or Create an account to join the conversation.
Time to create page: 0.112 seconds