on 2018 Jul 31 9:13 PM
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.
Request clarification before answering.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
,Please look into the method aggregatedStatusFromRelatedItems() from DefaultItemSynchronizationService. It returns SyncItemStatus object.
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.