cancel
Showing results for 
Search instead for 
Did you mean: 

How to relate product variant attributes options to product

Former Member
0 Kudos

I want to add some checkbox against some attributes -which are attribute columns in product table

Direct solution is adding column for each attributes with Boolean, but as it is too many attribute I want to create a table for this entry and to relate to with product table. how to do I achive this?

If I use relationship/entity the display will change? seems that will display as new table?

I want to maintain the same screen as I attached.

The Key Features attributes shown is attached screens are column of product table

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

'Input Voltage" is a Type object(jalo item class) - 'value' , 'ShowInIntranet' ,'ShowInInternet' are attributes (See attached screen) then how I will display the attributes like attached screen ? , which editor I should use?. 'Input Voltage" is a type under another type 'Product' Below is my my configuration. hmc.xml


   <organizer>
      <search mode="append">
         <condition attribute="code"></condition>
      </search>
      <result defaultview="list">
         <listview>
            <itemlayout mode="replace">
               <attribute name="code" width="150"></attribute>
               <attribute name="name" width="150"></attribute>
               <attribute name="catalogVersion" width="170"></attribute>
               <attribute name="approvalStatus" width="100"></attribute>
               <attribute name="showInProductSelector" width="50"></attribute>
            </itemlayout>
         </listview>
      </result>
      <editor>
         <tab name="tab.product.properties" position="1" mode="delete"></tab>
         <tab name="tab.product.categorysystem" position="3" mode="delete"></tab>
         <tab name="tab.product.prices" position="4" mode="delete"></tab>
         <tab name="tab.product.multimedia" position="5" mode="delete"></tab>
         <tab name="tab.product.variants" position="6" mode="delete"></tab>
         <tab name="tab.product.extendedattributes" position="7" mode="delete"></tab>
         <tab name="tab.product.versions" position="8" mode="delete"></tab>
         <tab name="tab.product.bmecat" position="9" mode="delete"></tab>
        <tab name="tab.product.technicalattributes" mode="replace" position="2">
         
          <section name="section.product.classifiedattributes">
               <listlayout>
         ..........
         ...........
 <tab name="tab.product.additionalattributes" mode="replace" position="3">               
            <section name="section.keyfeatures" position="3">
                   <table>
         <tr>
          <td width="200px"> 
            <attribute name="InputVoltages" mode="append">
                         <referenceeditor>
                         </referenceeditor>
                         </attribute> 
         </td>
         </tr>
          </table>
      ..........
      ............ 







Former Member
0 Kudos

Can you give more background on what you would like to achieve?

With the screenshots you are showing a product in hMC with classification attributes. But classification attributes are something different from product variants. And it's not (easily) possible to show/hide classification attributes in that way. And it's not recommendable to do that in hMC I would say.

And then it is unclear what Intranet / Extranet means, what's is the use case? So what sort of attributes of what kind of products should be displayed to who and who will configure this where and why? ;-)

Former Member
0 Kudos

Intranet /Internet means we are delivering this content to internet channel as well as intranet channel We are using classification attributes for product variants. WIth the existing application design is alike that ,.we know it is not good design , because all classification attributes(show in screen) are part of product model.(same table) , no relation mapping

Now with this design how I archive to store some Boolean (flag) to decide which all attributes should available in frontend (internet/Intranet)

Former Member
0 Kudos

'Input Voltage" is a Type object(jalo item class) - 'value' , 'ShowInIntranet' ,'ShowInInternet' are attributes (See attached screen) then how I will display the attributes like attached screen ? , which editor I should use?. 'Input Voltage" is a type under another type 'Product' Below is my my configuration. hmc.xml

 <organizer>
 <search mode="append">
 <condition attribute="code"></condition>
 </search>
 <result defaultview="list">
 <listview>
 <itemlayout mode="replace">
 <attribute name="code" width="150"></attribute>
 <attribute name="name" width="150"></attribute>
 <attribute name="catalogVersion" width="170"></attribute>
 <attribute name="approvalStatus" width="100"></attribute>
 <attribute name="showInProductSelector" width="50"></attribute>
 </itemlayout>
 </listview>
 </result>
 <editor>
 <tab name="tab.product.properties" position="1" mode="delete"></tab>
 <tab name="tab.product.categorysystem" position="3" mode="delete"></tab>
 <tab name="tab.product.prices" position="4" mode="delete"></tab>
 <tab name="tab.product.multimedia" position="5" mode="delete"></tab>
 <tab name="tab.product.variants" position="6" mode="delete"></tab>
 <tab name="tab.product.extendedattributes" position="7" mode="delete"></tab>
 <tab name="tab.product.versions" position="8" mode="delete"></tab>
 <tab name="tab.product.bmecat" position="9" mode="delete"></tab>
 <tab name="tab.product.technicalattributes" mode="replace" position="2">
  
 <section name="section.product.classifiedattributes">
 <listlayout>
 ..........
 ...........
 <tab name="tab.product.additionalattributes" mode="replace" position="3">
 <section name="section.keyfeatures" position="3">
 <table>
 <tr>
 <td width="200px">
 <attribute name="InputVoltages" mode="append">
 <referenceeditor>
 </referenceeditor>
 </attribute>
 </td>
 </tr>
 </table>
 ..........
 ............