Developer forum

Forum » Templates » Product Measurements

Product Measurements


Reply

 

I have a query. Please guide me on how we can input the exact measurements of a shirt for the user in e-Com Dynamicweb. I have already implemented the regular sizes e.g. small, medium, large and extra large. But in our scenario we need the customers exact measurements e.g. collar size, arms length, shirt length, chest size and etc. Please guide me how we can input the values into a form.
 
Regards
Syed
 

Replies

 
Reply

Is sounds as if you need a way to customize your orderline fields, which is currently not supported. At least this would be e pretty way of implementing it.

 

However, you can still achieve a similar functionality in different ways. One way would be to come up with your own format for these settings and store them in a single orderfield set up in backend and call it measurements in name, system name and template tag. In your template for customer details add a field for each dimension you want specified and name all the fields "measurements". When the order is submittted, the values will be stored as measurements=x,y,z.

 

If you need to specify it when the product is added to the basket, you would need to create a class that inherits from NotificationSubscriber and subscribes to the Dynamicweb.Notifications.eCommerce.Cart.Line.Added notification. In the OnNotify event you extract the submitted custom data (implement these in your add-to-cart form) and store these in custom fields on the orderline. The downside to this is that they are not shown in the miscellaneous tab on the order in backed, so you might want to sum up these values and store them in a order field, when the order is finalized.

 

You must be logged in to post in the forum