// 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:
@@ -2603,10 +2603,22 @@ class AdminProducts extends AdminTab
|
|||||||
</tr>';
|
</tr>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
echo '<tr>
|
echo '<tr>
|
||||||
<td colspan="2">'.$this->l('The stock management is disabled').'</td>
|
<td colspan="2">'.$this->l('The stock management is disabled').'</td>
|
||||||
</tr>';
|
</tr>';
|
||||||
|
|
||||||
|
echo '
|
||||||
|
<tr>
|
||||||
|
<td class="col-left">'.$this->l('Minimum quantity:').'</td>
|
||||||
|
<td style="padding-bottom:5px;">
|
||||||
|
<input size="3" maxlength="6" name="minimal_quantity" id="minimal_quantity" type="text" value="'.($this->getFieldValue($obj, 'minimal_quantity') ? $this->getFieldValue($obj, 'minimal_quantity') : 1).'" />
|
||||||
|
<p>'.$this->l('The minimum quantity to buy this product (set to 1 to disable this feature)').'</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
';
|
||||||
|
}
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<tr><td colspan="2" style="padding-bottom:5px;"><hr style="width:100%;" /></td></tr>
|
<tr><td colspan="2" style="padding-bottom:5px;"><hr style="width:100%;" /></td></tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
+3
-1
@@ -310,9 +310,11 @@ class CartCore extends ObjectModel
|
|||||||
$row['description'] = $discount->description ? $discount->description : $discount->name;
|
$row['description'] = $discount->description ? $discount->description : $discount->name;
|
||||||
$row['value_real'] = $discount->getValue(sizeof($result), $total_products_wt, $shipping_wt, $this->id);
|
$row['value_real'] = $discount->getValue(sizeof($result), $total_products_wt, $shipping_wt, $this->id);
|
||||||
$row['value_tax_exc'] = $discount->getValue(sizeof($result), $total_products, $shipping, $this->id, false);
|
$row['value_tax_exc'] = $discount->getValue(sizeof($result), $total_products, $shipping, $this->id, false);
|
||||||
|
if ($row['value_real'] !== 0)
|
||||||
self::$_discounts[$this->id][] = $row;
|
self::$_discounts[$this->id][] = $row;
|
||||||
|
else
|
||||||
|
$this->deleteDiscount($row['id_discount']);
|
||||||
}
|
}
|
||||||
|
|
||||||
return isset(self::$_discounts[$this->id]) ? self::$_discounts[$this->id] : NULL;
|
return isset(self::$_discounts[$this->id]) ? self::$_discounts[$this->id] : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<module>
|
<module>
|
||||||
<name>ebay</name>
|
<name>ebay</name>
|
||||||
<displayName><![CDATA[eBay]]></displayName>
|
<displayName><![CDATA[eBay]]></displayName>
|
||||||
<version><![CDATA[1.2.5]]></version>
|
<version><![CDATA[1.2.6]]></version>
|
||||||
<description><![CDATA[Open your shop on the eBay market place !]]></description>
|
<description><![CDATA[Open your shop on the eBay market place !]]></description>
|
||||||
<author><![CDATA[PrestaShop]]></author>
|
<author><![CDATA[PrestaShop]]></author>
|
||||||
<tab><![CDATA[market_place]]></tab>
|
<tab><![CDATA[market_place]]></tab>
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ class eBayRequest
|
|||||||
|
|
||||||
private $compatibilityLevel;
|
private $compatibilityLevel;
|
||||||
|
|
||||||
private $debug = true;
|
private $debug = false;
|
||||||
|
|
||||||
/******************************************************************/
|
/******************************************************************/
|
||||||
/** Constructor And Request Methods *******************************/
|
/** Constructor And Request Methods *******************************/
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class Ebay extends Module
|
|||||||
{
|
{
|
||||||
$this->name = 'ebay';
|
$this->name = 'ebay';
|
||||||
$this->tab = 'market_place';
|
$this->tab = 'market_place';
|
||||||
$this->version = '1.2.5';
|
$this->version = '1.2.6';
|
||||||
$this->author = 'PrestaShop';
|
$this->author = 'PrestaShop';
|
||||||
parent::__construct ();
|
parent::__construct ();
|
||||||
$this->displayName = $this->l('eBay');
|
$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');
|
Db::getInstance()->autoExecute(_DB_PREFIX_.'ebay_order', array('id_order_ref' => pSQL($order['id_order_ref']), 'id_order' => (int)$id_order), 'INSERT');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
$cartAdd->delete();
|
||||||
$orderList[$korder]['errors'][] = $this->l('Could not add product to cart (maybe your stock quantity is 0)');
|
$orderList[$korder]['errors'][] = $this->l('Could not add product to cart (maybe your stock quantity is 0)');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
$orderList[$korder]['errors'][] = $this->l('Could not found products in database');
|
$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);
|
$images = $product->getImages($this->id_lang);
|
||||||
foreach ($images as $image)
|
foreach ($images as $image)
|
||||||
{
|
{
|
||||||
$pictures[] = $prefix.$this->context->link->getImageLink('', $product->id.'-'.$image['id_image'], NULL);
|
$pictures[] = str_replace('https://', 'http://', $prefix.$this->context->link->getImageLink('', $product->id.'-'.$image['id_image'], null));
|
||||||
$picturesMedium[] = $prefix.$this->context->link->getImageLink('', $product->id.'-'.$image['id_image'], 'medium');
|
$picturesMedium[] = str_replace('https://', 'http://', $prefix.$this->context->link->getImageLink('', $product->id.'-'.$image['id_image'], 'medium'));
|
||||||
$picturesLarge[] = $prefix.$this->context->link->getImageLink('', $product->id.'-'.$image['id_image'], 'large');
|
$picturesLarge[] = str_replace('https://', 'http://', $prefix.$this->context->link->getImageLink('', $product->id.'-'.$image['id_image'], 'large'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load Variations
|
// Load Variations
|
||||||
@@ -1860,7 +1863,7 @@ class Ebay extends Module
|
|||||||
if (!Configuration::get('EBAY_PAYPAL_EMAIL'))
|
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 />';
|
return '<p><b>'.$this->l('You have to configure "General Settings" tab before using this tab.').'</b></p><br />';
|
||||||
|
|
||||||
|
|
||||||
$dateLastImport = '-';
|
$dateLastImport = '-';
|
||||||
if (file_exists(dirname(__FILE__).'/log/orders.php'))
|
if (file_exists(dirname(__FILE__).'/log/orders.php'))
|
||||||
include(dirname(__FILE__).'/log/orders.php');
|
include(dirname(__FILE__).'/log/orders.php');
|
||||||
|
|||||||
@@ -94,11 +94,11 @@ class MRCreateTickets implements IMondialRelayWSMethod
|
|||||||
'Expe_Tel1' => array(
|
'Expe_Tel1' => array(
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'value' => '',
|
'value' => '',
|
||||||
'regexValidation' => '#^((00|\+)33|0)[0-9][0-9]{8}$#'),
|
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||||
'Expe_Tel2' => array(
|
'Expe_Tel2' => array(
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'value' => '',
|
'value' => '',
|
||||||
'regexValidation' => '#^((00|\+)33|0)[0-9][0-9]{8}$#'),
|
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||||
'Expe_Mail' => array(
|
'Expe_Mail' => array(
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'value' => '',
|
'value' => '',
|
||||||
@@ -139,11 +139,11 @@ class MRCreateTickets implements IMondialRelayWSMethod
|
|||||||
'Dest_Tel1' => array(
|
'Dest_Tel1' => array(
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'value' => '',
|
'value' => '',
|
||||||
'regexValidation' => '#^((00|\+)33|0)[0-9][0-9]{8}$#'),
|
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||||
'Dest_Tel2' => array(
|
'Dest_Tel2' => array(
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'value' => '',
|
'value' => '',
|
||||||
'regexValidation' => '#^((00|\+)33|0)[0-9][0-9]{8}$#'),
|
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||||
'Dest_Mail' => array(
|
'Dest_Mail' => array(
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'value' => '',
|
'value' => '',
|
||||||
@@ -331,7 +331,7 @@ class MRCreateTickets implements IMondialRelayWSMethod
|
|||||||
$tmp['ModeLiv']['value'] = $orderDetail['mr_ModeLiv'];
|
$tmp['ModeLiv']['value'] = $orderDetail['mr_ModeLiv'];
|
||||||
$tmp['NDossier']['value'] = $orderDetail['id_order'];
|
$tmp['NDossier']['value'] = $orderDetail['id_order'];
|
||||||
$tmp['NClient']['value'] = $orderDetail['id_customer'];
|
$tmp['NClient']['value'] = $orderDetail['id_customer'];
|
||||||
$tmp['Dest_Langage']['value'] = $destIsoCode;
|
$tmp['Dest_Langage']['value'] = 'FR'; //Language::getIsoById($orderDetail['id_lang']);
|
||||||
$tmp['Dest_Ad1']['value'] = $deliveriesAddress->lastname;
|
$tmp['Dest_Ad1']['value'] = $deliveriesAddress->lastname;
|
||||||
$tmp['Dest_Ad2']['value'] = $deliveriesAddress->address2;
|
$tmp['Dest_Ad2']['value'] = $deliveriesAddress->address2;
|
||||||
$tmp['Dest_Ad3']['value'] = $deliveriesAddress->address1;
|
$tmp['Dest_Ad3']['value'] = $deliveriesAddress->address1;
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class MondialRelay extends Module
|
|||||||
{
|
{
|
||||||
$this->name = 'mondialrelay';
|
$this->name = 'mondialrelay';
|
||||||
$this->tab = 'shipping_logistics';
|
$this->tab = 'shipping_logistics';
|
||||||
$this->version = '1.7.3';
|
$this->version = '1.7.4';
|
||||||
|
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
@@ -1140,6 +1140,7 @@ class MondialRelay extends Module
|
|||||||
o.`id_order` as id_order,
|
o.`id_order` as id_order,
|
||||||
o.`id_customer` as id_customer,
|
o.`id_customer` as id_customer,
|
||||||
o.`id_cart` as id_cart,
|
o.`id_cart` as id_cart,
|
||||||
|
o.`id_lang` as id_lang,
|
||||||
mrs.`id_mr_selected` as id_mr_selected,
|
mrs.`id_mr_selected` as id_mr_selected,
|
||||||
CONCAT(c.`firstname`, \' \', c.`lastname`) AS `customer`,
|
CONCAT(c.`firstname`, \' \', c.`lastname`) AS `customer`,
|
||||||
o.`total_paid_real` as total, o.`total_shipping` as shipping,
|
o.`total_paid_real` as total, o.`total_shipping` as shipping,
|
||||||
|
|||||||
@@ -66,12 +66,17 @@ function updateCarrierList(json)
|
|||||||
else
|
else
|
||||||
var extraHtml = '';
|
var extraHtml = '';
|
||||||
|
|
||||||
|
if (taxEnabled && displayPrice == 0)
|
||||||
|
var price = carriers[i].price;
|
||||||
|
else
|
||||||
|
var price = carriers[i].price_tax_exc;
|
||||||
|
|
||||||
html = html +
|
html = html +
|
||||||
'<tr class="'+itemType+'">'+
|
'<tr class="'+itemType+'">'+
|
||||||
'<td class="carrier_action radio"><input type="radio" name="id_carrier" value="'+carriers[i].id_carrier+'" id="id_carrier'+carriers[i].id_carrier+'" onclick="updateCarrierSelectionAndGift();" '+extraHtml+' /></td>'+
|
'<td class="carrier_action radio"><input type="radio" name="id_carrier" value="'+carriers[i].id_carrier+'" id="id_carrier'+carriers[i].id_carrier+'" onclick="updateCarrierSelectionAndGift();" '+extraHtml+' /></td>'+
|
||||||
'<td class="carrier_name"><label for="id_carrier'+carriers[i].id_carrier+'">'+name+'</label></td>'+
|
'<td class="carrier_name"><label for="id_carrier'+carriers[i].id_carrier+'">'+name+'</label></td>'+
|
||||||
'<td class="carrier_infos">'+carriers[i].delay+'</td>'+
|
'<td class="carrier_infos">'+carriers[i].delay+'</td>'+
|
||||||
'<td class="carrier_price"><span class="price">'+formatCurrency(carriers[i].price, currencyFormat, currencySign, currencyBlank)+'</span>';
|
'<td class="carrier_price"><span class="price">'+formatCurrency(price, currencyFormat, currencySign, currencyBlank)+'</span>';
|
||||||
if (taxEnabled && displayPrice == 0)
|
if (taxEnabled && displayPrice == 0)
|
||||||
html = html + ' ' + txtWithTax;
|
html = html + ' ' + txtWithTax;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user