[-] FO : #PSCFV-2151 : Translations of errors are connected width sprintf()
This commit is contained in:
@@ -436,8 +436,10 @@ class OrderOpcControllerCore extends ParentOrderController
|
||||
|
||||
$minimalPurchase = Tools::convertPrice((float)Configuration::get('PS_PURCHASE_MINIMUM'), $currency);
|
||||
if ($this->context->cart->getOrderTotal(false, Cart::ONLY_PRODUCTS) < $minimalPurchase)
|
||||
return '<p class="warning">'.Tools::displayError('A minimum purchase total of').' '.Tools::displayPrice($minimalPurchase, $currency).
|
||||
' '.Tools::displayError('is required in order to validate your order.').'</p>';
|
||||
return '<p class="warning">'.sprintf(
|
||||
Tools::displayError('A minimum purchase total of %d is required in order to validate your order.'),
|
||||
Tools::displayPrice($minimalPurchase, $currency)
|
||||
).'</p>';
|
||||
|
||||
/* Bypass payment step if total is 0 */
|
||||
if ($this->context->cart->getOrderTotal() <= 0)
|
||||
|
||||
Reference in New Issue
Block a user