on ‎2018 Nov 29 7:16 AM
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?
Request clarification before answering.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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)
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)
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 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.