on ‎2018 Sep 19 9:23 PM
What is the best way to restrict a product attribute While Doing the Synchronization from staged to online
Request clarification before answering.
Login to backoffice and select 'System>Multithreaded Synchronization' from the left panel
Select the desired synchronization code from the right panel
Open 'ADMINISTRATION' tab and scroll down to find 'Sync attribute configurations'
Double click the attribute (e.g. Product [Product] -> Product reviews [productReviews] in sync : sync apparelProductCatalog:Staged->Online) whose synchronization is required to be controlled.
Select True/False value for 'Synchronize' on this page and click 'SAVE'. [Note: Once, you are on this page, you can find all the product attributes on the right side and you can select another attribute from here itself instead of going back to the previous window (i.e. 'ADMINSTRATION' tab)]
You can also do it using an ImpEx script e.g. by importing the following ImpEx, you can stop manufacturerName of the product to be synchronized from Staged to Online catalogVersion in electronicsProductCatalog.
UPDATE SyncAttributeDescriptorConfig;syncJob(code)[unique=true,path-delimiter=!];attributeDescriptor(enclosingType(code),qualifier)[unique=true];includedInSync
;"sync electronicsProductCatalog:Staged->Online";Product:manufacturerName;false
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We did it in this way:
1) Create an item "outbound channel" in order to define the synchronization filter. Item could have these attributes:
source catalog
target catalog
list of products
list of attributes
2) create a "synchronization user" with search-restrictions for products, attributes and product-features joining the lists of appropriate outbound channel.
3) Run the synchronization only with this synchronization user. (you could define it at the job.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dileep, You can restrict any specific attribute sync with the below impex
#Product model exempted properties for sync from staged to online
INSERT_UPDATE SyncAttributeDescriptorConfig;syncJob($sourceProductCV, $targetProductCV)[unique=true];attributeDescriptor(enclosingType(code), qualifier)[unique=true];includedInSync;copyByValue
;;Product:attributeQualifier;false;false
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.