Sale by weight - quantity in stock

  • Posts: 35
  • Thank you received: 2
  • Hikashop Essential
1 week 5 days ago #364259

-- HikaShop version -- : 5.1.1
-- Joomla version -- : 5.2
-- PHP version -- : 8.1
-- Browser(s) name and version -- : chrome 130.0.6723.92

Hi!
I want to sale products by weight.
I want to set variants of this product, for example 0.1 kg, 0.2 kg, 0.3 kg....
My question: I need to set quantity of products in stock in weight - for example 10 kg
After each purchase the weight should decrease, for example: by purchase 0.2 kg - weight in stock decrease to 9.8 kg,
If this possible?
thank you.

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
1 week 5 days ago #364260

Hi,

It's not possible with variants.
It's possible if each variant is created as a different product.
In that case, you can have the 0.1kg product to be the one with the stock. If you have 10kg, you set the stock to 100.
Then, in the 0.2kg product, you add the 0.1kg product as a bundled product with a quantity of 2.
In the 0.3kg product, you add the 0.1 product as a bundled product with a quantity of 3.
Etc.
This way, the stock of the 0.1kg product will decrease automatically based on which product is sold and the quantity available for a product will depend on the stock of that 0.1kg product.
So for example, if you only have 10 in stock left for that 0.1kg product, when a user wants to buy the 0.3kg product, he will only be able to buy a maximum of 3.

You could potentially add the other variant products of the same product as "related products so that they would be easily accessibles on the product page.

If, one day, we add the capability to be able to setup bundled products in individual variants, then this mechanism would be possible with variants too, but not at the moment.

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

  • Posts: 35
  • Thank you received: 2
  • Hikashop Essential
1 week 1 day ago #364349

Thank you Nicolas!

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

Time to create page: 0.235 seconds
Powered by Kunena Forum