[-] FO : minimum purchase total with wurrency
This commit is contained in:
1 parent
eb48c91eac
commit
418995b96d
1 file changed
+1
-1
@@ -455,7 +455,7 @@ class OrderOpcControllerCore extends ParentOrderController
|
|||||||
$minimalPurchase = Tools::convertPrice((float)Configuration::get('PS_PURCHASE_MINIMUM'), $currency);
|
$minimalPurchase = Tools::convertPrice((float)Configuration::get('PS_PURCHASE_MINIMUM'), $currency);
|
||||||
if ($this->context->cart->getOrderTotal(false, Cart::ONLY_PRODUCTS) < $minimalPurchase)
|
if ($this->context->cart->getOrderTotal(false, Cart::ONLY_PRODUCTS) < $minimalPurchase)
|
||||||
return '<p class="warning">'.sprintf(
|
return '<p class="warning">'.sprintf(
|
||||||
Tools::displayError('A minimum purchase total of %d is required in order to validate your order.'),
|
Tools::displayError('A minimum purchase total of %s is required in order to validate your order.'),
|
||||||
Tools::displayPrice($minimalPurchase, $currency)
|
Tools::displayPrice($minimalPurchase, $currency)
|
||||||
).'</p>';
|
).'</p>';
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user