0

The problem appears when entering the checkout page

1 exception(s): Exception #0 (Exception): Notice: Undefined index:

number in /var/www/../vendor/magento/module-checkout/Block/Checkout/AttributeMerger.php on line 174

Exception #0 (Exception): Notice: Undefined index: number in /var/www/../vendor/magento/module-checkout/Block/Checkout/AttributeMerger.php on line 174

1
  • Please explain your question in more detail just putting an error is not sufficient otherwise it will be deleted from the community. Mar 27, 2022 at 10:21

1 Answer 1

0

There is only certain input validation you can put, check the allowed values.

/**
* Map input_validation and validation rule from js
*
* @var array
*/
 protected $inputValidationMap = [
     'alpha' => 'validate-alpha',
     'numeric' => 'validate-number',
     'alphanumeric' => 'validate-alphanum',
     'alphanum-with-spaces' => 'validate-alphanum-with-spaces',
     'url' => 'validate-url',
     'email' => 'email2',
     'length' => 'validate-length',
 ];

If you want to bypass the issue just add

'number' => 'validate-number'

In the above array in file :

../vendor/magento/module-checkout/Block/Checkout/AttributeMerger.php

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.