qenta-cee / magento2-qcp

QENTA Checkout Page extension for Magento 2
GNU General Public License v2.0
12 stars 10 forks source link

Checkout not working when "Term and Condition" are set 2 #39

Closed EliasKotlyar closed 6 years ago

EliasKotlyar commented 6 years ago

Hello Wirecard-Team,

I figured out an error which already occured in https://github.com/wirecard/magento2-wcp/issues/6

Preconditions

Install Magento 2.2.3 - I suppose it doesnt occur on Magento 2.1 or 2.0

Steps to reproduce:

  1. Create a Term and Condition entry under Stores > Terms and Conditions
  2. Activate Terms and Conditions for checkout under Stores > Sales > Checkout > Enable Terms and Conditions
  3. Dont use a customer account, go trough the shop as guest
  4. Go through checkout
  5. On Review & Payments step select any wirecard-payment method
  6. Check the checkbox on "term and conditions"
  7. Click Place Order

Expected result Order is being placed/redirect to wirecard

Actual result Validation message for unaccepted Term and Condition appears

EliasKotlyar commented 6 years ago

I provided a fix for this issue, but i am unsure if its compatible with M2.1/M2.0. This error havent occured there.