Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputException while updating cart with Minimum order amount enabled #8287

Closed
sahirzm opened this issue Jan 26, 2017 · 4 comments
Closed

InputException while updating cart with Minimum order amount enabled #8287

sahirzm opened this issue Jan 26, 2017 · 4 comments
Labels
bug report Component: Checkout Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@sahirzm
Copy link

sahirzm commented Jan 26, 2017

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/

@miakusha
Copy link
Contributor

miakusha commented Feb 1, 2017

Hi @sahirzm thanks for report
We've created internal ticket MAGETWO-64011 to address this issue.

@miakusha miakusha added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Feb 1, 2017
@miakusha miakusha removed their assignment Feb 1, 2017
@okorshenko
Copy link
Contributor

okorshenko commented Feb 12, 2017

Closing this issue. It was fixed in #8474 for develop branch

@magento-team
Copy link
Contributor

Internal ticket to track issue progress: MAGETWO-64399

@DavaGordon
Copy link

Not fixed in 2.2.0 RC3 i have posted a solution here #6151

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Checkout Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

8 participants