public function getLogs() { if (!Configuration::get('EBAY_SECURITY_TOKEN') || Tools::getValue('token') != Configuration::get('EBAY_SECURITY_TOKEN')) { return Tools::safeOutput(Tools::getValue('not_logged_str')); } $ebay = new Ebay(); $ebay_profile = new EbayProfile((int) Tools::getValue('profile')); $page = (int) Tools::getValue('p', 0); $nb_results = 20; if ($page < 2) { $page = 1; } $offset = $nb_results * ($page - 1); $smarty = Context::getContext()->smarty; $logs = $this->getDatas($offset, $nb_results); /* Smarty datas */ $template_vars = array('logs' => $logs, 'p' => $page, 'noLogFound' => Tools::getValue('no_logs_str'), 'showStr' => Tools::getValue('show_str')); $smarty->assign($template_vars); return $ebay->display(realpath(dirname(__FILE__) . '/../'), $this->file); }
public static function dump_items() { ?> <table width=100%> <tr> <td><b>ItemId</b></td> <td><b>Url</b></td> <td><b>Price</b></td> <td><b>Quantity</b></td> <td><b></b></td> <td><b></b></td> <td><b></b></td> </tr> <?php foreach (Ebay::get_active_items() as $item) { xd($item); } ?> </table<?php }
<?php require_once 'config.php'; require_once 'lib/ebay.php'; require_once 'lib/cUrl.php'; require_once 'lib/xml.php'; require_once 'lib/imagemagick.class.php'; $ebay = new Ebay($ebayDEVID, $ebayAppID, $ebayCertID, $ebayToken); $fbNumber = isset($_GET['number']) ? (int) $_GET['number'] : 5; $feedbacks = XML2Array::createArray($ebay->getFeedBacks($fbNumber)); $feedbacks = isset($feedbacks["GetFeedbackResponse"]['FeedbackDetailArray']['FeedbackDetail']) ? $feedbacks["GetFeedbackResponse"]['FeedbackDetailArray']['FeedbackDetail'] : array(); if (empty($feedbacks)) { print_r('error'); exit; } ImageMagick::deleteOldFiles(TEXT_TOOL_TMP_PATH); $feedbackImages = array(); foreach ($feedbacks as $feedback) { $texts = array("str1" => $feedback['CommentText'] . ', ' . date('M-d-y H:i', strtotime($feedback['CommentTime'])), "str2" => $feedback['CommentingUser'] . ' (' . $feedback['CommentingUserScore'] . ')', "str3" => ' ' . $feedback['ItemTitle'] . ' (#' . $feedback['ItemID'] . ')'); $textImages = array(); foreach ($texts as $name => $text) { $textData = array('font' => "Arial", 'text' => $text, 'size' => 16, 'color' => "black", 'rotate' => 0); if ($name == 'str3') { $textData['color'] = "gray"; } $textImages[$name] = ImageMagick::createText($textData); } ImageMagick::addPlus($textImages['str1']); ImageMagick::addStar($textImages['str2'], $feedback['CommentingUserScore']); ImageMagick::addBorder(TEXT_TOOL_TEXT_PATH . $textImages['str1'], 3); ImageMagick::addBorder(TEXT_TOOL_TEXT_PATH . $textImages['str2'], 3);
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <*****@*****.**> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ include_once dirname(__FILE__) . '/../../../config/config.inc.php'; include_once dirname(__FILE__) . '/../classes/EbayCountrySpec.php'; include_once dirname(__FILE__) . '/../classes/EbayProductConfiguration.php'; if (!Tools::getValue('token') || Tools::getValue('token') != Configuration::get('EBAY_SECURITY_TOKEN')) { die('ERROR : INVALID TOKEN'); } $ebay = new Ebay(); $ebay_country = EbayCountrySpec::getInstanceByKey(Configuration::get('EBAY_COUNTRY_DEFAULT')); $id_lang = $ebay_country->getIdLang(); $id_ebay_profile = (int) Tools::getValue('id_ebay_profile'); $is_one_five = version_compare(_PS_VERSION_, '1.5', '>'); if ($is_one_five) { $sql = 'SELECT p.`id_product` as id, pl.`name`, epc.`blacklisted`, epc.`extra_images`, sa.`quantity` as stock FROM `' . _DB_PREFIX_ . 'product` p'; $sql .= Shop::addSqlAssociation('product', 'p'); $sql .= ' LEFT JOIN `' . _DB_PREFIX_ . 'product_lang` pl ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = ' . (int) $id_lang; $sql .= Shop::addSqlRestrictionOnLang('pl'); $sql .= ') LEFT JOIN `' . _DB_PREFIX_ . 'ebay_product_configuration` epc ON p.`id_product` = epc.`id_product` AND epc.id_ebay_profile = ' . $id_ebay_profile . '
include_once dirname(__FILE__) . '/../ebay.php'; function array_insert_after($key, array &$array, $new_key, $new_value) { if (array_key_exists($key, $array)) { $new = array(); foreach ($array as $k => $value) { $new[$k] = $value; if ($k === $key) { $new[$new_key] = $new_value; } } return $new; } return false; } $ebay = new Ebay(); $ebay_profile = new EbayProfile((int) Tools::getValue('profile')); if (!Configuration::get('EBAY_SECURITY_TOKEN') || Tools::getValue('token') != Configuration::get('EBAY_SECURITY_TOKEN')) { return Tools::safeOutput(Tools::getValue('not_logged_str')); } $category_list = $ebay->getChildCategories(Category::getCategories(Tools::getValue('id_lang')), version_compare(_PS_VERSION_, '1.5', '>') ? 1 : 0); $offset = 20; $page = (int) Tools::getValue('p', 0); if ($page < 2) { $page = 1; } $limit = $offset * ($page - 1); $category_list = array_slice($category_list, $limit, $offset); $ebay_store_category_list = EbayStoreCategory::getCategoriesWithConfiguration($ebay_profile->id); $smarty = Context::getContext()->smarty; /* Smarty datas */
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <*****@*****.**> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ include_once dirname(__FILE__) . '/../../../config/config.inc.php'; include_once dirname(__FILE__) . '/../classes/EbayCountrySpec.php'; include_once dirname(__FILE__) . '/../classes/EbayProductConfiguration.php'; if (!Tools::getValue('token') || Tools::getValue('token') != Configuration::get('EBAY_SECURITY_TOKEN')) { die('ERROR : INVALID TOKEN'); } $ebay = new Ebay(); $ebay_country = EbayCountrySpec::getInstanceByKey(Configuration::get('EBAY_COUNTRY_DEFAULT')); $ebay_request = new EbayRequest(); $id_lang = $ebay_country->getIdLang(); $id_ebay_profile = (int) Tools::getValue('id_ebay_profile'); $id_product = (int) Tools::getValue('product'); $is_one_five = version_compare(_PS_VERSION_, '1.5', '>'); $sql = 'SELECT pa.`id_product_attribute`, sa.`quantity` AS stock, al.`name` AS name, ep.`id_product_ref` AS id_product_ref FROM `' . _DB_PREFIX_ . 'product_attribute` pa INNER JOIN `' . _DB_PREFIX_ . 'product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
<?php require_once 'config.php'; require_once 'lib/ebay.php'; require_once 'lib/cUrl.php'; require_once 'lib/xml.php'; $pages = 10; $ebay = new Ebay($ebayDEVID, $ebayAppID, $ebayCertID, $ebayToken); for ($i = 1; $i <= $pages; $i++) { print_r("page " . $i . "\n"); $cases = XML2Array::createArray($ebay->getCases(200, $i)); $cases = isset($cases["soapenv:Envelope"]["soapenv:Body"]["getUserCasesResponse"]["cases"]["caseSummary"]) ? $cases["soapenv:Envelope"]["soapenv:Body"]["getUserCasesResponse"]["cases"]["caseSummary"] : array(); if (!empty($cases)) { print_r("cases: " . count($cases) . "\n"); foreach ($cases as $j => $caseShort) { if (isset($caseShort['user']) && $caseShort['user']['userId'] == "chandlermotorsportsinc" && $caseShort['user']['role'] == "SELLER") { $sql = "SELECT * FROM cases where caseId = '" . $caseShort['caseId']['id'] . "'"; $rs = $db->Execute($sql); $row = $rs->FetchRow(); if (isset($row['caseId'])) { print_r("case: " . $row['caseId'] . " exists" . "\n"); continue; } $case = XML2Array::createArray($ebay->getCaseDetails($caseShort['caseId']['id'], $caseShort['caseId']['type'])); $case = isset($case["soapenv:Envelope"]["soapenv:Body"]["getEBPCaseDetailResponse"]) ? $case["soapenv:Envelope"]["soapenv:Body"]["getEBPCaseDetailResponse"] : array(); if (!isset($case['caseSummary']['caseId']['id'])) { $caseSummary = $caseShort; $caseDetail = array(); } else { $caseSummary = $case['caseSummary']; $caseDetail = isset($case['caseDetail']) ? $case['caseDetail'] : array();
public function __construct() { parent::__construct(); $this->cronProductsSync(); }
public function get_ebay_data_by_sku($sku) { return Ebay::get_item_by_sku($sku); }
* * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <*****@*****.**> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ include_once dirname(__FILE__) . '/../../../config/config.inc.php'; include_once dirname(__FILE__) . '/../../../init.php'; include_once dirname(__FILE__) . '/../ebay.php'; $ebay = new Ebay(); $ebay_profile = new EbayProfile((int) Tools::getValue('profile')); $ebay_request = new EbayRequest(); if (!Configuration::get('EBAY_SECURITY_TOKEN') || Tools::getValue('token') != Configuration::get('EBAY_SECURITY_TOKEN')) { return Tools::safeOutput(Tools::getValue('not_logged_str')); } $page = (int) Tools::getValue('p', 0); if ($page < 2) { $page = 1; } $limit = 20; $offset = $limit * ($page - 1); $on_ebay_only = Tools::getValue('mode') == 'on_ebay'; $search = Tools::getValue('s'); $is_one_five = version_compare(_PS_VERSION_, '1.5', '>'); // to check if a product has attributes (multi-variations), we check if it has a "default_on" attribute in the product_attribute table
require_once 'blocks/head.php'; require_once 'blocks/menu.php'; require_once 'lib/ebay/upload_picture.php'; require_once 'lib/ebay/item.php'; if (!isset($_POST['do'])) { Send404(); } $item = $_POST; foreach ($_POST['picture_name'] as $i => $name) { $blob = base64_decode(substr($_POST['img'][$i], strlen('data:image/jpeg;base64,'))); $item['gallery'][] = ebay_upload_picture($name, $blob); } //$item['gallery'] = array('http://i.ebayimg.sandbox.ebay.com/00/s/MzAwWDI2Mg==/z/MbcAAOSwX-hUzs2F/$_1.JPG?set_id=8800004005'); $item['verify'] = false; //$item['test'] = true; $response = Ebay::add_item($item); show_response_errors($response); if ($response->Ack !== 'Failure') { $href = $user['sandbox'] ? 'http://cgi.sandbox.ebay.com/ws/eBayISAPI.dll?ViewItem&item=' . $response->ItemID : 'http://www.ebay.com/itm/' . $response->ItemID; ?> <p> Item created successfully. Redirecting to ... <br> <a href="<?php echo $href; ?> "> <?php echo $href; ?> </a> <script> setTimeout(function(){
<?php require_once 'lib/config.php'; require_once 'blocks/head.php'; ?> <body> <?php require_once 'blocks/menu.php'; require_once 'lib/ebay.php'; $items = Ebay::get_active_items(); $count = count($items); if ($count == 0) { ?> <div id="ErrorMsg" class="alert alert-error"> <button type="button" class="close" data-dismiss="alert">×</button> No items found. Error? </div> <p><strong>Products Unavailable</strong></p> <?php } else { ?> <h3>Current products on eBay(<?php echo $count; ?> )</h3> <table class="table table-bordered"> <tr> <th style="width:80px;">eBbay ID</th> <th style="width:80px;">SKU</th> <th style="width:320px;">Description</th> <th style="width:50px;">Image</th>
* * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <*****@*****.**> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ include_once dirname(__FILE__) . '/../../../config/config.inc.php'; include_once dirname(__FILE__) . '/../../../init.php'; include_once dirname(__FILE__) . '/../ebay.php'; $ebay = new Ebay(); $ebay_profile = new EbayProfile((int) Tools::getValue('profile')); $ebay_request = new EbayRequest(); if (!Configuration::get('EBAY_SECURITY_TOKEN') || Tools::getValue('token') != Configuration::get('EBAY_SECURITY_TOKEN')) { return Tools::safeOutput(Tools::getValue('not_logged_str')); } // to check if a product has attributes (multi-variations), we check if it has a "default_on" attribute in the product_attribute table $query = 'SELECT DISTINCT(ep.`id_ebay_product`), ep.`id_product_ref`, ep.`id_product`, ep.`id_attribute` AS `notSetWithMultiSkuCat`, epc.`blacklisted`, p.`id_product` AS `exists`, p.`id_category_default`, p.`active`, pa.`id_product_attribute` AS isMultiSku,
public static function getTemplateTabConfiguration($id_ebay_profile) { $ebay_profile = new EbayProfile($id_ebay_profile); $ebay = new Ebay(); if ($ebay_profile->getConfiguration('EBAY_PRODUCT_TEMPLATE_TITLE') == '') { return array('indicator' => 'wrong', 'indicatorBig' => 'wrong', 'message' => $ebay->l('You need to add something in your template title. Use the tags available to personnalize your product title on eBay', 'ebayvalidatortab')); } if ($ebay_profile->getConfiguration('EBAY_PRODUCT_TEMPLATE_TITLE') == '{TITLE}') { return array('indicator' => 'success', 'indicatorBig' => 'mind', 'message' => $ebay->l('You could improve your title template by adding informations about the items', 'ebayvalidatortab')); } return array('indicator' => 'success'); }
<?php require_once 'config.php'; require_once 'lib/ebay.php'; require_once 'lib/cUrl.php'; require_once 'lib/xml.php'; $pages = 500; $ebay = new Ebay($ebayDEVID, $ebayAppID, $ebayCertID, $ebayToken); $allFeedbacks = array(); for ($i = 1; $i <= $pages; $i++) { print_r($i); $orders = XML2Array::createArray($ebay->getCompleteOrders(100, $i)); $orders = isset($orders["GetOrdersResponse"]['OrderArray']['Order']) ? $orders["GetOrdersResponse"]['OrderArray']['Order'] : array(); //print_r($orders);exit; if (!empty($orders)) { print_r("orders: " . count($orders) . "\n"); foreach ($orders as $j => $order) { $sql = "SELECT * FROM orders where OrderID = '" . $order['OrderID'] . "'"; $rs = $db->Execute($sql); $row = $rs->FetchRow(); if (isset($row['OrderID'])) { print_r("order: " . $row['OrderID'] . " exists" . "\n"); continue; } $tmp = array("OrderID" => $order['OrderID'], "AmountPaid" => $order["AmountPaid"]['@value'] . ' ' . $order["AmountPaid"]['@attributes']['currencyID'], "CreatedTime" => $order['CreatedTime'], "PaymentMethods" => $order['PaymentMethods'], "ItemID" => $order['TransactionArray']['Transaction']['Item']['ItemID'], "QuantityPurchased" => $order['TransactionArray']['Transaction']['QuantityPurchased'], "TransactionID" => $order['TransactionArray']['Transaction']['TransactionID'], "sku" => $order['TransactionArray']['Transaction']['Item']['SKU'], "BuyerUserID" => $order['BuyerUserID']); $updateSQL = $db->GetInsertSQL($rs, $tmp); $db->Execute($updateSQL); } } else { print_r('no orders'); exit;
* * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <*****@*****.**> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ include_once dirname(__FILE__) . '/../../../config/config.inc.php'; include_once dirname(__FILE__) . '/../../../init.php'; include_once dirname(__FILE__) . '/../ebay.php'; $ebay = new Ebay(); $ebay_profile = new EbayProfile((int) Tools::getValue('profile')); if (!Configuration::get('EBAY_SECURITY_TOKEN') || Tools::getValue('token') != Configuration::get('EBAY_SECURITY_TOKEN')) { return Tools::safeOutput(Tools::getValue('not_logged_str')); } $categories = Category::getCategories(Tools::getValue('id_lang')); $category_list = $ebay->getChildCategories($categories, version_compare(_PS_VERSION_, '1.5', '>') ? 1 : 0, array(), '', Tools::getValue('s')); $offset = 20; $page = (int) Tools::getValue('p', 0); if ($page < 2) { $page = 1; } $limit = $offset * ($page - 1); $nb_categories = count($category_list); $category_list = array_slice($category_list, $limit, $offset); $ebay_category_list = Db::getInstance()->executeS('SELECT *
<?php require_once 'config.php'; require_once 'lib/ebay.php'; require_once 'lib/cUrl.php'; require_once 'lib/xml.php'; $pages = 500; $ebay = new Ebay($ebayDEVID, $ebayAppID, $ebayCertID, $ebayToken); $allFeedbacks = array(); $header = array("CommentingUser", "CommentingUserScore", "CommentText", "CommentTime", "CommentType", "ItemID", "Role", "FeedbackID", "TransactionID", "OrderLineItemID", "ItemTitle", "ItemPrice", "currencyID"); for ($i = 1; $i <= $pages; $i++) { print_r($i); $feedbacks = XML2Array::createArray($ebay->getFeedBacks(200, $i)); $feedbacks = isset($feedbacks["GetFeedbackResponse"]['FeedbackDetailArray']['FeedbackDetail']) ? $feedbacks["GetFeedbackResponse"]['FeedbackDetailArray']['FeedbackDetail'] : array(); if (!empty($feedbacks)) { foreach ($feedbacks as $j => $feedback) { if (isset($feedback['ItemPrice'])) { $feedbacks[$j]['ItemPrice'] = $feedback['ItemPrice']['@value']; $feedbacks[$j]['currencyID'] = $feedback['ItemPrice']['@attributes']['currencyID']; } $tmp = array(); foreach ($header as $key) { $tmp[$key] = isset($feedbacks[$j][$key]) ? $feedbacks[$j][$key] : ''; } $sql = "SELECT * FROM feedbacks where FeedbackID = {$tmp['FeedbackID']}"; $rs = $db->Execute($sql); $row = $rs->FetchRow(); if (isset($row['FeedbackID'])) { exit; } $updateSQL = $db->GetInsertSQL($rs, $tmp);
* to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <*****@*****.**> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ include_once dirname(__FILE__) . '/../../../config/config.inc.php'; include_once dirname(__FILE__) . '/../ebay.php'; $ebay = new Ebay(); if (!Configuration::get('EBAY_SECURITY_TOKEN') || Tools::getValue('token') != Configuration::get('EBAY_SECURITY_TOKEN')) { echo Tools::safeOutput(Tools::getValue('not_logged_str')); return; } $ebay_request = new EbayRequest(); /* Loading categories */ $category_config_list = array(); $category_config_list_tmp = Db::getInstance()->executeS('SELECT * FROM `' . _DB_PREFIX_ . 'ebay_category_configuration`'); foreach ($category_config_list_tmp as $category) { $category_config_list[$category['id_category']] = $category; } /* Get categories */ $category_list = Db::getInstance()->executeS('SELECT `id_category`, `name` FROM `' . _DB_PREFIX_ . 'category_lang`
public function __construct() { parent::__construct(); $this->cronOrdersSync(); }
private static function _getPriceDescriptionStr($price, $price_percent, $id_currency) { $ebay = new Ebay(); $price_str = $ebay->l('instead of', 'ebay') . ' <del> %price_original% </del> (' . $ebay->l('promotion of', 'ebay') . ' %percent%%)'; return str_replace(array('%price_original%', '%percent%'), array(Tools::displayPrice($price, $id_currency), round($price_percent)), $price_str); }
* NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <*****@*****.**> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ include dirname(__FILE__) . '/../../../config/config.inc.php'; if (!Tools::getValue('token') || Tools::getValue('token') != Configuration::get('EBAY_SECURITY_TOKEN')) { die('ERROR: Invalid Token'); } include dirname(__FILE__) . '/../ebay.php'; $ebay = new Ebay(); $ebay_request = new EbayRequest(); $session_id = $ebay->login(); Tools::redirect($ebay_request->getLoginUrl() . '?SignIn&runame=' . $ebay_request->runame . '&SessID=' . $session_id); exit;
/** * Tools Methods * * Set country * **/ public function getCountry() { // If eBay module has already been called once, use the default country if (!is_object($this->country)) { $this->country = new Country((int) Configuration::get('EBAY_COUNTRY_DEFAULT')); } // Else use PrestaShop Default country if (in_array(strtolower($this->country->iso_code), $this->acceptedIso)) { return $this->country; } $this->country = new Country((int) Configuration::get('PS_COUNTRY_DEFAULT')); if (in_array(strtolower($this->country->iso_code), $this->acceptedIso)) { Ebay::setConfigurationStatic('EBAY_COUNTRY_DEFAULT', $this->country->id); return $this->country; } return $this->country; }
<?php require_once 'config.php'; require_once 'lib/ebay.php'; require_once 'lib/cUrl.php'; require_once 'lib/xml.php'; $ebay = new Ebay($ebayDEVID, $ebayAppID, $ebayCertID, $ebayToken); $cases = XML2Array::createArray($ebay->getCases(100)); print_r($cases["soapenv:Envelope"]["soapenv:Body"]["getUserCasesResponse"]['cases']["caseSummary"]); exit; //$case = XML2Array::createArray($ebay->getCaseDetails(562217998, "PAYPAL_SNAD")); print_r($case["soapenv:Envelope"]["soapenv:Body"]["getEBPCaseDetailResponse"]);
public function __construct() { global $appID, $devID, $certID, $RuName, $serverUrl, $userToken, $compatabilityLevel, $siteID; initKeys(); parent::__construct($appID, $devID, $certID, $RuName, $serverUrl, $userToken, $compatabilityLevel, $siteID); }
$CERTNAME = trim($user['cert_name']); $paypal_email = trim($user['paypal_address']); $token = decrypt($user['token']); /* Relisting inactive items */ $items = EbaySelling::get_items('UnsoldList'); foreach ($items as $num => $ebay_item) { if (!empty($_GET['num']) && $_GET['num'] != $num) { continue; } if (!empty($_GET['id']) && $_GET['id'] != $ebay_item->ItemID) { continue; } $item = Item::from_ebay_data($ebay_item); $item->scrape($ebay_item->SKU); if ($item->vendor_data['offerprice'] && $item->vendor_data['quantity'] && $item->vendor_data['prime'] == 'Yes') { $current = Ebay::get_item_by_sku($ebay_item->SKU); if (@($error = $current->Errors->offsetGet(0))) { if ($error->ErrorCode == '21916270') { $response = $item->relist(); } } } if (file_exists('stop')) { xd('Interrupted'); } } /* Updating active items */ $items = EbaySelling::get_items('ActiveList'); foreach ($items as $num => $ebay_item) { if (!empty($_GET['num']) && $_GET['num'] != $num) { continue;