- Posts: 82
- Thank you received: 1
[RESOLVED] disable multiple wishlist
6 years 10 months ago #312773
by lensky
disable multiple wishlist was created by lensky
-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.12
-- PHP version -- : 7
Hello
Even if I disabled the option to have multiple wishlist, when I go to my wishlist I still see the button to move an item to another wishlist and/or create a new one.
What should I do to see only the default wishlist?
I attach the screenshoots
thank you
Elena
-- Joomla version -- : 3.9.12
-- PHP version -- : 7
Hello
Even if I disabled the option to have multiple wishlist, when I go to my wishlist I still see the button to move an item to another wishlist and/or create a new one.
What should I do to see only the default wishlist?
I attach the screenshoots
thank you
Elena
Please Log in or Create an account to join the conversation.
6 years 10 months ago #312774
by nicolas
Replied by nicolas on topic disable multiple wishlist
Hi,
Try changing the line:
to:
in the file components/com_hikashop/views/cart/view.html.php
Try changing the line:
Code:
if($this->multi_wishlist || empty($user_wishlists)) {
Code:
if($this->multi_wishlist || ($cart->cart_type != 'wishlist' && empty($user_wishlists))) {
Please Log in or Create an account to join the conversation.
6 years 10 months ago - 6 years 10 months ago #312819
by lensky
Replied by lensky on topic disable multiple wishlist
Hi nicolas,
thank you. Your tip resolved only half of the problem: now I cannot create a new wishlist but I still have the button 'move to'.
Since I already have the button to move to the cart the products I checked, I don't have any need to show it.
Hiding it by css seems dirty trick to me... can you suggest anything that hide it unless I (my client) decide to enable the multi-wishlist?thank you
Elena
thank you. Your tip resolved only half of the problem: now I cannot create a new wishlist but I still have the button 'move to'.
Since I already have the button to move to the cart the products I checked, I don't have any need to show it.
Hiding it by css seems dirty trick to me... can you suggest anything that hide it unless I (my client) decide to enable the multi-wishlist?thank you
Elena
Last edit: 6 years 10 months ago by lensky.
Please Log in or Create an account to join the conversation.
6 years 10 months ago #312822
by nicolas
Replied by nicolas on topic disable multiple wishlist
Hi,
Ah yes. You need to also change the code:
to:
in that same file to avoid that.
We'll add that patch too on our end.
Ah yes. You need to also change the code:
Code:
$toolbar['move_to'] = array(
'dropdown' => array(
'label' => !empty($manage) ? JText::_('HIKA_MOVE_TO') : JText::_('HIKA_ADD_TO'),
'data' => $dropData,
'options' => array('type' => 'link', 'right' => true, 'up' => false, 'hkicon' => 'icon-32-wishlist', 'main_class' => 'hikabtn')
),
'fa' => array(
'size' => 1,
'html' => array('<i class="fas fa-list-ul fa-stack-2x" style="top:15%"></i>','<i class="fas fa-star fa-stack-1x" style="left:-36%;top:-20%;"></i>'),
),
);
Code:
if(count($dropData)) {
$toolbar['move_to'] = array(
'dropdown' => array(
'label' => !empty($manage) ? JText::_('HIKA_MOVE_TO') : JText::_('HIKA_ADD_TO'),
'data' => $dropData,
'options' => array('type' => 'link', 'right' => true, 'up' => false, 'hkicon' => 'icon-32-wishlist', 'main_class' => 'hikabtn')
),
'fa' => array(
'size' => 1,
'html' => array('<i class="fas fa-list-ul fa-stack-2x" style="top:15%"></i>','<i class="fas fa-star fa-stack-1x" style="left:-36%;top:-20%;"></i>'),
),
);
}
We'll add that patch too on our end.
Please Log in or Create an account to join the conversation.
6 years 10 months ago #312848
by lensky
Replied by lensky on topic [RESOLVED] disable multiple wishlist
Now is perfect! thank you!
Please Log in or Create an account to join the conversation.
Time to create page: 0.292 seconds