Closed
Description
Is your feature request related to a problem?
Hotcakes Commerce is a very flexible e-commerce platform, allowing implementors to fine-tune and customize how it works to fit most online shopping scenarios. Part of the way it does this is through extensibility and special API features.
For example, if you need to store details for third-party integrations and customized order workflows, you're able to store special properties for Products
, LineItems
, and Orders
. This is not currently possible to do for Variants
.
Adding this feature will allow implementors and developers to further customize the implementation and user experience when variants are involved.
Describe the solution you'd like
- Add a
TextArea
to theVariant
edit pop-up (see image below), labeledCustom Properties
. - Add a new column to the
hcc_Variants
database table,[CustomProperties] NVARCHAR(MAX)
. - The property name in the DAL and API should be
CustomProperties
as well. - The REST API shall be updated to include this new property.
CustomProperties
shall NOT be included in the search index.- When saving the variant popup, the new
TextArea
will save the input to theCustomProperties
field in DAL using the same pattern(s) as the rest of the existing API. - When implementing a new store, both API and viewset developers should be able to easily access this new property in their respective classes and view models.