Skip to content
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

Model WooShippingMethod different Woocommerce docs #59

Open
HaoLC opened this issue May 9, 2021 · 3 comments
Open

Model WooShippingMethod different Woocommerce docs #59

HaoLC opened this issue May 9, 2021 · 3 comments

Comments

@HaoLC
Copy link

HaoLC commented May 9, 2021

I call api and model return null value.

@christmichee123
Copy link

Hi ! Can you send a screenshoot of your issue?

@HaoLC
Copy link
Author

HaoLC commented May 15, 2021

I used getShippingMethods() and then is return value.

image

I looked at your model and it is different from JSON response example on link https://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-shipping-methods
image

@christmichee123
Copy link

okay i see. Already know that in addition to the model it uses a woocommerce class to call the model as a kind of getter. this method collects some information and leaves others intentionally. my solution and this is the track I have been exploring since this morning is to create a class that will extend the ShippingModel class in order to overload it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants