Add Products To Cart in Batch?

  • Posts: 6
  • Thank you received: 0
8 years 11 months ago #224898

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.6
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : Chrome 47.0.2526.80

Hi,

I'm working on a feature that would allow users to add products to their cart from the product listing view. This works similarly to the compare feature where users can quickly add multiple items. We leverage the hikashopModifyQuantity JS function for every selected item in the product listing.

Everything works fine, except for the SqueezeBox confirmation window, where it seems every product adds its own iframe to the window. We would like to modify it so it renders a list of products that was added in a single iframe.

Any tips or suggestions?

Thanks!

Tony

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 10 months ago #224904

Hi,

HikaShop already has a system in order to add several products at the same time from the products listing.
You can just set the "Display the quantity field on the product page" option of the hikaShop configuration to "global on listing".
That way, you'll have one quantity box for each product of the listing and one main "add to cart"/"add to wishlist" button.
Then, you're left with simply hidding the quantity box with CSS and adding a checkbox with a piece of javascript to set the quantity field based on whether the checkbox is checked or not.
So it's really easy to do like that and the notice popup should display normally.

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

  • Posts: 10
  • Thank you received: 0
  • Hikashop Business
3 years 10 months ago #328036

Does this still work? I went to the Product options tab and selected "Yes" for Quantity field under the "Product features display" and it shows the quantify box with a default value of "1" but each product has it's own "Add to Cart" and not just 1 add to cart

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 10 months ago #328068

Hi,

It still works yes. You need to set the option "Add to cart on listings" to "global" in the HikaShop configuration for that.

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

  • Posts: 10
  • Thank you received: 0
  • Hikashop Business
3 years 10 months ago #328074

Where exactly is this "Add to cart on listings" option you're referring to?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 10 months ago #328081

Hi,

It's under the "Display" tab of the HikaShop configuration page:
www.hikashop.com/support/documentation/5...html#display_product

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

Time to create page: 0.071 seconds
Powered by Kunena Forum