2018 Jul 30 9:52 AM - edited 2024 Feb 04 6:30 AM
Hello All,
My requirement is to stop incoming products from ERP system to get imported into default product catalog. This import into default product catalog is happening OOB.
I want products in mapped sales product catalog only.
Thanks , Sid
Request clarification before answering.
Hi All,
I wrote one publication handler and returned empty list for particular item. It worked for me. Attaching piece of code as well.
public <T extends CanonicalItem> List<T> group(final T item, final TargetItemCreationContext context)
{
return Collections.emptyList();
}
public <T extends CanonicalItem> boolean isApplicable(final T item, final TargetItemCreationContext context)
{
return "BaseProduct".equals(context.getTargetItemTypeCode());
}
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.