// Context part 12

This commit is contained in:
tDidierjean
2011-07-19 09:28:11 +00:00
parent ff81f71449
commit 52339502b6
53 changed files with 184 additions and 196 deletions
+4 -5
View File
@@ -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;
}