I have a Magento site where I have written a PHP page that allows a customer to toggle a supplier on and off, the page works correctly as is, the problem is the page reloads and puts the customer back to the top each time, I need someone to write JQuery Ajax so that it can run the php code, and reload the button without the customer losing the position on the page or reloading the page.
My code consists of two files (attached)
In file [login to view URL]
on line 50-54, and 62-66 the form button (that is displayed on line 92) is defined based on whether a supplier is currently activated or deactivated, as they will show two different colors, and have to different functions depending on the answer.
When the button is clicked it will run file [login to view URL]
once the code runs it redirects back to the choose_supplier page
I would like it so when the button is clicked the page itself doesn't move or reload, but the php code runs that updates the information correctly, and the button is replaced with the correct one for the current status (activated or deactivated).
Hello, I've a lot of experience in this kind of project, so I can start right now and get it done in a few dozen minutes. Feel free to contact me to discuss further !
20 фрилансеров(-а) в среднем готовы выполнить эту работу за $157
Hi I checked your requirement based on magento website which you want using Ajax so without reference it will show the result.I checked attached both PHP [login to view URL] you allow me then I do more discuss with you.
Hello I have read your project description. I am ready to work on your ajax part to turn supplier activate/deactivate button without page reloading.