-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Magento 2 - discount bases on Payment Method does not work? #5937
Comments
This issue seems resolved. |
@rbostan it is not a 100% solution, it only works with a single domain. when i try to checkout at www.domin.com (which is the standard domain) everything is working great, but when i try to checkout at www.domain.de i get the following script error:
The error is quite logical, but how can i avoid loading the script from standard domain? Any help would be apreciated. Thanks in advance. |
@DJ0815, For apache, you should add to section in .htaccess file SetEnvIf Origin "http(s)?://(www\.)?(domain.com|domain.de)$" AccessControlAllowOrigin=$0 Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin ref: https://stackoverflow.com/a/1850482 For nginx: location /{ # this will echo back the origin header if ($http_origin ~ "domain.de$") { add_header "Access-Control-Allow-Origin" $http_origin; } } |
Thanks for your fast reply, but i still get the error:
For me with my bad english it sounds like, that there has been a disallowance before? |
@DJ0815 we all not Englishman, so could not be perfect in speaking :) As in https://stackoverflow.com/a/40193633 , you should add more headers to be working. For example apache Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept" And nginx of course add_header "Origin, X-Requested-With, Content-Type, Accept"; But i suggest that, you should do more research about headers. That headers usage might be dependent on your configuration/situation. It may be insecurable or unexpected behaviours for you. |
It's getting more curious (for me). As i thought i had set all headers correctly, i have changed all webistes to the same domain, so I could exclude this problem. But the Disount still was updated only at the default website, although you could see that the price was reloaded on checkout page on all websites.
|
Getting the same issue when we create for specifying payment method Magento, not recalculated rule which created in backend. But know I am using http://magento.stackexchange.com/questions/128580/magento-2-discount-depend-on-payment-method-does-not-work but this not Magento Specified solution |
Hi @vigoss-ru. |
this issue is more than one year old and still not fixed... many other issues too.... why??? because of so many not fixed issues, we have many trouble with our clients. |
In 2.1.8 the option is also not available in backend of magento. |
@vigoss-ru, thank you for your report. |
#distributed-cd |
@NikZh Thank you for investigating. @vigoss-ru thank you for your report. Please follow these guidelines for proper tracking of your issue. You can report Commerce-related issues in one of two ways: GitHub is intended for Magento Open Source users to report on issues related to Open Source only. There are no account management services associated with GitHub. |
any solution so far |
how about this issues? its happens on magento 2.3.0 |
Preconditions:
Steps to reproduce
Rule Name: Bank Transfer Payment
Status: Active
Websites: Main Website
Customer Groups: select all
Coupon: No Coupon
Uses per Customer: 0
From: blank
To: blank
Priority: 0
Public in RSS Feed: No
If ALL of these conditions are TRUE :
Payment Method is Bank Transfer Payment
Apply: percent of product price discount
Discount Amount: 2
Maximum Qty Discount is Applied To: 0
Discount Qty Step (Buy X): 0
Apply to Shipping Amount: No
Discard subsequent rules: No
Free Shipping: No
Apply the rule only to cart items matching the following conditions (leave blank for all items): nothing
Then I enable Bank Transfer Payment method, go to checkout page
Expected result
Actual result
Please give me an advice. How can make a discount on payment method on Magento 2. For Magento 1, it works well.
Thanks very much
The text was updated successfully, but these errors were encountered: