display prodict quantity

  • Posts: 6
  • Thank you received: 0
  • Hikashop Essential
1 day 14 hours ago #366899

-- HikaShop version -- : 5.1.6
-- Browser(s) name and version -- : mozilla

Hello,

my shop offers two variants of the same book: the book only and a bundle where custumers buy the book and the PDF-version. Now, when someone buys a bundle, the counter is correctly reduced by 1. Lets say, there were 77 books before, it now shows 76 books. But the book only option still shows 77 books. Means, HikaShop deals the bundle and the book only option as two seperate products. Which it shouldn't. How can I change this? There should be a general counter for the book which is reduced by 1 everytime a customer buys a book only or the book with the PDF. Any ideas?

Thanks!

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

  • Posts: 83674
  • Thank you received: 13545
  • MODERATOR
1 day 11 hours ago #366901

Hi,

Well, it depends on how you configure your product.
If you configured only the stock in the main product, then regardless of whether the user purchases variant 1 or variant 2, the stock will be updated in the main product and the stock will be taken into account for both variants.
From what you're saying, it seems that you set the stock in one variant, and thus, the purchase of the other variant doesn't do anything for the stock of the variant with the stock.

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

  • Posts: 6
  • Thank you received: 0
  • Hikashop Essential
11 hours 16 minutes ago #366912

Hi,
thanks for the quick reply.
I now set the variants 1 and 2 to unlimited and only the stock of the main product to 77. It works perfekt.

But there is variant 3, which is the PDF only version. I set this variant to 999. But if someone buys a PDF now, not only the variant is reduced by 1, but also the stock of the main product. Is there a way that by buying a PDF, only the PDF stock is reduced by 1?

Thanks!

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

  • Posts: 83674
  • Thank you received: 13545
  • MODERATOR
7 hours 56 minutes ago #366914

Hi,

I don't see an automatic solution with variants of a product.
A solution would be to have 3 different products:
- You would have product A, which would be the book, with a stock.
- You would have product B, which would be the PDF, with its stock set to unlimited.
- And you would have product C, which would be the book + PDF. In it, in the "bundled products" section, you could add product A and product B. That way, when the customer would purchase product C, it would update the stock of product A too. And since product B has an unlimited stock, it wouldn't change anything.
And if you want the customers to be able to switch from one of the three products to another on the product page on the frontend, then you could add them in the "related products" setting of each other.

Another solution would be to have the stock in the main product for all 3 variants, and when you're notified by the website that the product is out of stock (with the out of stock plugin), you then manually edit the product, set the book and book+PDF variants to 0 and the main product to unlimited. That way, only PDF variant will be available. If you don't have a lot of products that often go out of stock, that might be manageable.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum