Developer forum

Forum » Ecommerce - Standard features » Ecom:Product:Field.CustomField.Label returning value

Ecom:Product:Field.CustomField.Label returning value

Mafalda Correa
Mafalda Correa
Reply

Hi,

I have a list box with options where the value is different than the label.

I want to display the label in the frontend, however, even though the template tags returns the correct values, when I output the tag, it returns the value instead of the label:

 

But then when I output: @product.GetString("Ecom:Product:Field.MilkTreatment.Label")

I get TRUE instead of Raw Milk.

I'm using DW 9.10.8

 

Thanks


Replies

 
Mafalda Correa
Mafalda Correa
Reply

Update:

I tested in 9.10.9 and it worked. 

It must be a 9.10.8 bug.

 
Mafalda Correa
Mafalda Correa
Reply

Update 2:

Turns out it didn't really have anything to do with the DW version. I simply had TemplateTags in my template when I was testing in DW 9.10.9.

The label tag only seems to work if TemplateTags() is in the template. 

See the repro here: https://www.screencast.com/t/zeBiqNxX

 

You must be logged in to post in the forum