Jak wg. poniższego kodu pobrać dodatkowo tytuł aukcji z której został zamówiony przedmiot?
Proszę o pomoc
poniżej kod, który listuje dane:
<?php /* Š 2013 eBay Inc., All Rights Reserved */ /* Licensed under CDDL 1.0 - <a href="http://opensource.org/licenses/cddl1.php" target="_blank">http://opensource.org/licenses/cddl1.php</a> */ //$response = simplexml_import_dom($responseDoc); if ($entries == 0) { echo "Sorry No entries found in the Time period requested. Change CreateTimeFrom/CreateTimeTo and Try again"; } else { $orders = $response->OrderArray->Order; if ($orders != null) { foreach ($orders as $order) { //if the order is completed, print details if ($orderStatus) { // get the amount paid $AmountPaid = $order->AmountPaid; $AmountPaidAttr = $AmountPaid->attributes(); // get the payment method if($order->PaymentMethod) // get the checkout message left by the buyer, if any if ($order->BuyerCheckoutMessage) { } // get the sales tax, if any $SalesTaxAmount = $order->ShippingDetails->SalesTax->SalesTaxAmount; $SalesTaxAmountAttr = $SalesTaxAmount->attributes(); // get the external transaction information - if payment is made via PayPal, then this is the PayPal transaction info $externalTransaction = $order->ExternalTransaction; if ($externalTransaction) { $externalTransactionFeeAttr = $externalTransaction->FeeOrCreditAmount->attributes(); echo "ExternalFeeOrCreditAmount : " . $externalTransaction->FeeOrCreditAmount . " " .$externalTransactionFeeAttr["currencyID"] . " \n"; echo "ExternalTransactionPaymentOrRefundAmount : " . $externalTransaction->PaymentOrRefundAmount . " " .$externalTransactionFeeAttr["currencyID"] . " \n"; } // get the shipping service selected by the buyer $ShippingServiceSelected = $order->ShippingServiceSelected; if($ShippingServiceSelected){ $ShippingCostAttr = $ShippingServiceSelected->ShippingServiceCost->attributes(); echo "ShippingServiceCost : " . $ShippingServiceSelected->ShippingServiceCost . " " . $ShippingCostAttr["currencyID"] . "\n"; } // get the buyer's shipping address $shippingAddress = $order->ShippingAddress; $address = $shippingAddress->Name . ",\n"; if ($shippingAddress->Street1 != null) { $address .= $shippingAddress->Street1 . ","; } if ($shippingAddress->Street2 != null) { $address .= $shippingAddress->Street2 . "\n"; } if ($shippingAddress->CityName != null) { $address .= $shippingAddress->CityName . ",\n"; } if ($shippingAddress->StateOrProvince != null) { $address .= $shippingAddress->StateOrProvince . "-"; } if ($shippingAddress->PostalCode != null) { $address .= $shippingAddress->PostalCode . ",\n"; } if ($shippingAddress->CountryName != null) { $address .= $shippingAddress->CountryName . ".\n"; } if ($shippingAddress->Phone != null) { $address .= $shippingAddress->Phone . "\n"; } if($address){ $transactions = $order->TransactionArray; if ($transactions) { // iterate through each transaction for the order foreach ($transactions->Transaction as $transaction) { // get the OrderLineItemID, Quantity, buyer's email and SKU $SKU = $transaction->Item->SKU; if ($SKU) { } // if the item is listed with variations, get the variation SKU $VariationSKU = $transaction->Variation->SKU; if ($VariationSKU != null) { } $transactionPriceAttr = $transaction->TransactionPrice->attributes(); echo "TransactionPrice : " . $transaction->TransactionPrice . " " . $transactionPriceAttr["currencyID"] . "\n"; } } }//end if } }else{ } } ?>