Skip to content

InputException while updating cart with Minimum order amount enabled #8287

Closed
@sahirzm

Description

@sahirzm

Preconditions

  1. Magento CE 2.1.3
  2. PHP 7.0.13
  3. OS: Ubuntu 16.10
  4. Apache 2.4.18

Steps to reproduce

  1. In Admin, go to Stores->Configuration->Sales->Sales
  2. In Minimum Order Amount, Select Yes for Enable
  3. Fill in Minimum Amount and Description Message.
  4. Save Config.
  5. In Frontend, Add product to cart.
  6. Go to Cart, Change Qty and click Update Shopping Cart.

Expected result

Cart Should be Updated with new quantity.

Actual result

Error 500:
[Wed Jan 25 20:23:35.168951 2017] [:error] [pid 9139] [client 127.0.0.1:55620] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Framework\Exception\InputException::__construct() must be an instance of Magento\Framework\Phrase, string given, called in /var/www/vendor/magento/module-quote/Model/ShippingAddressManagement.php on line 121 and defined in /var/www/vendor/magento/framework/Exception/InputException.php:51
Stack trace:
#0 /var/www/vendor/magento/module-quote/Model/ShippingAddressManagement.php(121): Magento\Framework\Exception\InputException->__construct('Kindly place an...')
#1 /var/www/vendor/magento/module-quote/Model/Quote/ShippingAssignment/ShippingProcessor.php(66): Magento\Quote\Model\ShippingAddressManagement->assign('3', Object(Magento\Quote\Model\Quote\Address))
#2 /var/www/vendor/magento/module-quote/Model/Quote/ShippingAssignment/ShippingAssignmentProcessor.php(76): Magento\Quote\Model\Quote\ShippingAssignment\ShippingProcessor->s in /var/www/vendor/magento/framework/Exception/InputException.php on line 51, referer: https://localhost/checkout/cart/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions