Need Work on a Web Site Need Work on a Web Site

Closed Posted 3 years ago Paid on delivery
Closed Paid on delivery

There is an application state management problem.

The application state, representing which city the user selected, is being stored in several places:

the local Storage cache, javas script, and the MySQL database.

All of those need to be synchronized.

That's why every time you click on a city or state or country,

it's changing the local Storage. city_id and updating the server so that the preferred city in the database is updated too.

I don't know where the list of countries, provinces and cities is coming from, but I think it's an AJAX call that gets initiated after clicking on the menu items in the country-state-city selection dialog box.

So, this is the reason why you want to use a client-side application framework like React or Elm, because it manages application state for you. Whoever works on it can try to hack it to make it work again, but you'll likely run into these bugs again.

If you want to just hack it, I recommend just resetting the application state (user's selected location) after each click, and syncing it with the server.

Make sure it is bug free first. This will make it a little bit slow (which I know you don't like),

but at least it will work correctly.

Once it works correctly, then you can look into ways to speed it up,

like caching the list of countries in Javas script or whatever.

I think the key is to track down where the state is being stored in Java script and local Storage and then make sure it is consistent with the state in the MySQL database, clearing it each click if you have to. Then make sure the state of the dialog box is consistent with the last user click (ie. if the clicked on Aberdeen last, then when you click on "Select Country, State, City" again, make sure that Aberdeen cities show up next time

Also the default city and state is San Francisco California, this is also default in the list of city's and if you click on the logo to the top left it will default back to San Francisco California

So I'm looking for someone to fix these things first before trying another application as it worked fine before

The other issue I have has been this long before this other search problem is in the screen shot you will see you can select default city, state, countries this is not working either in my admin panel.

To view these issues you will need to create an account at [login to view URL]

Once signed up and To gain access you will need to add a pic to your profile there was a pop up box asking for a pic it is no longer working either but you will know when you need to add a pic as you will come to your profile page and you will see boxes to add pics at that point ad one so you can get in to the site view screen shot of page were to add pic

Thanks

PHP JavaScript MySQL AJAX jQuery / Prototype

Project ID: #28923091

About the project

5 proposals Remote project Active 3 years ago

5 freelancers are bidding on average €501 for this job

extreamcode

HI There, I can assist you with Web Site. I am very passionate about quality of my work, You will be pleased working with me. Let's have a quick chat to discuss it further. I am confident with my work and that is why More

€500 EUR in 15 days
(95 Reviews)
7.8
Misstaqe

Hi, there. Happy New Year! Hope you still stay safe. Your post caught my eyes so I read it very carefully. If you're really looking for a serious web developer, please keep in mind that the best fit is right here ready More

€700 EUR in 10 days
(11 Reviews)
4.9