Get All Coupons
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
Get All Coupons
Hello,
Is there any rest API call for getting all coupons whichever added on admin side ?
Is there any rest API call for getting all coupons whichever added on admin side ?
Re: Get All Coupons
No, not for the frontend because then everyone could fetch the list and use the codes for their next order.
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
-
- Advanced
- Posts: 114
- Joined: 08 Nov 2019, 11:56
Re: Get All Coupons
Ok thanks. Now Can we set maximum amount of the discount for the PercentRebate coupon type.
Like 5% rebate with maximum discount as 10$.
So, discount will not be raised more than 10$. How do I achieve this ?
Thanks
Like 5% rebate with maximum discount as 10$.
So, discount will not be raised more than 10$. How do I achieve this ?
Thanks
Re: Get All Coupons
You have to create your own coupon provider and implement the limit. You can use the PercentRebate provider as base.
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
-
- Advanced
- Posts: 114
- Joined: 08 Nov 2019, 11:56
Re: Get All Coupons
Hello
We have coupon functionality using REST Api. Now, we have attached one voucher product along with coupon.
When we add coupon into basket and try to place order, that time we received product out of stock error.
How do we handle it ? Do we need to set stock for voucher product too? I thought that is for article product only. How do I setup this flow?
I have tried with defining stock count too, but that time stock is decreased by one when we apply coupon into basket. Do we need to setup like that?
We have coupon functionality using REST Api. Now, we have attached one voucher product along with coupon.
When we add coupon into basket and try to place order, that time we received product out of stock error.
How do we handle it ? Do we need to set stock for voucher product too? I thought that is for article product only. How do I setup this flow?
I have tried with defining stock count too, but that time stock is decreased by one when we apply coupon into basket. Do we need to setup like that?
Re: Get All Coupons
You can use a stock level of X if the coupon should be only used X times or you can leave the stocklevel field empty for unlimited usage.
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