Page 1 of 2

FixedRebate coupons

Posted: 14 Jul 2020, 10:51
by traiyani75
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

Re: FixedRebate coupons

Posted: 14 Jul 2020, 10:59
by traiyani75
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

Re: FixedRebate coupons

Posted: 16 Jul 2020, 07:26
by traiyani75
Hello guys, Any update here?

Re: FixedRebate coupons

Posted: 16 Jul 2020, 20:55
by aimeos
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".

Re: FixedRebate coupons

Posted: 16 Jul 2020, 20:59
by aimeos
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.

Re: FixedRebate coupons

Posted: 23 Jul 2020, 07:32
by traiyani75
Is there any way, by which we can get coupons information

Re: FixedRebate coupons

Posted: 23 Jul 2020, 11:09
by traiyani75
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

Re: FixedRebate coupons

Posted: 27 Jul 2020, 08:53
by aimeos
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".

Re: FixedRebate coupons

Posted: 01 Aug 2020, 08:54
by traiyani75
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

Re: FixedRebate coupons

Posted: 01 Aug 2020, 09:00
by aimeos
There's no "required.only" option visible so you are using an old version