Voucher for the first order
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Advanced
- Posts: 114
- Joined: 08 Nov 2019, 11:56
Voucher for the first order
Hello,
We are using JSON APIs into mobile application. We also used different types of vouchers as well.
We want to create voucher which user can use for the first order only. So, is there any way to prepare such type for the voucher ?
Looking for your reply
Thanks in advance.
We are using JSON APIs into mobile application. We also used different types of vouchers as well.
We want to create voucher which user can use for the first order only. So, is there any way to prepare such type for the voucher ?
Looking for your reply
Thanks in advance.
Re: Voucher for the first order
Yes, you have to implement a coupon decorator similar to this one:
https://github.com/aimeos/aimeos-core/b ... r/Once.php
Just copy, paste and rename the code and remove the conditions in $expr you don't want.
https://github.com/aimeos/aimeos-core/b ... r/Once.php
Just copy, paste and rename the code and remove the conditions in $expr you don't want.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star