added command to laod products from woo.enreda.coop, required extra env variables
This commit is contained in:
@@ -27,6 +27,11 @@ def get_wcapi_instance(url, key, secret, version="wc/v3"):
|
||||
|
||||
|
||||
def migrate_shop_products(url, key, secret, version="wc/v3"):
|
||||
"""Tries to connect to WooCommerce site @ url with given credentials
|
||||
|
||||
If succesful, returns list of Product instances created
|
||||
|
||||
"""
|
||||
# get wcapi
|
||||
wcapi = get_wcapi_instance(url, key, secret, version)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user