-
Notifications
You must be signed in to change notification settings - Fork 113
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
response.status_code on insert a product #99
Comments
response is a empty array My server is a litepeed and the log below:
|
Hope this helps, remeber that your CSV file MUST have all the headers equal to whatever info you want to update, for example if you want to update a products name (or add) you need to have a 'name' header in your csv file and etc.. import pandas as pd Define WooCommerce API credentialsWC_URL = 'insert website here' Define a global variable for the root windowroot = None class TextHandler(logging.Handler):
def configure_wc_api(): def make_api_call(wcapi, method, endpoint, data=None, retries=1, delay=0.5):
def process_csv(wcapi, filename, progress_var, total_rows_label):
def create_product_data(row):
def process_product(data, row_index, total_rows, action): def process_batch(wcapi, batch_data): def select_and_process_csv(progress_var, total_rows_label):
def main():
if name == "main": |
Since GitHub makes a mess with the code you can use this file and paste it on your IDE |
I have been trying to use a simple code to post a product on WooCommerce from Python.
Im trying this code:
I have gotten the "200" status.
Notthing was post on woocommerce.
After i tryed delete with the code:
print(wcapi.delete("products/108", params={"force": True}).json())
And deleted success.
Where am I going wrong?
Tks
The text was updated successfully, but these errors were encountered: