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

Sync status icon of particular product does not get change from green to red in backoffice by modifying catalog aware item type instance associated with that product.

Former Member
0 Kudos
1,279

I am using hybris 6.7 and system has two catalog aware item types i.e Product and Product AvailabilityAssignment.

Product and ProductAvailabilityAssignment is having one to many relationship.

Staged Version - Product A is having two productavailabilityassignment instances X and Y.

I changed one attribute value of productAvailabilityAssignment X and save it, but sync icon color does not get change to red of Product A. Although if we synchronize the staged version - Product A then the changes get reflected on online version - product A.

Please suggest how can we change sync icon color to red in this case.

Accepted Solutions (0)

Answers (4)

Answers (4)

shubham_gupta11
Advisor
Advisor
0 Kudos


I have custom attribute(model) at Product level - which is Catalog aware . I tried to provide this custom field in the list of relatedReferencesTypesMap , but its not working for me. Could you please suggest me any other resolution?

vinay_malempati
Active Participant
0 Kudos

You can try doing similar product images as done in OOTB,

 <alias alias="synchronizationService" name="defaultSynchronizationService" />
     <bean id="defaultSynchronizationService"
         class="de.hybris.platform.cockpit.services.sync.impl.SynchronizationServiceImpl"
         autowire="byName">
         <property name="relatedReferencesTypesMap">
             <map>
                 <entry key="Product">
                     <list>
                         <value>Product.galleryImages</value>
                     </list>
                 </entry>
                 <entry key="MediaContainer">
                     <list>
                         <value>MediaContainer.medias</value>
                     </list>
                 </entry>
 </map>
         </property>
     </bean>

Former Member
0 Kudos

Thanks for your reply, but it does not work. Although I have identified the way to get it done by creating prepare interceptor to update the product modified time which helps to unsync the product. Same way is given by OOTB if any price row is updated.

rahulverma94
Active Participant
0 Kudos

,Please look into the method aggregatedStatusFromRelatedItems() from DefaultItemSynchronizationService. It returns SyncItemStatus object.