cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

items.xml file for storefront extension

Former Member
0 Likes
810

Hi,

I need to create an items.xml file in my new storefornt.I have created xml and XSD file for tha. But the Models are not created for the new types that I have created in items.xml. Please Let me know where I need to change so that it will create my models

Accepted Solutions (1)

Accepted Solutions (1)

andyfletcher
Active Contributor
0 Likes

Extensions generated from the yacceleratorstorefront template are not coremodule extensions so don't have an items.xml file.

Compare the extensioninfo.xml file for your storefront extension and another e.g. your xxxcore or xxxfacades extension, or even just something like commerceservices.

Notice that there is a <coremodule> tag in the ones that have items.xml files but not in your storefront extension which only has a <webmodule> tag to indicate that it is just a web context.

e.g.

 <coremodule generated="true" manager="de.hybris.platform.commerceservices.jalo.CommerceServicesManager" packageroot="de.hybris.platform.commerceservices"/>
Former Member
0 Likes

Thank you so much It really solved my problem.

Answers (2)

Answers (2)

arvind-kumar_avinash
Active Contributor
0 Likes

You should not create an items.xml in an extension created using yacceleratorstorefront as a template. You should use an extension created using yacceleratorstorefront for web related things. Please go through https://help.hybris.com/1808/hcd/8afb4cf986691014b339d7981bf96587.html to understand it thoroughly. Please search xs:element name="coremodule" and xs:element name="webmodule" in the extensioninfo.xsd and understand the purpose of webmodule and coremodule. You should put your item types in the items.xml of an extension having coremodule.

You can also go to https://help.hybris.com/1808/hcd/8bc0c14886691014a0d4f274a720596f.html and type 'yaccelerator' in the 'Search the entire table' box and it will highlight all the extensions/templates starting with 'yaccelerator'. There you can understand the purpose of each of the extension/template further.

Former Member
0 Likes

Thank you so much .It worked .

Former Member
0 Likes

Hi Arvind, I have created an extension with yacceleratorstorefront as a template which will not have an items.xml file