Developer forum
E-mail notifications
Product Measurements
Replies
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