Skip to Content
0
Former Member
Jul 08, 2014 at 04:08 PM

How to create Price Row for productGroup using something similar to Europe1PricesTranslator?

565 Views

The format we are using to create price rows similar to following (products-prices.impex from yacceleratorinitialdata)

 $productCatalog=__PRODUCT_CATALOG_NAME__
 $catalogVersion=catalogversion(catalog(id[default=$productCatalog]),version[default='Staged'])[unique=true,default='$productCatalog:Staged']
 $prices=Europe1prices[translator=de.hybris.platform.europe1.jalo.impex.Europe1PricesTranslator]
 $approved=approvalstatus(code)[default='approved']
 
 UPDATE Product;code[unique=true];$prices;$approved;$catalogVersion;Europe1PriceFactory_PTG(code)

JavaDocs for Europe1PriceRowTranslator tells us that the syntax for the value to be translated is

         ( ({user}|{userPriceGroup})? {quantity} {unitCode} '=')? 
         {price} ({currencyISO}|{currencySign}) ('B'|'N'|'G')?
         ('['{from}','{to}']')? ({priceRowChannel})?

and that all prices are assigned to the imported product directly.

The question is can we create price row for some productGroup using something similar to Europe1PricesTranslator or should we create Price Rows separately?