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

Manual voucher code key #46

Open
yingban opened this issue Aug 9, 2020 · 3 comments
Open

Manual voucher code key #46

yingban opened this issue Aug 9, 2020 · 3 comments

Comments

@yingban
Copy link

yingban commented Aug 9, 2020

Hi!

for one of our clients I am currently testing the plugin.
My problem is that they already have a physical shop with physical vouchers, and they would like to use the same voucher key codes.

So the idea from the PM and clients would be that as a user, on the last step of the checkout process, there will be a dropdown with different voucher value (for example from 10 to 50, this might be counted as adjustments), and I will receive a physical voucher card in my package, and a voucher code will be created in the back end.

As far as I tested the plugin, it's not possible to manually generate a voucher code key.
Is it possible to make them manual?

Best regards

@engram-design
Copy link
Member

I imagine that adding a voucher to your cart will adjust the price. As such, could you not add a Gift Voucher product to the cart at the last stage of checkout?

This would add the voucher cost to the cart, and upon checkout, it'll generate a code for the voucher. Once this has been generated, you can send this to the customer, and your store managers for them to deal with in-store.

Otherwise, manually creating voucher codes is certainly possible with some custom development in a module. You'd have to listen to the checkout-completed event and create the voucher code during that. In fact, that's exactly what Gift Voucher does, which is the reason for my suggestion above.

Unless I'm missing a detail with your setup?

@yingban
Copy link
Author

yingban commented Aug 10, 2020

Thanks for you reply @engram-design .

If we can manually create voucher code with a module, it's fine for us.

Not related, does the plugin work with GraphQL?
I did not find anything in the docs, so I guess the answer is "no"

@engram-design
Copy link
Member

I believe your initial question should be covered in the current implementation. You can generate a voucher code in a module as well.

Happy to add GraphQL support, although I'm not 100% sure how that would apply for this plugin? What are you wanting to achieve?

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