Developer forum

Forum » Development » Webapi: vouchercode not working

Webapi: vouchercode not working

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

We are working with the webapi, but when adding a "vouchercode" in the patch command, then Dynamicweb is not activating this method:DiscountValidForOrder
when we are implementing: DiscountExtenderBase.

For me it seems like the discount calculations are not added when using the webapi.

 

Can you guys please try to look into this issue?

 

Best regards, Anders


Replies

 
Vladimir Shushunov Dynamicweb Employee
Vladimir Shushunov
Reply

Hi Anders,

Could you please provide full steps of your order processing/typical scenario for cart?

Just as I see currently discounts are calculated for cart only when it is loaded on frontend.

 

Best regards,

Vladimir

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Vladimir,

 

We are working on a full headless approach, so the cart is created through the api, items are added through the api and vouchercodes are assigned through the api.

And this is here were we cannot get discounts to work even though a vouchercode is patched to the order.

 

We really need to have this supported by the api as the headless solution are going to be delivered to our client this month.

 

Best regards,

Anders

 
Vladimir Shushunov Dynamicweb Employee
Vladimir Shushunov
Reply
This post has been marked as an answer

I understand. Don't worry, we will fix this asap!

I register a bug #5242 full headless approach needs instant discount updating in web api

 

Best regards,

Vladimir

Votes for this answer: 1
 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Vladimir,

 

How is it going with this bug? As I cannot see it on the bug list here: https://doc.dynamicweb.com/downloads/releases/bug-fixes/known-bugs

 

Best regards,

Anders

 
Vladimir Shushunov Dynamicweb Employee
Vladimir Shushunov
Reply

Hi Anders,

well... the bug is on testing! I ask our QA to hurry up

Best regards,

Vladimir

 
Anders Ebdrup
Anders Ebdrup
Reply

Sounds great! :-)

 

You must be logged in to post in the forum