Choose prices to import
-
Hello!
First of all, thank you for the awesome plugin! It’s great pleasure to work with it.
I need some help with price import. My supplier has 5 stocks in different cities. E.g. DMD-rozn, SK2-rozn, SK3-rozn etc. One product may be in several places or in one place, all with the same price. Here are examples of my xml:<cae>212924</cae> <price_sk2_rozn>4562</price_sk2_rozn> <price_dmd_rozn>4562</price_dmd_rozn> <name>225/65R17 106H XL SUV Summer TL</name> <brand>Kormoran</brand>
<cae>0357175</cae> <price_sk3_rozn>15480</price_sk3_rozn> <price_sk2_rozn>15480</price_sk2_rozn> <name>245/35ZR19 93(Y) XL SportContact 6 FR</name> <brand>Continental</brand>
I need to import the available price into my Regular price field. If I choose {price_dmd_rozn} as a Regular price, I get prices only for those products, which are in stock in DMD, others are imported with empty prices. How do I get prices right? I tried some things. First, I tried to put this in my Regular price field:
[IF({price[.='']})]{price_dmd_rozn}[ELSE]{price}[ENDIF] [IF({price_dmd_rozn[.='']})]{price_sk2_rozn}[ELSE]{price_dmd_rozn}[ENDIF] [IF({price_sk2_rozn[.='']})]{price_sk3_rozn}[ELSE]{price_sk2_rozn}[ENDIF] [IF({price_sk3_rozn[.='']})]{price_sk4_rozn}[ELSE]{price_sk3_rozn}[ENDIF]
As an example result, I got Regular price: 31003100, as the item is in stock in 2 cities with price 3100.
Next time I tried ELSEIF:
[IF({price[.='']})]{price_dmd_rozn}[ELSEIF({price_dmd_rozn[.='']})]{price_sk2_rozn}[ELSEIF({price_sk2_rozn[.='']})]{price_sk3_rozn}[ELSEIF({price_sk3_rozn[.='']})]{price_sk4_rozn}[ELSE]{price}[ENDIF]
As the result, I again got prices not for all products.
I am really upset and have no idea what I do wrong ??
Will be grateful for your help and support!
- The topic ‘Choose prices to import’ is closed to new replies.