Developer forum

Forum » Ecommerce - Standard features » Units of measurement (cm, kg, etc.) from standard fields not showing on product pages

Units of measurement (cm, kg, etc.) from standard fields not showing on product pages

Ferri Halfhide
Reply

Hi,

I noticed that units of measurement like cm, kg are from the standard fields are not being displayed on product pages on the front-end.
I've filled these in on the products, but only the values are shown: 

Product detail page: 


Is there a setting in Dynamicweb Ecommerce to enable this, or do I need to adjust the template?

Thanks in advance!


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Currently it requires an update to the template for the built in fields. Technically this comes from that the fields in the viewmodel are doubles and we cannot change them to be strings and include the units as part of the viewmodel.

We have a task going to implement a new property that holds the combined information on DW10.That will make the value available on the viewmodel, but will still require a template update in Swift as it will be a new property to support backwards compatibility.

BR Nicolai

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Currently it requires an update to the template for the built in fields. Technically this comes from that the fields in the viewmodel are doubles and we cannot change them to be strings and include the units as part of the viewmodel.

We have a task going to implement a new property that holds the combined information on DW10.That will make the value available on the viewmodel, but will still require a template update in Swift as it will be a new property to support backwards compatibility.

BR Nicolai

 
Ferri Halfhide
Reply

Hi Nicolai,

Thanks for your fast response!

In that case, could you let me know how I can temporarily show the values including units, with updating the templates?

Also, could you clarify which templates would need to be updated, and how to apply those changes so the combined value becomes visible in the frontend?

Thanks again!

 

You must be logged in to post in the forum