Closed BabliDey closed 6 years ago
Hi @BabliDey. Thank you for your report. To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento-engcom-team give me {$VERSION} instance
where {$VERSION}
is version tags (starting from 2.2.0+) or develop branches (2.2-develop +).
For more details, please, review the Magento Contributor Assistant documentation.
@BabliDey do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
@BabliDey, thank you for your report. Unfortunately I'm not able to reproduce this issue. When I try to apply coupon without 'Free Shipping', then I get this picture on checkout: and I can place order without any problems.
And if I add 'Free Shipping' to rule, then I get this picture: And again I can place order without any errors.
Can you please add more details or steps to reproduce?
What i found that it is not getting $this->getMethod() value in root\vendor\magento\module-payment\Model\Info.php in public function getMethodInstance() function.
This is the total setting of my coupon code.
And this is the screen shot of patment page
Get requst to https://www.example.de/rest/examplede/V1/guest-carts/3d167ff3baa49eb642f83c4c04cacb61/payment-information
Showing
{ "payment_methods": [ { "code": "hgwdds", "title": "SEPA Lastschrift" }, { "code": "hgwivs", "title": "Kauf auf Rechnung" }, { "code": "amazon_payment", "title": "Amazon Pay" }, { "code": "paypal_express", "title": "PayPal" }, { "code": "free", "title": "No Payment Information Required" }, { "code": "hgwcc", "title": "Kreditkarte" }, { "code": "hgwsue", "title": "Sofortüberweisung" } ], "totals": { "grand_total": 0, "base_grand_total": 0, "subtotal": 18.7, "base_subtotal": 18.7, "discount_amount": -25, "base_discount_amount": -25, "subtotal_with_discount": -6.3, "base_subtotal_with_discount": -6.3, "shipping_amount": 4.66, "base_shipping_amount": 4.66, "shipping_discount_amount": 4.99, "base_shipping_discount_amount": 4.99, "tax_amount": 0, "base_tax_amount": 0, "weee_tax_applied_amount": null, "shipping_tax_amount": 0, "base_shipping_tax_amount": 0, "subtotal_incl_tax": 20.01, "shipping_incl_tax": 4.99, "base_shipping_incl_tax": 4.99, "base_currency_code": "EUR", "quote_currency_code": "EUR", "coupon_code": "MEU9CO2MY92O ", "items_qty": 1, "items": [ { "item_id": 2982, "price": 18.7, "base_price": 18.7, "qty": 1, "row_total": 18.7, "base_row_total": 18.7, "row_total_with_discount": 0, "tax_amount": 0, "base_tax_amount": 0, "tax_percent": 7, "discount_amount": 20.01, "base_discount_amount": 20.01, "discount_percent": 0, "price_incl_tax": 20.01, "base_price_incl_tax": 20.01, "row_total_incl_tax": 20.01, "base_row_total_incl_tax": 20.01, "options": "[{\"value\":\"31.07.2018\",\"label\":\"Wunschliefertermin\"}]", "weee_tax_applied_amount": null, "weee_tax_applied": null, "name": "Joy" } ], "total_segments": [ { "code": "subtotal", "title": "Zwischensumme", "value": 20.01 }, { "code": "shipping", "title": "Versand & Bearbeitung (Lieferung zu 90% am Wunschtermin sonst am folgenden Werktag - DHL)", "value": 4.66 }, { "code": "discount", "title": "Rabatt (MEU9CO2MY92O )", "value": -25 }, { "code": "tax", "title": "Steuer", "value": 0, "extension_attributes": { "tax_grandtotal_details": [] } }, { "code": "grand_total", "title": "Gesamtsumme", "value": 0, "area": "footer" } ] } }
But the post request with email: babli.citytech@gmail.com( mail used in shipping address) and paymentMethod : free showing The payment method you are looking for is not available.
Same issue is placed here for other version https://github.com/magento/magento2/issues/7536 And for my installation $total->setShippingDiscountAmount($address->getShippingDiscountAmount()); $total->setBaseShippingDiscountAmount($address->getBaseShippingDiscountAmount()); these two lines are already added
@magento-engcom-team give me 2.2.3 instance
Hi @engcom-backlog-nickolas. Thank you for your request. I'm working on Magento 2.2.3 instance for you
Hi @engcom-backlog-nickolas, here is your Magento instance.
Admin access: https://i-16523-2-2-3.engcom.dev.magento.com/admin
Login: admin
Password: 123123q
Instance will be terminated in up to 3 hours.
@BabliDey, can you please reproduce this issue on clean instance mentioned above?
Hello @engcom-backlog-nickolas , not able to reproduce this in the fresh installation https://i-16523-2-2-3.engcom.dev.magento.com/admin.
Mine was upgraded with all the data of 2.1.8 to 2.2.3.
@BabliDey, I've tried such steps:
I'm closing this issue. If you'd like to update it, please fill free to reopen it.
Hello @BabliDey, i got also this error message with the same conditions and magento version. How could you fix this issue? Best regards, Eugen
Preconditions
Steps to reproduce
Expected result
Actual result