Hybris: Adding a new attribute to edit view area in Product Cockpit.
I was working on a Project and there was a requirement to add a new attribute in edit view area In Product Cockpit.
I followed these few step to do this task.
1.Create a new Model e.g MyProduct that extends ProductModel in Items.xml, add attribute in this model e.g:
“<itemtype code=”MyProduct” extends=”Product”>
<description>my product that contains additional attributes.</description>
<attributes>
<attribute qualifier=”attribute1″ type=”localized:java.lang.String”>
<description>example for product cockpit</description>
</attribute>
</attributes>
</itemtype>”
after this,Build the project and start the server, do Update running system from Hac.
Hybris: Add some product in your “Myproduct” Model.
2.Create a editorArea_MyProduct.xml file in your Cockpit extension and add key for new attribute in xml file
3. Localized the key name in ProjetcNamecockpits-locales_en.properties and i3-label.properties file.
4.Restart the server and do update from HAC. Open ProductCockpit in url “http://localhost:9001/productcockpit” and search your product which you added in “MyProduct” model .
5.Open that product and in left side you will find your new attribute in Editor_area.
I was working on a Project and there was a requirement to add a new attribute in edit view area In Product Cockpit.
I followed these few step to do this task.
1.Create a new Model e.g MyProduct that extends ProductModel in Items.xml, add attribute in this model e.g:
“<itemtype code=”MyProduct” extends=”Product”>
<description>my product that contains additional attributes.</description>
<attributes>
<attribute qualifier=”attribute1″ type=”localized:java.lang.String”>
<description>example for product cockpit</description>
</attribute>
</attributes>
</itemtype>”
after this,Build the project and start the server, do Update running system from Hac.
Hybris: Add some product in your “Myproduct” Model.
2.Create a editorArea_MyProduct.xml file in your Cockpit extension and add key for new attribute in xml file
3. Localized the key name in ProjetcNamecockpits-locales_en.properties and i3-label.properties file.
4.Restart the server and do update from HAC. Open ProductCockpit in url “http://localhost:9001/productcockpit” and search your product which you added in “MyProduct” model .
5.Open that product and in left side you will find your new attribute in Editor_area.
How to create custom banners could you post
ReplyDeleteHow to create custom banners could you post
ReplyDeleteNice experience while reading the concept...
ReplyDelete