on ‎2019 Jul 01 10:11 PM
I have "UNFSIze2VariantProduct"-Type-which extends UNFStylevariantproduct . UNFStylevariantproduct have an attribute 'swatchColour'. I want to remove swatchColour in UNFSIze2VariantProduct in hmc. I tried replace and delete,but didnot work. Can you please help?
Request clarification before answering.
You can add the following custom property for this attribute:
<custom-properties>
<property name="hiddenForUI">
<value>Boolean.TRUE</value>
</property>
</custom-properties>
Please check core-items.xml for some examples.
Alternatively, you can import the following ImpEx:
INSERT_UPDATE AttributeDescriptor;qualifier[unique=true];enclosingType(code)[unique=true];hiddenForUI
;swatchColour;UNFStylevariantproduct;TRUE
If this doesn't work, rewrite/redefine the item in your extension's hmc.xml excluding the section which has swatchColor i.e. copy the complete tree of <type name="... and paste it in your extension's hmc.xml and remove the section which has swatchColor from this. Finally, execute ant clean all updatesystem and restart the server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rukmini - could you please replace UNFSize2VariantProduct with UNFStylevariantproduct in the ImpEx and import again?
INSERT_UPDATE AttributeDescriptor;qualifier[unique=true];enclosingType(code)[unique=true];hiddenForUI
;swatchColour;UNFStylevariantproduct;TRUE
Note: I have also updated it my original answer.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.