-
Notifications
You must be signed in to change notification settings - Fork 110
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
Bad ajax call #65
Comments
This does not fix it. The script now looks for: |
Hi @mikehenze please be sure that the modified mailchimpjs.js is loaded |
It is. |
Open yoursiteurl/pub/static/frontend/Magento/luma/en_US/Ebizmarts_MailChimp/js/mailchimpjs.js and confirm that in the ajax call you have with an / at front |
It seems to be not working with minified js mailchimpjs.min.js (does not work) mailchimpjs.js (works)
|
works for me. I put magento in production mode, enabled Advanced/Developer/JavaScript Setting/Merge JavaScript Files and Advanced/Developer/JavaScript Setting/Minify JavaScript Files rm -rf pub/static Try also only with Advanced/Developer/JavaScript Setting/Minify JavaScript Files and works. |
According to Chrome console it is loaded the js from: So I guess running |
ok great |
I have installed sometime ago around Augost time and I didn't use until no! Is there an update version with this bug fix if there is can you point to the fixed version please? Never Mind I've checked this release: Release 1.0.25 it contains the "/" thanks. |
Why do you make a POST request and not a GET request? |
ok, so i fix correctly by myself changing it to GET. Do you know when the version this fix will be released? |
Hello,
I recently installed Mailchimp for Magento 2 on a site I programmed. First thing I noticed was that there was a 404 for an ajax request on the cart page. I was able to fix this error, by altering this file:
/app/code/Ebizmarts/MailChimp/view/frontend/web/js/mailchimpjs.js
Changing the url of the ajax request from this:
url: 'mailchimp/script/get',
To:
url: '/mailchimp/Script/Get',
While I don’t believe it’s case sensitive, the main fix was adding in the slash in the beginning so that the ajax request goes to the correct “Get” class in your module.
If this is a legit fix, would it be possible for you guys to roll this into a new version so that when I use this module in the future, I don’t have to keep remembering to make this change?
Thanks!
Michael Zenner | Senior Developer
The text was updated successfully, but these errors were encountered: