Hi @alexli126 ,
I understand that you’re looking to create product-specific attributes and have found that the current system supports global attributes but not the product level ones. For custom attributes like ‘Color’ and ‘Gender’, by the looks of it, your approach with the code snippet should allow you to add these attributes. The only thing I see that needs to be changed is the use of straight quotes '
rather than curly quotes ‘
If you need further support, please note that we are unable to provide code customization as per our support policy. Still, if you need customization, we do our best to offer advice and direct you to appropriate resources. Based on the feedback we get from our customers we highly recommend contacting one of the services on our Customization page.
Hope this helps!