Guide - 7.9 Product Migration

1 Introduction

In Intershop 7.9 some old product attributes (image, thumbnail) got removed:

  • In Intershop 7.0 a new Image Framework was introduced.
  • It replaced the old image attributes stored directly in the tables PRODUCT and DERIVEDPRODUCT.
  • Hence, the image and thumbnail tag was removed from the product import/export XML format.
  • Use getImageContainerBO().getImageBO() to retrieve images via new Image Framework!

A migration is only needed if your IS 7.8 installation still contains image and thumbnail attributes stored in tables PRODUCT and DERIVEDPRODUCT.


Since Intershop 7.0 we strongly recommended to use the Image Framework for storing images. It is far more flexible and can also point to external image servers as an image source.

A DBMigrate script to version 7.9 exists to remove image and thumbnail attributes from tables PRODUCT and DERIVEDPRODUCT.

1.1 References

2 Effort | Complexity | Priority

Effort (Low, Medium, High):


Complexity (Low, Medium, High):


Priority (Low, Medium, High):


3 New import and export XML format

A majority of Intershop customers uses a PIM system (Product Information Management). The exported XML needs to be adapted to the new schema %IS_SHARE%/system/impex/schema/catalog.xsd. The changes in the schema from Intershop 7.8 to Intershop 7.9 are:


<xsd:element name="image" type="simpleType.Generic.String.256" minOccurs="0" maxOccurs="1" />

the former optional parameter image was removed and is no longer supported

<xsd:element name="thumbnail" type="simpleType.Generic.String.256" minOccurs="0" maxOccurs="1" />

the former optional parameter thumbnail was removed and is no longer supported

4 Migration

  1. To migrate 'old' image and thumbnail attributes stored in tables PRODUCT and DERIVEDPRODUCT image types/views and sets must be created either in the Commerce Management application or via DBInit.
  2. The old "image" and "thumbnail" product attributes must be stored as image reference for a predefined Image Type and Image View.

4.1 Create Image Type, View and Set

Use the Concept - Image Framework (valid to 7.4) for details on how to do that.

Example for how to create Image Type, Image View and Image Set via DBInit.
# Prepare image types/views/sets for example application
Class59 = com.intershop.beehive.core.dbinit.preparer.impex.ImportPreparer \
          ProcessImageMetadataImport-DBInit \

Extraction of XML file content

<image-view id="front" primary-view="true">        
		<name xml:lang="en-US">Front View</name>
            <image-type-assignment image-type="L" />
            <image-type-assignment image-type="M" />
            <image-type-assignment image-type="S" />
            <image-type-assignment image-type="Thumbnail" />
<image-type id="Thumbnail" source="Internal">
        <name xml:lang="en-US">Thumbnail</name>
            <custom-attribute name="name" dt:dt="string" xml:lang="en-US">Thumbnail</custom-attribute>

4.2 Create Image for Product

Example for product import XML file content:

Example for product import XML
<enfinity xsi:schemaLocation=" catalog.xsd dt.xsd" xmlns:xsi="" xmlns="" xmlns:xml="" xmlns:dt="" major="6" minor="1" family="enfinity" branch="enterprise" build="build">
<product sku="8004569">
 xml:lang="de-DE">Mit dem richtigen Netzteil können Sie die 
Lebensdauer und Zuverlässigkeit Ihres Computers beeinflussen. ... Die 
tatsächliche Lastanzeige kann bei abweichender Raumtemperatur anders 
<name xml:lang="de-DE">A-DATA HM-750</name>
<short-description xml:lang="de-DE">Netzteil 750W HM-Serie</short-description>
 xml:lang="en-US">State of the Art and Neat Design The load status 
display of the intelligent tri-color (Green, Blue, Red) LED fan is 
resulted from testing in the normal temperature of 25 °C. ... The actual
 load display may vary by the room temperature where in 
<name xml:lang="en-US">A-DATA HM-750</name>
<short-description xml:lang="en-US">750W HM Series Power Supply</short-description>
<category-link name="963" domain="inSPIRED-Computers" default = "1" hotdeal = "0"/>

        <image-ref image-view="front" image-type="Thumbnail" image-base-name="Thumbnail/8004569_2476.jpg" />

        <image-ref image-view="front" image-type="M" image-base-name="M/8004569-9395.jpg" />

<product-list-price currency="USD" net-price="1">129.99</product-list-price>
<product-list-price currency="EUR" net-price="1">96.81</product-list-price>
<tax-class id = "FullTax"/>
<product-type name = "Basic" domain = "system"/>
<custom-attribute name="AvailabilityStatus" dt:dt="int">1</custom-attribute>
<custom-attribute name="GiftWrappable" dt:dt="boolean">true</custom-attribute>
<custom-attribute name="Weight" dt:dt="quantity" xml:lang="en-US">3060 g</custom-attribute>

5 How to Access an Image

5.1 In Java

5.1.1 Via Business Object Layer

  1. Access the product image via image framework (BO layer).


5.1.2 Via Persistent Object Layer

  1. Access product image via image framework (PO layer).
    Using the BO layer is an easier way to get images related to a product

    Iterator<ImageReference> theImageReferenceIter = product.createImageReferencesIterator();
    ImageReference aImageRef =;
    // compare image type(e.g.: 'S') and image view(e.g.: 'front') of imageReference to get the right one
    // 'getImageBaseName()' doesn't return the same result as '.getEffectiveUrl()'
    // - depends on internal or external image source type

5.2 In ISML-Templates

<img src="<isprint value="#ProductBO:Extension("Image"):ImageContainerBO:ImageBO("S","front"):EffectiveUrl#>">
<isinclude template="modules/common/Modules">
<isImage imagecontainer="#ProductBO:Extension("Image"):ImageContainerBO#" imagetypeid="Thumbnail" imageview="front">
<isinclude template="modules/Modules">
<ISProductImage ProductBO="#ProductBO#" ImageType="M" ImageView="back">
<ISProductImage ProductBO="#ProductBO#" ImageType="Thumbnail">
for category images
<ISCategoryImage category="#CategoryBO#" imagetypeid="M">

5.3 In Pipelines



The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

Customer Support
Knowledge Base
Product Resources
Support Tickets