[-] MO : #PSFV-717 - Carrier compare: Fix some problems with the module displaying
This commit is contained in:
@@ -119,7 +119,7 @@ class CarrierCompare extends Module
|
|||||||
$refresh_method = Configuration::get('SE_RERESH_METHOD');
|
$refresh_method = Configuration::get('SE_RERESH_METHOD');
|
||||||
|
|
||||||
$this->smarty->assign(array(
|
$this->smarty->assign(array(
|
||||||
'countries' => Country::getCountries((int)$cookie->id_lang),
|
'countries' => Country::getCountries((int)$this->context->cookie->id_lang),
|
||||||
'id_carrier' => ($params['cart']->id_carrier ? $params['cart']->id_carrier : Configuration::get('PS_CARRIER_DEFAULT')),
|
'id_carrier' => ($params['cart']->id_carrier ? $params['cart']->id_carrier : Configuration::get('PS_CARRIER_DEFAULT')),
|
||||||
'id_country' => (isset($this->context->customer->geoloc_id_country) ? $this->context->customer->geoloc_id_country : Configuration::get('PS_COUNTRY_DEFAULT')),
|
'id_country' => (isset($this->context->customer->geoloc_id_country) ? $this->context->customer->geoloc_id_country : Configuration::get('PS_COUNTRY_DEFAULT')),
|
||||||
'id_state' => (isset($this->context->customer->geoloc_id_state) ? $this->context->customer->geoloc_id_state : 0),
|
'id_state' => (isset($this->context->customer->geoloc_id_state) ? $this->context->customer->geoloc_id_state : 0),
|
||||||
@@ -246,7 +246,7 @@ class CarrierCompare extends Module
|
|||||||
* This module is only available on standard order process because
|
* This module is only available on standard order process because
|
||||||
* on One Page Checkout the carrier list is already available.
|
* on One Page Checkout the carrier list is already available.
|
||||||
*/
|
*/
|
||||||
if (!in_array($fileName, array('order.php', 'cart.php')))
|
if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 1)
|
||||||
return false;
|
return false;
|
||||||
/**
|
/**
|
||||||
* If visitor is logged, the module isn't available on Front office,
|
* If visitor is logged, the module isn't available on Front office,
|
||||||
|
|||||||
@@ -1,7 +1,14 @@
|
|||||||
#compare_shipping .center {text-align: center;}
|
#compare_shipping .center {text-align: center;}
|
||||||
|
|
||||||
|
#compare_shipping {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#compare_shipping #availableCarriers {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
#compare_shipping #availableCarriers_table {
|
#compare_shipping #availableCarriers_table {
|
||||||
width: 95%;
|
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user