Developer forum

Forum » Ecommerce - Standard features » Can't get website settings with razor in cart

Can't get website settings with razor in cart

Morten Fink Eriksen
Reply

Hey

I have a problem when trying to get an website field from within a cart, when trying to pull out the value in the cart nothing comes out, but if i try and pull out the same value from say the master page, the value gets returned.

Anybody else witnessed this problem?


Replies

 
Anders Ebdrup
Reply

Hi Morten,

 

Which version of Dynamicweb are you using as I know that there has been some issues with this? And how do you try to get the values in the cart template?

 

Best regards, Andesr

 
Morten Fink Eriksen
Reply

Hi Anders

We are using 8.4.0.14 and the way i try to get the values is like:

@GetValue("Item.Area.FIELD")

 
Anders Ebdrup
Reply
This post has been marked as an answer

Hi Morten,

 

Then you should be able to get it by:

 

@Pageview.Area.Item["FIELD"]

 

Best regards, Anders

Votes for this answer: 1
 
Morten Fink Eriksen
Reply

Tusind tak for det lille tricks... :D

 

You must be logged in to post in the forum