Developer forum

Forum » Ecommerce - Standard features » Area settings issue

Area settings issue

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,
I have a project running on DW 9.20.5.
I am trying to use the "Prices with VAT" setting in the Area.
I have set it to "No"

Saved, opened again to confirm it is saved, then tried to grab in the page with: Pageview.Area.EcomPricesWithVat.ToLower()
But no matter what I do, I always get "true".
Is there any caching involved? or any change of logic on how this field is supposed to work?

Thank you,

Adrian


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

It works fine for me on 9.21 and I have seen this work many times before. How are you outputting / testing the value exactly? It's a string rather than a boolean for some odd reason.

Imar

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Imar,
I have tried both with Pageview.Area.EcomPricesWithVat.ToLower() and with AreaService.

Both are returning true even if the data in the database is set to false. I tried returning the string and not the boolean.

Adrian 

 

You must be logged in to post in the forum