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

[Smartedit] Attribute of type Product don't editable in editor

Former Member
0 Likes
1,339

I have a CMS Component (so it extends SimpleCMSComponent), whose editing works in smartedit. The component has a Product attribute to select a single product from the catalog version. Although the component editing form is visible in smartedit, no edit widget is visible for the attribute above, but only the word "Actega Product Catalog" and below it the name of the attribute.

Let's say that the name of the component is TypeComponent and the name of the attribute is productAttribute, the definition of the itemtype TypeComponent is about this:

 <itemtype code="TypeComponent" extends="SimpleCMSComponent">
     ...
     <attributes>
         <attribute qualifier="productAttribute" type="Product">
             <persistence type="property" />
             <description>Attribute of type Product</description>
             <modifiers read="true" write="true" />
         </attribute>
     </attributes>
 </itemtype>

I tried to apply the following according to the official guide, but it didn't work:

 <bean class="de.hybris.platform.cmsfacades.types.service.impl.DefaultComponentTypeAttributeStructure" p:typecode="TypeComponent" p:qualifier="productAttribute">
     <property name="populators">
         <set>
             <ref bean="productTypeAttributePopulator" />
         </set>
     </property>
 </bean>

Applying the code above only attribute name label is visible, without any possible iteration. I also tried to use "multiProductSelectorPopulator" as populator and the "+Add Product" button appears and hit it i can also choose the catalog version, but no product is found from Product selection box.

I also tried the one above together with this populator "productCatalogVersionsSelectorPopulator", but it behaves like in the case of "productTypeAttributePopulator" above.

Do you have any corrections to display the widget correctly for this? thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

mpern
Product and Topic Expert
Product and Topic Expert
0 Likes

Known bug, the attribute has to be named product for the smartedit editor to work.

https://jira.hybris.com/browse/ECP-3106

Former Member
0 Likes

It's good! Now it work fine. Thanks

mpern
Product and Topic Expert
Product and Topic Expert
0 Likes

Great! What did you do to finally get it working?

Former Member
0 Likes

I simply changed the name of the attribute to "product" as you advised me. Thank you :)