Merge branch 'develop' of gitlab.antadis.net:dev-antadis/bebeboutik into develop
This commit is contained in:
commit
a993b2b36f
@ -310,7 +310,7 @@ class CartController extends CartControllerCore
|
||||
self::$cart->gift_message = '';
|
||||
} elseif(Tools::getValue('action') == 'add_message'){
|
||||
self::$cart->gift = 1;
|
||||
if (!Validate::isMessage(Tools::getValue('message')) {
|
||||
if (!Validate::isMessage(Tools::getValue('message'))) {
|
||||
die('{"hasError" : true, "errors" : ["'.Tools::displayError('Invalid gift message.', false).'"]}');
|
||||
} else {
|
||||
self::$cart->gift_message = strip_tags(Tools::getValue('message'));
|
||||
|
Loading…
Reference in New Issue
Block a user