Developer forum

Forum » Ecommerce - Standard features » Missing fields in ShippingViewModel from GetShippings

Missing fields in ShippingViewModel from GetShippings

Mikkel Belchuke
Mikkel Belchuke
Reply

Hi. 

Would it be possible to add the remaining fields, from the Shipping Model, into the ShippingViewModel when using the WebAPI endpoint "/dwapi/ecommerce/shippings".

We would like to use FeeRuleSource, but it would be great if you could just add the other fields as well.  

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Mikkel

I have added the source.

Not all properties makes sense in a view model. I.e. EligibleForFreeShipping is a setting that can affect the calculation of the actual fee, and would maybe just clutter up the data.... Anything in particular you need?

BR Nicolai

Votes for this answer: 1
 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

https://dev.azure.com/dynamicwebsoftware/Dynamicweb/_workitems/edit/14811

 
Mikkel Belchuke
Mikkel Belchuke
Reply

That's perfect Nicolai. And I totally agree that not all fields makes sense to add. What you added is just what I needed. Thank you!

 

You must be logged in to post in the forum