FixedRebate coupons

How to configure and adapt Aimeos based shops as developer
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!
traiyani75
Advanced
Posts: 114
Joined: 08 Nov 2019, 11:56

FixedRebate coupons

Post by traiyani75 » 14 Jul 2020, 10:51

Hello,
We are using JSON APIs for android and ios application. Now, we are implementing functions for coupons.
Now, In that, If I want to apply fixedRebate or PercentFixed to specific product only, How can I do that?

I have tried to use listing product code value as fixedrebate.productcode and percentrebate.productcode. But that is not working. Even if I have set old product code, total discount is applied on basket total price only.

How do I fix it?

Thanks

traiyani75
Advanced
Posts: 114
Joined: 08 Nov 2019, 11:56

Re: FixedRebate coupons

Post by traiyani75 » 14 Jul 2020, 10:59

Hello,

Along with this, I have tried to use basketvalues.total-value-min. But if my basket total amount is less than this defined value still coupon is applied on basket but no information is coming into api response when we hit get basket api call.

It is returning this
{
"id": "save2",
"type": "basket/coupon",
"links": {
"self": {
"href": "https://ebdaa-ecommerce-beta.mzadqatar. ... edid=save2",
"allow": [
"DELETE"
]
}
}
}
So, How can we know the limitation of basket amount for particular coupon? Similar to this, we are not getting any information about product type, discount value. How do we get all those information related to the product?

Thanks

traiyani75
Advanced
Posts: 114
Joined: 08 Nov 2019, 11:56

Re: FixedRebate coupons

Post by traiyani75 » 16 Jul 2020, 07:26

Hello guys, Any update here?

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: FixedRebate coupons

Post by aimeos » 16 Jul 2020, 20:55

traiyani75 wrote: 14 Jul 2020, 10:51 We are using JSON APIs for android and ios application. Now, we are implementing functions for coupons.
Now, In that, If I want to apply fixedRebate or PercentFixed to specific product only, How can I do that?
Add the "Required" decorator in the Voucher panel of the admin backend to your coupon provider (use the "+" sign right of the field), Then, add the product code of the product this voucher should be applied to and select "yes" for "required.only".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: FixedRebate coupons

Post by aimeos » 16 Jul 2020, 20:59

traiyani75 wrote: 14 Jul 2020, 10:59 Along with this, I have tried to use basketvalues.total-value-min. But if my basket total amount is less than this defined value still coupon is applied on basket but no information is coming into api response when we hit get basket api call.

So, How can we know the limitation of basket amount for particular coupon? Similar to this, we are not getting any information about product type, discount value. How do we get all those information related to the product?
Yes, the coupon is added to the basket but there's no error thrown if the coupon doesn't have an effect yet because if the user adds more products, it may became valid then.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

traiyani75
Advanced
Posts: 114
Joined: 08 Nov 2019, 11:56

Re: FixedRebate coupons

Post by traiyani75 » 23 Jul 2020, 07:32

Is there any way, by which we can get coupons information

traiyani75
Advanced
Posts: 114
Joined: 08 Nov 2019, 11:56

Re: FixedRebate coupons

Post by traiyani75 » 23 Jul 2020, 11:09

aimeos wrote: 16 Jul 2020, 20:55
traiyani75 wrote: 14 Jul 2020, 10:51 We are using JSON APIs for android and ios application. Now, we are implementing functions for coupons.
Now, In that, If I want to apply fixedRebate or PercentFixed to specific product only, How can I do that?
Add the "Required" decorator in the Voucher panel of the admin backend to your coupon provider (use the "+" sign right of the field), Then, add the product code of the product this voucher should be applied to and select "yes" for "required.only".
By doing this, Coupon will apply only if particular product exist into cart, but still total discount is applied on cart total instead of specific product only. How to fix that and create coupon code for particular product only?

Regards

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: FixedRebate coupons

Post by aimeos » 27 Jul 2020, 08:53

Please make sure you are using the latest 2020.x version of Aimeos.
There's a "required.only" option in the coupon detail panel if you select "Required" which limits calculating the discount only the the product in "required.productcode".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

traiyani75
Advanced
Posts: 114
Joined: 08 Nov 2019, 11:56

Re: FixedRebate coupons

Post by traiyani75 » 01 Aug 2020, 08:54

Hello, I have created coupon and also added required option. Please check attached screenshot. But when we apply coupon on cart. It is still giving discount based on cart total only.

Please check.

Thanks & Regards
Attachments
voucher.png
voucher.png (25.86 KiB) Viewed 2941 times

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: FixedRebate coupons

Post by aimeos » 01 Aug 2020, 09:00

There's no "required.only" option visible so you are using an old version
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply