API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

how to get the selected products.....

Hi experts,

i am connected my webshop with e-conomic,
if the customer purchase the items form webshop,
i want to get all the items of the corresponding customer in my e-conomic site..
for that i use the bellow code..

$productHandle = $client-Product_FindByName(array('name' = $product['name']), $newDebtorHandle)-Product_FindByNameResult;

print_r($productHandle);//stdClass Object ( )  

after that i want to call this function also...OrderLine_CreateFromData(array ...

it can not show the result of purchased goods
how to solve this problem...
created Mar 11, 2013 by sudheerphp
22% Accept Rate
Q 14 A 10 C 0

2 Answers

i got this error :

 string(122) Economic.Api.Exceptions.ServerException(E00000): An internal error has occurred. (id=846c27ec-93ab-4e11-aeee-4ce54220cdfc)  

how to fix this ,
how to include product reference ...
answered Mar 11, 2013 by sudheerphp

$productHandle = $client-Product_FindByName(array('name' = $product'name'), $newDebtorHandle)-Product_FindByNameResult;

I don't think you can do it like that.
I belive it only accept the product name to search for.

$productHandle = $client-Product_FindByName(array('name' = $product'name'))-Product_FindByNameResult;
answered Mar 18, 2013 by PhpMadman
Visma e-conomic A/S