Skip to content

Limit code use to specific products #90

Answered by engram-design
pixelmachine asked this question in Q&A
Discussion options

You must be logged in to vote

Yep, at the moment there's no way to say "I only want vouchers to be redeemable on these products" (or the reverse), but it's something we might eventually build in. While vouchers are similar to discounts, we can't use the "Promotable" setting for products, like you can to disable certain products from having coupon codes and discounts applied to them.

If I'm on the right track with your question?

I'm not sure how you generate your codes, but if it's just about determining which products can have a voucher applied to them, there's the EVENT_AFTER_VOUCHER_ADJUSTMENTS_CREATED event where you can check against the product having a voucher applied to.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@pixelmachine
Comment options

@engram-design
Comment options

@pixelmachine
Comment options

@engram-design
Comment options

@pixelmachine
Comment options

Answer selected by pixelmachine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants