// Merge -> revision 9124
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<module>
|
||||
<name>fedexcarrier</name>
|
||||
<displayName><![CDATA[Fedex Carrier]]></displayName>
|
||||
<version><![CDATA[1.2.3]]></version>
|
||||
<version><![CDATA[1.2.4]]></version>
|
||||
<description><![CDATA[Offer your customers, different delivery methods with Fedex]]></description>
|
||||
<author><![CDATA[PrestaShop]]></author>
|
||||
<tab><![CDATA[shipping_logistics]]></tab>
|
||||
|
||||
@@ -56,7 +56,7 @@ class FedexCarrier extends CarrierModule
|
||||
{
|
||||
$this->name = 'fedexcarrier';
|
||||
$this->tab = 'shipping_logistics';
|
||||
$this->version = '1.2.3';
|
||||
$this->version = '1.2.4';
|
||||
$this->author = 'PrestaShop';
|
||||
$this->limited_countries = array('us');
|
||||
|
||||
@@ -594,7 +594,7 @@ class FedexCarrier extends CarrierModule
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="margin-form"><input class="button" name="submitSave" type="submit"></div>
|
||||
<div class="margin-form"><input class="button" name="submitSave" type="submit" value="'.$this->l('Configure').'"></div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
@@ -1563,6 +1563,14 @@ class FedexCarrier extends CarrierModule
|
||||
{
|
||||
// Init var
|
||||
$address = new Address($params->id_address_delivery);
|
||||
if (!Validate::isLoadedObject($address))
|
||||
{
|
||||
// If address is not loaded, we take data from shipping estimator module (if installed)
|
||||
global $cookie;
|
||||
$address->id_country = $cookie->id_country;
|
||||
$address->id_state = $cookie->id_state;
|
||||
$address->postcode = $cookie->postcode;
|
||||
}
|
||||
$recipient_country = Db::getInstance()->getRow('SELECT `iso_code` FROM `'._DB_PREFIX_.'country` WHERE `id_country` = '.(int)($address->id_country));
|
||||
$recipient_state = Db::getInstance()->getRow('SELECT `iso_code` FROM `'._DB_PREFIX_.'state` WHERE `id_state` = '.(int)($address->id_state));
|
||||
$shipper_country = Db::getInstance()->getRow('SELECT `iso_code` FROM `'._DB_PREFIX_.'country` WHERE `id_country` = '.(int)(Configuration::get('FEDEX_CARRIER_COUNTRY')));
|
||||
|
||||
Reference in New Issue
Block a user