Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow vouchers to have stock #105

Open
pixelmachine opened this issue Nov 18, 2022 · 2 comments
Open

Allow vouchers to have stock #105

pixelmachine opened this issue Nov 18, 2022 · 2 comments

Comments

@pixelmachine
Copy link

pixelmachine commented Nov 18, 2022

What are you trying to do?

I've been asked a couple of times recently to setup limited runs of vouchers.

It's not too hard to add a basic implementation via a custom field and an event but it would be nicer if vouchers had the same stock options as full products, i.e. stock or unlimited stock. This would bring vouchers more inline with standard Commerce products, which is nice for clients, and allows simpler templating an so on.

Not sure if that's something that can be inherited from the built in elements.

What's your proposed solution?

Stock level field and unlimited option. Unlimited by default I guess.

Additional context

No response

@engram-design
Copy link
Member

Yep, all the pieces are there thanks to Commerce purchasable, I just didn't imagine a use-case for limited digital vouchers, but sounds like that's valid.

@pixelmachine
Copy link
Author

I think Black Friday has my clients getting creative. Also they're hospitality based so vouchers are often for types of services which may need to be limited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants