// typo
This commit is contained in:
@@ -526,8 +526,8 @@ class OrderOpcControllerCore extends ParentOrderController
|
|||||||
/* Check minimal amount */
|
/* Check minimal amount */
|
||||||
$currency = Currency::getCurrency((int)$this->context->cart->id_currency);
|
$currency = Currency::getCurrency((int)$this->context->cart->id_currency);
|
||||||
|
|
||||||
$minimalPurchase = Tools::convertPrice((float)Configuration::get('PS_PURCHASE_MINIMUM'), $currency);
|
$minimal_purchase = 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) < $minimal_purchase)
|
||||||
return '<p class="warning">'.sprintf(
|
return '<p class="warning">'.sprintf(
|
||||||
Tools::displayError('A minimum purchase total of %1s (tax excl.) is required in order to validate your order, current purchase total is %2s (tax excl.).'),
|
Tools::displayError('A minimum purchase total of %1s (tax excl.) is required in order to validate your order, current purchase total is %2s (tax excl.).'),
|
||||||
Tools::displayPrice($minimal_purchase, $currency), Tools::displayPrice($this->context->cart->getOrderTotal(false, Cart::ONLY_PRODUCTS), $currency)
|
Tools::displayPrice($minimal_purchase, $currency), Tools::displayPrice($this->context->cart->getOrderTotal(false, Cart::ONLY_PRODUCTS), $currency)
|
||||||
|
|||||||
Reference in New Issue
Block a user