Global Add to cart on wishlist

  • Posts: 213
  • Thank you received: 10
  • Hikashop Multisite
1 week 1 day ago #365658

-- HikaShop version -- : 5.1.3

Hi,

I have enabled the Add to cart on listings "global" setting.
But i only want to show it this way on the wishlist, all other listings need to have a one per product button.
Can you tell me which file i need to edit, because i don't see a setting for this?

Kind regards,
Jeroen

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

  • Posts: 83296
  • Thank you received: 13466
  • MODERATOR
1 week 22 hours ago #365669

Hi,

I'm not following you. The wishlist page displays the same regardless of how the "Add to cart on listings" setting is configured.
This setting is only for add to cart buttons, on products listings and on the product details page.
So just configuring that setting to "per product" should do what you want.
But maybe I'm missing something ?

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

  • Posts: 213
  • Thank you received: 10
  • Hikashop Multisite
1 week 22 hours ago #365670

Hi,

Sorry i was not clear.

I would like to display the wishlist with 1 order button at the bottom of the wishlist. Like a global "Add to cart on listings" page.
But all other pages need to have a per product like "normal".

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

  • Posts: 83296
  • Thank you received: 13466
  • MODERATOR
1 week 18 hours ago #365671

Hi,

Isn't there already a global add to cart button in the top button bar of the wishlist page ?
For example:
i.imgur.com/wU8xQn5.png
There, you can see the wishlist page. And you have an "add to cart" button at the top, between the "share" and "move to" buttons.
And on the left side of the wishlist table, you have a checkbox for each product. When you click on the add to cart button, it will add to the cart all the products whose checkbox is checked.
Are you saying that your problem is that you want this button to be at the bottom instead of the top ? Or are we talking about a different place ?

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

  • Posts: 213
  • Thank you received: 10
  • Hikashop Multisite
3 days 3 hours ago #365732

Hi,

Thanks for your answer, I see what you do, but this is not what i'm looking for.

The wishlist is used as a personal product-list. Each customer has his own list of products and orders multiple times a week.
The customer don't order each time the same product and also not the same number of products.

We are looking for a way to display the list where a visitor can change the number of products easily in the way like the global add-to-cart option works. The way you show (with checkbox) is not easy, especially not on a mobile phone, because the customer don't want to select the complete list.
Is there a way to change this view?

Kind regards

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

  • Posts: 83296
  • Thank you received: 13466
  • MODERATOR
3 days ago #365733

Hi,

You can change this view by editing the file cart / show via the menu Display>Views.

The thing is that the quantity input there are the quantity of the products in the wishlist. If you set it to 0, then the product will be removed from the wishlist.
So using the quantity input for the add to cart, without impacting the wishlist is not supported.
That's why we had to have checkboxes there so that the products of the wishlist can be selected to be added to the cart.

An alternative might be to use the "like" plugin:
www.hikashop.com/marketplace/product/155-product-like-btn.html
With it, users can like the products they want.
And you can create a products listing menu item with only the liked products.
And since this is a normal products listing, it works similarly to other products listings with the global add to cart system.

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

  • Posts: 213
  • Thank you received: 10
  • Hikashop Multisite
2 days 23 hours ago #365742

The like button might be the most straight-forward solution.

Is there a way to only display the menu-item with the liked-products in the global add to cart view and the other pages in a normal table?

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

  • Posts: 83296
  • Thank you received: 13466
  • MODERATOR
2 days 20 hours ago #365744

Hi,

While there is no option you can change for this, it's possible to activate it locally with a small view override.

You want to edit the view file product / add_to_cart_ajax via the menu Display>Views. There, after the line:

$global_on_listing = $this->config->get('show_quantity_field') == 2;
you could add something like this:
$global $Itemid;
if($Itemid==XX)
$global_on_listing = true;
where XX would be the id of the menu item for the liked products listing.
That way, the global add to cart will be used on that menu item, and other products listings will display normally, with one add to cart button per product.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum