Technical Overview

See the technical overview about channel-specific pricing.

Once the system is initialized, a new dynamic enumeration is created (PriceRowChannel). This enumeration is defined in europe1-items.xml:

europe1-items.xml

<enumtypes>
	<enumtype code="PriceRowChannel" autocreate="true" generate="true" dynamic="true">
		<!-- Default Values to support Mobile channel and desktop channel -->
		<value code="desktop"/>
		<value code="mobile"/>
	</enumtype>
</enumtypes>

The europe1 extension uses the values defined in this enumeration to match with the new PriceRow channel attribute. If you are using an impex to load data into the system, the channel attribute needs to be consistent with the PriceRowChannel enumeration.

The following impex examples create PriceRows with the channel information directly in the database.

Impex Example Using PriceRow Attribute

#
# Macro definitions
#
$catalogVersion=catalogVersion(catalog(id[default='electronicsProductCatalog']),version[default='Online'])[unique=true,default='electronicsProductCatalog:Online']

#
# Some pricerows created using the PriceRow entity
#
INSERT_UPDATE PriceRow;$catalogVersion;unit(code);price;currency(isocode)[unique=true];channel(code)[unique=true];product(code,$catalogVersion)[unique=true]
;;pieces;20.00;USD;;107701
;;pieces;12.34;USD;"mobile";107701
;;pieces;15.00;USD;"desktop";107701

Impex Example Using the Product Managed Object

#
# Macro definitions
#
$catalogVersion=catalogVersion(catalog(id[default='electronicsProductCatalog']),version[default='Staged'])[unique=true,default='electronicsProductCatalog:Staged']
$prices=europe1Prices[translator=de.hybris.platform.europe1.jalo.impex.Europe1PricesTranslator]

#
# Some pricerows created using the Product entity
#
INSERT_UPDATE Product;code[unique=true];$catalogVersion;$prices;
;1934793;electronicsProductCatalog:Online;"1 pieces = 10.00 USD mobile, 1 pieces = 20.00 USD desktop, 1 pieces = 30.00 USD, 1 pieces = 20.00 EUR desktop, 1 pieces = 20.00 EUR mobile";