hi experts,
Q1)How to get the product details and order related information for particular customer which is purchased goods in website and connnected to e-conomic.???
Q2)what is orderLine(),createorder Form data()??
Q3)if suppose the customer purchase more than 1 item ,how to show the product information on the pdf format of order sheet.
This the code which is i wrote ...
$debtorGroupHandles = $client->debtorGroup_GetAll()->DebtorGroup_GetAllResult->DebtorGroupHandle;
$firstDebtorGroup = $debtorGroupHandles[0];
//print_r($firstDebtorGroup);
// print_r($text_logged);
$newDebtorHandle = $client->Debtor_Create(array(
'number' => $row['customer_id'],
'debtorGroupHandle' => $firstDebtorGroup,
'name' => $row['firstname'],
'vatZone' => $vat_zone))->Debtor_CreateResult;
echo'debtor created';
$orderno = $client->Order_Create(array('debtorHandle' => $newDebtorHandle))->Order_CreateResult;
$orderline = $client->OrderLine_Create(array("orderHandle" => $orderno))->OrderLine_CreateResult;
//for setting postal code delivary location etc..
$client ->Order_SetDeliveryPostalCode(array('orderHandle'=> $orderline, 'value' => $row['shipping_postcode']));
$client ->Order_SetDeliveryCity(array('orderHandle'=> $orderline, 'value' => $row['shipping_city']));
$client ->Order_SetDeliveryCountry(array('orderHandle'=> $orderline, 'value' => $row['shipping_country']));
$client ->Order_SetTermsOfDelivery(array('orderHandle'=> $orderline, 'value' => 'Once Deliveried,Cont return Money Back'));
$client ->Order_SetDeliveryDate(array('orderHandle'=> $orderline, 'value' => date('Y-m-d\TH:i:s')));
$client ->Order_SetDeliveryAddress(array('orderHandle'=> $orderline, 'value' => $row['shipping_address_1']));
$client ->Order_SetDeliveryAddress(array('orderHandle'=> $orderline, 'value' => $row['shipping_address_2']));
// for getting products of a customer in e-conomic......
it works when one product purchase by customer..but more than one products its showing error on 'vatZone' => $vat_zone line..
can any one help me out please..??
Q1)How to get the product details and order related information for particular customer which is purchased goods in website and connnected to e-conomic.???
Q2)what is orderLine(),createorder Form data()??
Q3)if suppose the customer purchase more than 1 item ,how to show the product information on the pdf format of order sheet.
This the code which is i wrote ...
$debtorGroupHandles = $client->debtorGroup_GetAll()->DebtorGroup_GetAllResult->DebtorGroupHandle;
$firstDebtorGroup = $debtorGroupHandles[0];
//print_r($firstDebtorGroup);
// print_r($text_logged);
$newDebtorHandle = $client->Debtor_Create(array(
'number' => $row['customer_id'],
'debtorGroupHandle' => $firstDebtorGroup,
'name' => $row['firstname'],
'vatZone' => $vat_zone))->Debtor_CreateResult;
echo'debtor created';
$orderno = $client->Order_Create(array('debtorHandle' => $newDebtorHandle))->Order_CreateResult;
$orderline = $client->OrderLine_Create(array("orderHandle" => $orderno))->OrderLine_CreateResult;
//for setting postal code delivary location etc..
$client ->Order_SetDeliveryPostalCode(array('orderHandle'=> $orderline, 'value' => $row['shipping_postcode']));
$client ->Order_SetDeliveryCity(array('orderHandle'=> $orderline, 'value' => $row['shipping_city']));
$client ->Order_SetDeliveryCountry(array('orderHandle'=> $orderline, 'value' => $row['shipping_country']));
$client ->Order_SetTermsOfDelivery(array('orderHandle'=> $orderline, 'value' => 'Once Deliveried,Cont return Money Back'));
$client ->Order_SetDeliveryDate(array('orderHandle'=> $orderline, 'value' => date('Y-m-d\TH:i:s')));
$client ->Order_SetDeliveryAddress(array('orderHandle'=> $orderline, 'value' => $row['shipping_address_1']));
$client ->Order_SetDeliveryAddress(array('orderHandle'=> $orderline, 'value' => $row['shipping_address_2']));
// for getting products of a customer in e-conomic......
it works when one product purchase by customer..but more than one products its showing error on 'vatZone' => $vat_zone line..
can any one help me out please..??
Statistics: Posted by sudheerphp — Fri Mar 08, 2013 11:58 am — Replies 0 — Views 17