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

Is there a way to clone Product Catalog Data from Staged to Online without running the Sync Job?

Former Member
0 Likes
781

Our requirement is to feed product data to Staged version of Product Catalog and then based on a flag,if found True,clone to the Online Catalog.Is there a way to achieve this without running the Sync Job?

Accepted Solutions (0)

Answers (1)

Answers (1)

mpern
Product and Topic Expert
Product and Topic Expert
0 Likes

Why don't you just restrict the catalog sync to the products with the special flag?

To do that, apply a restriction on the sync job as described here:

https://help.hybris.com/1808/hcd/8b9ce4868669101499b2f0f25ef9395f.html#cronjob-technicalguide-usingr...

Former Member
0 Likes

Thanks for the answer but the requirement is to maintain Staged and Online version of a product but without running sync job.What I have done is creating Staged product and then copy the attributes one by one in Online version of product which I have created.Apart from attributes,I have copied price rows,media to the online version.What I want is is there any OOTB code where if I pass Staged product pk,It will create online version in one go.

mpern
Product and Topic Expert
Product and Topic Expert
0 Likes

What I want is is there any OOTB code where if I pass Staged product pk,It will create online version in one go.

that is the definition of the catalog sync.

You can run a partial sync for specific items:

CatalogSynchronizationService.performSynchronization(java.util.List<ItemModel> givenItems, SyncItemJobModel syncItemJob, SyncConfig syncConfig)

Help

Javadoc

IIRC, you have to take care to include all related items for a product (price rows, medias etc) or configure a (new) sync job where activate "copy by value" for all attributes that should be included in the sync (e.g. activate it for the categories, medias etc)