07-30-2018 9:52 AM - edited 02-04-2024 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
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.
User | Count |
---|---|
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.