Developer forum

Forum » Ecommerce - Standard features » Gift cards - wrong calculation of subtotal

Gift cards - wrong calculation of subtotal

Niels Foldager
Reply

Hi Dynamicweb,

When using gift cards in Dynamicweb v. 9.17.14 prices without taxes and fees are calculated wrong when gift card amount is greather than price of the product in the cart.
Should the amount on the gift card line be calculated constantly instead of saving the full gift card amount on the order line if it is not actually needed?

Best regards,
Niels Foldager








Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Niels

This is actually a known issue and seems to be related to if prices are shown with or without VAT. It has bug number 21736, you can follow it here:

https://doc.dynamicweb.dev/documentation/fundamentals/dw10release/releasenotes/openbugsdw10.html

BR Nicolai

 
Niels Foldager
Reply

Hi Nicolai,

Thanks, but it seems to be another problem than just handling VAT setting when applying gift card orderlines.
In my example, there is to much difference between product price (EUR 7,20) and the subtotal amount (EUR 98,25). I think Ecom:Order.TotalPriceWithoutDiscountFeesAndTaxes should be EUR 7,20 instead of EUR 98,25 which probably cannot be due to VAT calculation.

Best regards,
Niels Foldager

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Point taken. I was looking at the wrong difference. I see this is a somewhat other issue.

We will have a look at this.

 
Niels Foldager
Reply

Anything new about this bug?

Best regards,
Niels Foldager

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Yes - the pull request went through today on DW10 and needs to be merged to DW9 now.

You might want to check you setting /Globalsettings/Ecom/GiftCards/IncludeVAT "Calculate VAT for Giftcards"

https://doc.dynamicweb.com/documentation-9/platform/advanced-settings/ecommerce-advanced-configuration#sideNavTitle1-9

That one should be checked and might remove the problem for you as a workaround.

BR Nicolai

 
Niels Foldager
Reply

Hi Nicolai,

This setting is now checked, but doesn't change anything (using Dynamicweb 9.18.0).  

As mentioned earlier, I don't think that the subtotal error in the frontend can be related to VAT calculation. 
When redeeming a gift card (100 EUR) the subtotal calculation becomes completely wrong.

Without gift card:


Using gift card (100 EUR):


The wrong subtotal calculation in backend seems more likely to be related to some kind of VAT calculation:



Best regards,
Niels Foldager

 

You must be logged in to post in the forum