Developer forum

Forum » Ecommerce - Standard features » Loyalty Points Cart validation isn't working

Loyalty Points Cart validation isn't working

Mafalda Correa
Mafalda Correa


I found an issue with the Loyalty Points quantity cart validation.

My user has 800 points, but I can't change the quantity to 8 in a product where the loyalty points price is 100.

If I have 1 quantity, I can only change it to 7 successfully, if I increase one by one, I can only get it up to 4, if I have 2 quantity, I can only change it to 6, etc. It seems as if the initial point price of the product is being added twice.

See the repro here:

Having a look at the code of the core platform, I found the validation for the orderline increase, that seems to prove my theory:

cart.TotalPoints are being added to the defaultPoint * quantity, which I believe is making the orderline we're changing be counted twice. One as the points it already represents in the Cart and then again as the new quantity * points.

Thank you


Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
This post has been marked as an answer


The issue is reproduced in fact on last DW9.8.7, It's now bugged by TFS 80496 has been submitted. Thanks for observing.

BR, Oleg QA 

Votes for this answer: 1
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt

Hi Mafalda

The problem TFS#80496 "Loyalty Points Cart validation does not work correctly" has now been fixed in Package "Dynamicweb.Ecommerce" version 1.8.71

You are able to find this update in the backend Package update section.

Also the correction are part of the 9.8.8 release 

You are able to find this build in the download section:

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt


You must be logged in to post in the forum