Hi again. I'm trying to set multiple price points/levels when creating a new product using php and Web Services, and have tried to follow some of the form posts, but I'm stuck now. My pricing matrix array looks as such:
Array ( [0] => Array ( [pricing] => Array ( [internalId] => 1 ) [priceList] => Array ( [price] => Array ( [value] => 9.00 [quantity] => 0 ) ) ) [1] => Array ( [pricing] => Array ( [internalId] => 1 ) [priceList] => Array ( [price] => Array ( [value] => 8.00 [quantity] => 10 ) ) ) [2] => Array ( [pricing] => Array ( [internalId] => 1 ) [priceList] => Array ( [price] => Array ( [value] => 7.00 [quantity] => 25 ) ) ) [3] => Array ( [pricing] => Array ( [internalId] => 1 ) [priceList] => Array ( [price] => Array ( [value] => 6.00 [quantity] => 50 ) ) ) [4] => Array ( [pricing] => Array ( [internalId] => 1 ) [priceList] => Array ( [price] => Array ( [value] => 5.00 [quantity] => 100 ) ) ) [5] => Array ( [pricing] => Array ( [internalId] => 1 ) [priceList] => Array ( [price] => Array ( [value] => 4.00 [quantity] => 250 ) ) ) [6] => Array ( [pricing] => Array ( [internalId] => 1 ) [priceList] => Array ( [price] => Array ( [value] => 3.00 [quantity] => 500 ) ) ) [7] => Array ( [pricing] => Array ( [internalId] => 2 ) [priceList] => Array ( [price] => Array ( [value] => 8.00 [quantity] => 0 ) ) ) [8] => Array ( [pricing] => Array ( [internalId] => 2 ) [priceList] => Array ( [price] => Array ( [value] => 7.00 [quantity] => 10 ) ) ) [9] => Array ( [pricing] => Array ( [internalId] => 2 ) [priceList] => Array ( [price] => Array ( [value] => 6.00 [quantity] => 25 ) ) ) [10] => Array ( [pricing] => Array ( [internalId] => 2 ) [priceList] => Array ( [price] => Array ( [value] => 5.00 [quantity] => 50 ) ) ) [11] => Array ( [pricing] => Array ( [internalId] => 2 ) [priceList] => Array ( [price] => Array ( [value] => 4.00 [quantity] => 100 ) ) ) [12] => Array ( [pricing] => Array ( [internalId] => 2 ) [priceList] => Array ( [price] => Array ( [value] => 3.00 [quantity] => 250 ) ) ) [13] => Array ( [pricing] => Array ( [internalId] => 2 ) [priceList] => Array ( [price] => Array ( [value] => 2.00 [quantity] => 500 ) ) ) [14] => Array ( [pricing] => Array ( [internalId] => 5 ) [priceList] => Array ( [price] => Array ( [value] => 9.00 [quantity] => 0 ) ) ) [15] => Array ( [pricing] => Array ( [internalId] => 5 ) [priceList] => Array ( [price] => Array ( [value] => 8.00 [quantity] => 10 ) ) ) [16] => Array ( [pricing] => Array ( [internalId] => 5 ) [priceList] => Array ( [price] => Array ( [value] => 7.00 [quantity] => 25 ) ) ) [17] => Array ( [pricing] => Array ( [internalId] => 5 ) [priceList] => Array ( [price] => Array ( [value] => 6.00 [quantity] => 50 ) ) ) [18] => Array ( [pricing] => Array ( [internalId] => 5 ) [priceList] => Array ( [price] => Array ( [value] => 5.00 [quantity] => 100 ) ) ) [19] => Array ( [pricing] => Array ( [internalId] => 5 ) [priceList] => Array ( [price] => Array ( [value] => 4.00 [quantity] => 250 ) ) ) [20] => Array ( [pricing] => Array ( [internalId] => 5 ) [priceList] => Array ( [price] => Array ( [value] => 3.00 [quantity] => 500 ) ) ) )
And when I try to create the item, I'm getting the following error:Fatal error: Uncaught exception 'Exception' with message ' was not found in directory. Argument = PricingMatrix/priceList' in /webserver/vhosts/webservices/phpinclude/PHP_Toolkit/PHPtoolkit.php:2057
Stack trace:
#0 /webserver/vhosts/webservices/phpinclude/PHP_Toolkit/PHPtoolkit.php(113): getFieldType('PricingMatrix/p...', NULL)
#1 /webserver/vhosts/webservices/phpinclude/PHP_Toolkit/PHPtoolkit.php(143): nsComplexObject->getFieldType('PricingMatrix/p...')
#2 /webserver/vhosts/webservices/phpinclude/PHP_Toolkit/PHPtoolkit.php(141): nsComplexObject->getSoapVar()
#3 /webserver/vhosts/webservices/phpinclude/PHP_Toolkit/PHPtoolkit.php(1218): nsComplexObject->getSoapVar()
#4 /webserver/vhosts/webservices/docs/new_product.php(186): nsClient->add(Object(nsComplexObject))
#5 {main}
thrown in /webserver/vhosts/webservices/phpinclude/PHP_Toolkit/PHPtoolkit.php on line 2057
I see that I need to do something with "priceList", but I can't figure out what. TIA.