Wednesday 2 March 2016

ATG Sample programming for creating sub-class of a repository item


Extending Catalog Item Types :


Step 1: Extend /atg/commerce/catalog/custom/customCatalog.xml to:
                      a.    Include your subtype by extending type property
                     
<item-descriptor name="sku">
 <table name="dcs_sku">
  <property name="type">
   <option value="childSKU" code="300"/>
  </property>
 </table>
</item-descriptor>             


                      b.    Define the subtype item descriptor and its properties 

<item-descriptor name="child_sku" display-name="child SKU" super-type="sku" sub-type-value="childSKU">
 <table name="child_sku" type="auxiliary" id-column-name="sku_id">
  <property name="size" column-name="size" data-type="string"/>
 </table>
</item-descriptor>



Step 2: Create appropriate tables for the customization done in the step1
           
               IN our example create table "child_sku" with "sku-id" and "size" as columns.

Step 3:  Add the subtype to CatalogTools.
              
              In /atg/commerce/catalog/CatalogTools add the child sku type to "SKUItemTypes" property
               SKUItemTypes+= childSKU


1 comments:

cahyajacy said...

Slots Casino and Sports Betting in San Jose - MapyRO
Explore, 인천광역 출장샵 compare, and chose the best slots casino and sports betting near 동해 출장마사지 San Jose. See if the slot machine games offer you a chance to 동두천 출장마사지 win and if 김제 출장안마 they 광명 출장샵 offer

Post a Comment

 
;