Skip to Content
Former Member
May 24, 2016 at 04:42 AM

Add attributes to existing product type



I am a bit confused on how to accomplish this.

I want to have a new attribute on the product cockpit when editing a existin product type. And I also want to have this new attribute on the rest response.

I had created a custom extension for OCC and inside myextension-items.xml I added the following:

 <itemtype code="Product" generate="false" autocreate="false">
         <attribute qualifier="url_key" type="localized:java.lang.String">
             <modifiers read="true" write="true" search="true" optional="true" private="true"/>
             <persistence type="property"/>

Then compiled and updated. Do I need to do anything else? I don't see the field anywhere.

Thanks for the help