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

Can we restrict a product attribute while doing the synchronization staged to online

Former Member
0 Likes
997

What is the best way to restrict a product attribute While Doing the Synchronization from staged to online

Accepted Solutions (1)

Accepted Solutions (1)

arvind-kumar_avinash
Active Contributor
0 Likes
  1. Login to backoffice and select 'System>Multithreaded Synchronization' from the left panel

  2. Select the desired synchronization code from the right panel

  3. Open 'ADMINISTRATION' tab and scroll down to find 'Sync attribute configurations'

  4. Double click the attribute (e.g. Product [Product] -> Product reviews [productReviews] in sync : sync apparelProductCatalog:Staged->Online) whose synchronization is required to be controlled.

  5. 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

Answers (2)

Answers (2)

Former Member
0 Likes

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.)

vinay_malempati
Active Participant
0 Likes

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
Former Member
0 Likes

This also Accepted Answer