bloomsei / sendy-prestashop

Prestashop Sendy newsletter module
MIT License
2 stars 5 forks source link

How to point to correct folder? #3

Open Dar-us-Salam opened 8 years ago

Dar-us-Salam commented 8 years ago

Hi, The form I have is located at https://dar-us-salam.com/kids/games-toys/ . When subscribing it displays this error "There was an error please try again." and in the browser inspect log it shows this: 404 Error GET https://dar-us-salam.com/kids/modules/sendynewsletter/subscribe.php

The problem is that it should be going one folder back to this URL: https://dar-us-salam.com/modules/sendynewsletter/subscribe.php

Can you please let me know where I can correct this?

Dar-us-Salam commented 8 years ago

I figured it out. It was a line in the sendynewsletter.js file in the sendynewsletter\views\js folder. I changed the line 13 url: '../modules/sendynewsletter/subscribe.php',

to the full URL: url: 'https://dar-us-salam.com/modules/sendynewsletter/subscribe.php',

And now it works flawlessly. Alhamdulillah