Single article with multiple products decrement

  • Posts: 56
  • Thank you received: 1
11 years 9 months ago #119929

hi at all,

I have this need: In my shop i have some kit products, this type of product have a code like another article but it is composed by several products, when a kit product are added to cart and ordered i need every single product quantity are decremented.

Example: Kit 1 are composed by 1xProcuctA, 1xProcuctB, 1xProcuctC, 3xProcuctD, if a client order 2 product Kit1 the product quantity of article ProcuctA is decremented by 2 unit, ProcuctB is decremented by 2 unit,ProcuctC is decremented by 2 unit, ProcuctD is decremented by 6 unit.

There is a way to obtain this behavior ?

Every solutions will be evaluated . . .

Many Thanks

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #119965

Hi,

You can use the "options", create a product "Kit 1" and add the 4 others products as option to it.
By this way when the customer buy the "Kit 1" he will take too the other products, and their stocks will be decremented.

www.hikashop.com/support/documentation/i...ct-form.html#options

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

  • Posts: 56
  • Thank you received: 1
11 years 9 months ago #123645

Hi Xavier,

many thanks for your answer, sorry if I reply now only, but i was taken from work.
The "options" are a good idea, but there are two problem:
-1 If I use the options on the product page are visible the combo box that allow a client to select or no a specific options, in my application it's a problema because a kit is composed by a fix number of product and clinet can't modify it. Is possible to fix or non show the options combo box ? I think set display:none css property of the continer option.
- 2 I have necessity to set the quantitty of some options, example Kit A is composed by 1x product X, 2x produtc Y and 4x product Z, if a client order 1xKitA order in total 7 product (1xX+2xY+4xZ). It's Possible ?

Many Thanks

Luca

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #123756

Hi,

Sorry but I misunderstood the problem.
What you need is not possible in HikaShop.

There is an interface like that for the variants, but the problem is that it's applied on the main product, and not on "product X, product Y, ..."

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

  • Posts: 56
  • Thank you received: 1
11 years 9 months ago #123799

Hi,

ok, if what I needed is not possible by the existing features, i can modify the source. There is a simple way to add the quantity on every single option ?
Example: The options table in the product page have 6 columns (Name, Procuct Code, Price, Order, Delete, ID) I need another column "Quantity". With this new column I can set the quantity (n) of a sigle option, when an option is selected and the product ordered, automatically in cart are added the product with relative n. options product.

Have you some ideas or suggestion about realize this solutions ???

Many Thanks

Luca

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 9 months ago #123852

Hi,

Yes you can modify HikaShop in order to include your feature but this feature is more complex than this "simple" example (which is basically, not simple).
Like: What will you do if the customer change the quantity of the main product ?

There is an option in HikaShop so you won't link the options with the main product. The options will be added in the cart like any other product. At this moment the customer will be able to change the quantity.
But in the case where the option is linked to the main product, you can't change the quantity because it's the same than the main product.

So your requested feature could only work with a specific HikaShop configuration, otherwise you could have problems to process correctly the quantities.
With this specific case, I think the development will be easier but for an integration into HikaShop, some "security" checks should be added in order to be compatible and work correctly with every possible configurations.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.092 seconds
Powered by Kunena Forum