delphi - Magento Import of tier prices with SOAP API V2 doesnt work -


hope here. try create tier prices in magento groups using soap api v2. using version 1.9.0.0 of magento developing delphi, using wsdl.

what following, looping through tier prices of erp system:

mycatalogproducttierpriceentity := catalogproducttierpriceentity.create; mycatalogproducttierpriceentity.customer_group_id := group_price_mage_group_id; mycatalogproducttierpriceentity.website := inttostr(website_id); mycatalogproducttierpriceentity.qty := round(winlineartikelstaffelmenge); mycatalogproducttierpriceentity.price := 2.85;//winlineartikelstaffelkundenpreis; mycatalogproducttierpriceentityarray[j] := mycatalogproducttierpriceentity; inc(j); mycatalogproducttierpriceentity := nil; 

finally assign price array product entity:

mycatalogproductcreateentity.tier_price := mycatalogproducttierpriceentityarray; 

but prices wont show in magento admin, no error listed… either on creating product or updating it. other fields updated / created correctly.

i made test , entered 2 group tier prices in backend both group “retailer”

then tried product info via soap call “catalogproductinfo”. on debugging looked inside result set , see 2 tier prices, without group specified , without quantity specified, although can see in backend…

anybody idea of wrong ?

best regards holger

ok, found solution on own... api calls totally correct. there setting in magento administration (system->configuration->catalog) can define price range. default setting "global" has switched "website". setting, customer group tier prices can written.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -