// Context part 12
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7649 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+4
-5
@@ -684,14 +684,13 @@ class CarrierCore extends ObjectModel
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getRangeSuffix()
|
||||
public function getRangeSuffix($context = null)
|
||||
{
|
||||
if (!$context)
|
||||
$context = Context::getContext();
|
||||
$suffix = Configuration::get('PS_WEIGHT_UNIT');
|
||||
if ($this->getShippingMethod() == Carrier::SHIPPING_METHOD_PRICE)
|
||||
{
|
||||
$currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
|
||||
$suffix = $currency->sign;
|
||||
}
|
||||
$suffix = $context->currency->sign;
|
||||
return $suffix;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user