add new cq:commerceType for etc/commerce/products | Community
Skip to main content
New Participant
February 15, 2017
Solved

add new cq:commerceType for etc/commerce/products

  • February 15, 2017
  • 2 replies
  • 2188 views

Hi - My products are laid out by Series -> Product. 

So is there a way to create a new cq:commerceType (for my series). I don't want to have "product" commerceType for series as well. What core files do i need to override to achieve this ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by mhaack

Hello, can you explain what you are trying to achieve by using cq:commerceType = series?

The short answer to your question is: yes, the AEM commerce framework itself supports custom types of cq:commerceType.

The long answer is it depends on two elements:

  • Even the underlying commerce framework supports custom types it depends on your implementation of CommerceService and CommerceSession. I guess you use your own implementation of CommerceService, CommerceSession, Product and the importer classes, so you need handle the series type here. Especially AbstractJcrProduct makes some assumptions about the cq:commerceType and you have to overwrite many methods here or directly implement the Product interface
  • The AEM commerce consoles, editors etc, especially everything related to product search or filtering are working with cq:commerceType = product. They will very likely not show you services in search results or product finder. Here you must implement custom search handlers etc. 

2 replies

mhaack
mhaackAccepted solution
Employee
February 15, 2017

Hello, can you explain what you are trying to achieve by using cq:commerceType = series?

The short answer to your question is: yes, the AEM commerce framework itself supports custom types of cq:commerceType.

The long answer is it depends on two elements:

  • Even the underlying commerce framework supports custom types it depends on your implementation of CommerceService and CommerceSession. I guess you use your own implementation of CommerceService, CommerceSession, Product and the importer classes, so you need handle the series type here. Especially AbstractJcrProduct makes some assumptions about the cq:commerceType and you have to overwrite many methods here or directly implement the Product interface
  • The AEM commerce consoles, editors etc, especially everything related to product search or filtering are working with cq:commerceType = product. They will very likely not show you services in search results or product finder. Here you must implement custom search handlers etc. 
smacdonald2008
New Participant
February 15, 2017

I have asked the ecommerce team to look at this question.