// Merge -> revision 8851
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8854 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -59,7 +59,7 @@ class Ebay extends Module
|
||||
{
|
||||
$this->name = 'ebay';
|
||||
$this->tab = 'market_place';
|
||||
$this->version = '1.2.5';
|
||||
$this->version = '1.2.6';
|
||||
$this->author = 'PrestaShop';
|
||||
parent::__construct ();
|
||||
$this->displayName = $this->l('eBay');
|
||||
@@ -476,8 +476,11 @@ class Ebay extends Module
|
||||
Db::getInstance()->autoExecute(_DB_PREFIX_.'ebay_order', array('id_order_ref' => pSQL($order['id_order_ref']), 'id_order' => (int)$id_order), 'INSERT');
|
||||
}
|
||||
else
|
||||
{
|
||||
$cartAdd->delete();
|
||||
$orderList[$korder]['errors'][] = $this->l('Could not add product to cart (maybe your stock quantity is 0)');
|
||||
}
|
||||
}
|
||||
else
|
||||
$orderList[$korder]['errors'][] = $this->l('Could not found products in database');
|
||||
}
|
||||
@@ -1535,9 +1538,9 @@ class Ebay extends Module
|
||||
$images = $product->getImages($this->id_lang);
|
||||
foreach ($images as $image)
|
||||
{
|
||||
$pictures[] = $prefix.$this->context->link->getImageLink('', $product->id.'-'.$image['id_image'], NULL);
|
||||
$picturesMedium[] = $prefix.$this->context->link->getImageLink('', $product->id.'-'.$image['id_image'], 'medium');
|
||||
$picturesLarge[] = $prefix.$this->context->link->getImageLink('', $product->id.'-'.$image['id_image'], 'large');
|
||||
$pictures[] = str_replace('https://', 'http://', $prefix.$this->context->link->getImageLink('', $product->id.'-'.$image['id_image'], null));
|
||||
$picturesMedium[] = str_replace('https://', 'http://', $prefix.$this->context->link->getImageLink('', $product->id.'-'.$image['id_image'], 'medium'));
|
||||
$picturesLarge[] = str_replace('https://', 'http://', $prefix.$this->context->link->getImageLink('', $product->id.'-'.$image['id_image'], 'large'));
|
||||
}
|
||||
|
||||
// Load Variations
|
||||
@@ -1860,7 +1863,7 @@ class Ebay extends Module
|
||||
if (!Configuration::get('EBAY_PAYPAL_EMAIL'))
|
||||
return '<p><b>'.$this->l('You have to configure "General Settings" tab before using this tab.').'</b></p><br />';
|
||||
|
||||
|
||||
|
||||
$dateLastImport = '-';
|
||||
if (file_exists(dirname(__FILE__).'/log/orders.php'))
|
||||
include(dirname(__FILE__).'/log/orders.php');
|
||||
|
||||
Reference in New Issue
Block a user