Reshav-Paul / grodudes_app

A grocery app made with flutter and wordpress/woocommerce backend
MIT License
13 stars 6 forks source link

help config #7

Closed NicadoX closed 3 years ago

NicadoX commented 3 years ago

how do I set up the app? I change the woocommerce key but it doesn't work. could you inform me simple tutorial

Reshav-Paul commented 3 years ago

Have you changed the url to point to your site?

My advice would be to check the http response you are getting for the common get requests like getting products and categories.

Most probably you can get a hint of what's going wrong there.

NicadoX commented 3 years ago

Have you changed the url to point to your site? Yes

url: 'url',
consumerKey: '*******************************************************',
consumerSecret: '*******************************************************',

"Failed to load data. Please Check your Internet Connection"

Reshav-Paul commented 3 years ago

In main.dart file find the loadData() function. Inside it there is a section where I check if the site is in maintenance mode. Comment out that section or remove it because that was a custom implementation and won't work in your case.

You can find it in the first try...catch block. Remove it and see if it works.

NicadoX commented 3 years ago

I tried to remove however it generated this error

error https://pastebin.com/rb1UiKBN

my main.dart https://pastebin.com/g363RuwA

Reshav-Paul commented 3 years ago

You have removed the line Function loadData.... along with the try...catch block. That's a syntax error.

NicadoX commented 3 years ago

Solved, thank you very much

Reshav-Paul commented 3 years ago

Great. Closing this then.