Quantity Bundled Products

  • Posts: 5
  • Thank you received: 0
6 years 8 months ago #274756

Hi,
I have 3 products and 1 Bundled Product
1-product A ---->Quantity =5
2-product B ---->Quantity =4
3-product C ---->Quantity =10
4-product AB is bundled product {
product A---->Quantity =2
product B---->Quantity =1
product C---->Quantity =3
}

*** product AB---->Quantity=unlimited
My customers can order product A or product B or product C or both of them or product AB
so I cant set quantity for Bundled products(product AB)
if product B has 0 quantity, my customer can buy product AB and there is any error message.
and if all the products in product AB have 0 quantity, customer see any problem to buy the bundled product so he buy it.
Is any solution to control quantity of Bundled product?
Thanks.

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

  • Posts: 4501
  • Thank you received: 610
  • MODERATOR
6 years 8 months ago #274759

Hello,

First can you provide some screenshot to show us how do you set up this, that's will be more easy to understand your specific case.
Awaiting news from you.

Regards

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

  • Posts: 5
  • Thank you received: 0
6 years 7 months ago #276328

Hello,
I have problem with zero quantity of products in Bundled products
First step: I set up these value



Bundled product:

for example: My site run confirmed orders in below:
Process 1: 2 quantity of product AB
After that I have {product A quantity=1 (5-4=1)
And product B quantity=2 (4-2=2)
And product C quantity=4 (10-6=4)
}
after that I have
Process 2: 1 quantity of product A
After that I have product A quantity=0 (1-1=0)
Product AB has 0 quantity of product A and 2 quantity of product B and 4 quantity of product C.
Process 3: Now quantity of A is zero. if other person buys 1 quantity of product AB, Hikashop will allow to confirm order without error message.
Sincerely

Attachments:
Last edit: 6 years 7 months ago by ITA.

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

  • Posts: 81478
  • Thank you received: 13060
  • MODERATOR
6 years 7 months ago #276355

Hi,

As you saw, the quantity is only checked for the products directly in the cart. The bundled products are not directly in the cart and thus their quantity is not checked. Only the quantity of the bundle itself is checked.
We didn't implement that capability for now.
Doing that properly will be quite complex.
As a quick solution if you're a developer (or can have a developer do that for you), you can create a small plugin of the group hikashop and implement the onAfterProductCheckQuantities(&$products, &$cart, $options) trigger. You can use it to check the quantity of the bundled products of the products being added to the cart in $products (by getting them from the hikashop_related table and then from hikashop_product), and then update their qty to 0 in that array and adding your error message to the array $cart->messages as it's done in the checkQuantities function of administrator/components/com_hikashop/classes/cart.php

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

  • Posts: 5
  • Thank you received: 0
6 years 7 months ago #276363

Hello,
Thanks for helping me.
Is your group going to implement that in next version?

Sincerely

Last edit: 6 years 7 months ago by ITA.

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

  • Posts: 12953
  • Thank you received: 1778
6 years 7 months ago #276473

Hello,

Well, we can eventually add it on our TODO list, but if you need the help of a professional developer to quickly develop it, you can check our partners section : www.hikashop.com/home/our-partners.html
Or our commercial jobs section : www.hikashop.com/forum/9-commercial-jobs.html

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

  • Posts: 5
  • Thank you received: 0
6 years 7 months ago #276542

Hello,
Thanks for helping me.
I'm particularly interested in this ability of Hikashop so I will wait to hear from you in other version.
Sincerely

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

  • Posts: 1
  • Thank you received: 0
  • Hikashop Business
2 years 6 months ago #335936

Hello,
Could you tell me if en solution was ever created?
regards
Wim

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

  • Posts: 81478
  • Thank you received: 13060
  • MODERATOR
2 years 5 months ago #336351

Hi,

Yes. It was added in the 3.4.0 3 years ago:
www.hikashop.com/support/documentation/5...ashop-changelog.html

We now support the quantity regarding the composition of a bundle of products. For that you need to have an unlimited quantity for the bundle product and HikaShop will automatically use the smallest quantity amongst all the products in the bundle.

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

Time to create page: 0.110 seconds
Powered by Kunena Forum