I'm currently using the contrib Stock module for Drupal Commerce, and I need a very specific modification to my order rules done. I'm bringing this to you since you're the author of the module, and I figured it would be best to pick your brain on this.

Plain and simple, here's the use case case: Our site is selling tickets for an event, and the administration wants our site to offer a discounted ticket set based on the following:

-Ordinary tickets cost $500.
-For a table of 8, tickets cost $3,000 (over a thousand dollar discount).

Currently, I have things set up so that there are two different products under the Product Type "Tickets", and we have a limited ticket supply of 500 tickets for the event.

How can I set things up so that purchasing the Table of 8 will subtract from the main ticket pool will subtract by 8 on every subsequent purchase of the "Table of 8" type?

Comments

rfay’s picture

Title: Quick Question for Commerce Stock: Custom Stock Setting Based on Purchase of Other Items » Product bundles and stock management of the individual items
Version: 7.x-1.0-alpha2 » 7.x-1.x-dev

Stock doesn't currently have any capabilities for product bundles.

You should definitely look at Commerce Product Bundle which I don't have any experience with.

I imagine your short-term approach is to write a custom rule based on the rule provided with Commerce Stock, which will act only on your specific bundle.

Actually... You could add a product reference field and a bundle quantity field to the product type you're working with, and then you could write a rule that would see if those are populated, and if so, make the correct decrement on the other type. That would work OK. It's not pretty or packaged, but it would work.

rfay’s picture

guy_schneerson’s picture

Subscribing

guy_schneerson’s picture

Status: Active » Closed (duplicate)

closing as this belongs in the product bundle issue or you can use a single product and use rules to discount if 8 are added.