The Ecommerce module enables you to create variations of products based on product attributes. If you want to characterize a product variation with additional information, you can add a custom field for the product variations. For example, you are creating variations for t-shirts. In addition to size or color, you may want to add the location of the product variation if, say, different variations are stored at different warehouses.
To do this, you need to create a MetaType (if one does not exist already) and then a MetaField that is to store the product variations additional data. As a result, MetaField information is stored in a new column in the database. Next, you extend the backend definition of product variations by updating the insert and edit views. Thus, when you create a new variation in the backend, you see the new custom field and can modify it to enter a value.
In the current example, you create a custom field BinLocation of type String that enables you to enter the location of product variations.
You create a MetaField of type string and name it BinLocation.
Use the following code sample:
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2020 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity