cancel
Showing results for 
Search instead for 
Did you mean: 

Help importing multiple pricerows that differ by scale(minqtd)

Former Member
0 Kudos

I am trying to create an impex that will add 2 prices rows to a product that differ only by the scale(minqtd) value.

$masterCatalog=masterCatalog $version=Staged $masterCatalogVersion=catalogversion(catalog(id[default=$masterCatalog]),version[default=$version])[unique=true,default=$masterCatalog:$version] $prices=Europe1prices[translator=de.hybris.platform.europe1.jalo.impex.Europe1PricesTranslator] $approved=approvalstatus(code)[default='approved']

INSERT_UPDATE Product;code[unique=true];$prices;$approved;$masterCatalogVersion;Europe1PriceFactory_PTG(code) ;DP;1 pieces =25 USD N; ;DP;5 pieces =20 USD N;

Only one PriceRow is added to the product and it is the last one processed. Any suggestions?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Cully,

Here is the simplest impex import

 #
 # 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]
  
 #
 # Products including Prices
 #
 INSERT_UPDATE Product; code[unique=true]; $catalogVersion;$prices;unit(code[default=pieces]);
 ;284533;electronicsProductCatalog:Staged;1 pieces = 85 EUR, 2 pieces = 99 EUR; pieces;
Former Member
0 Kudos

That did it. Thank you!

Is that documented somewhere? I was unable to find it searching the hybris site.

Answers (0)