Skip to content

Commit d4d34b6

Browse files
authored
Merge pull request #1268 from shreesh-webkul/voucher-validation
Updated: Error message for cart rule validation
2 parents 6b9b087 + e5c236b commit d4d34b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/CartRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ public function checkValidity(Context $context, $alreadyInCart = false, $display
565565
return (!$display_error) ? false : Tools::displayError('This voucher has expired');
566566
}
567567
if (!$alreadyInCart && $context->cart->getOrderTotal(true, Cart::BOTH) <= 0) {
568-
return (!$display_error) ? false : Tools::displayError('You cannot add more vouchers. Please remove an existing voucher before applying a new one.');
568+
return (!$display_error) ? false : Tools::displayError('You cannot add more vouchers since the booking amount has already reached zero. Please remove an existing voucher before adding a new one.');
569569
}
570570

571571
if ($context->cart->id_customer) {

0 commit comments

Comments
 (0)