Woocommerce - ERPNext integration products from ERPNext to Woocommerce

Hello,

I have been able to connect at last Woocommerce and ERPNext.

I am beginning to check things, and it seems it is working fine. When a order is made on Woocommerce website, the Client, product and sales order are created in ERPNext. This is great!!

But I was wondering if this works in the other way. I was thinking that my normal procedure would be to have products on ERPNext, and the products that I want to sale online are replicated on Woocommerce.

I have been trying to achieve this, but without much luck.

I have been reading several things and I am quite sure this is possible, but I’m unable to get it working. I am using v13, and Woocommercee integration by default on ERPNext wihout any app.

I have seen a woocommerce_id for items on ERPNext, but can’t see the field when the item is created on ERPNext. Somwhere I read that if I fill this, the Item would be synced on Woocommerce.

Many thanks and kind regards from Spain,

Alb

Try this:

Hi @flexy2ky,

Many thanks for your reply.

I have installed ERPNext using Docker. I was looking at your Connector before, but I am very confused about the way of installing Apps on ERPNext Docker version.

Thanks and kind regards from Spain,

Alb

Hi @flexy2ky,

I have been able at last to try to install your connector.

I am using:

ERPNext: v13.27.0 (version-13)
Frappe Framework: v13.26.1 (version-13)
WooCommerce Connector: v1.7.0 (master)

Trying to install it I got:

Installing woocommerceconnector...
Updating DocTypes for woocommerceconnector: [====================] 100%
An error occurred while installing woocommerceconnector: Module import failed for Test Runner (frappe.core.doctype.test_runner.test_runner Error: No module named 'frappe.core.doctype.test_runner')
Traceback (most recent call last):
  File "apps/frappe/frappe/modules/utils.py", line 238, in load_doctype_module
    doctype_python_modules[key] = frappe.get_module(module_name)
  File "apps/frappe/frappe/__init__.py", line 1190, in get_module
    return importlib.import_module(modulename)
  File "env/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'frappe.core.doctype.test_runner'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "apps/frappe/frappe/commands/site.py", line 293, in install_app
    _install_app(app, verbose=context.verbose)
  File "apps/frappe/frappe/installer.py", line 188, in install_app
    add_to_installed_apps(name)
  File "apps/frappe/frappe/installer.py", line 215, in add_to_installed_apps
    post_install(rebuild_website)
  File "apps/frappe/frappe/installer.py", line 369, in post_install
    init_singles()
  File "apps/frappe/frappe/installer.py", line 386, in init_singles
    doc = frappe.new_doc(single)
  File "apps/frappe/frappe/__init__.py", line 993, in new_doc
    return get_new_doc(doctype, parent_doc, parentfield, as_dict=as_dict)
  File "apps/frappe/frappe/model/create_new.py", line 24, in get_new_doc
    frappe.local.new_doc_templates[doctype] = make_new_doc(doctype)
  File "apps/frappe/frappe/model/create_new.py", line 39, in make_new_doc
    doc = frappe.get_doc(
  File "apps/frappe/frappe/__init__.py", line 1067, in get_doc
    doc = frappe.model.document.get_doc(*args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 77, in get_doc
    controller = get_controller(doctype)
  File "apps/frappe/frappe/model/base_document.py", line 82, in get_controller
    site_controllers[doctype] = _get_controller()
  File "apps/frappe/frappe/model/base_document.py", line 64, in _get_controller
    module = load_doctype_module(doctype, module_name)
  File "apps/frappe/frappe/modules/utils.py", line 240, in load_doctype_module
    raise ImportError(
ImportError: Module import failed for Test Runner (frappe.core.doctype.test_runner.test_runner Error: No module named 'frappe.core.doctype.test_runner')

Should I do anything about the error?

I can see About says the connector is installed but I am not sure it is installed or not. I see the same I was seeing with ERPNext native connector.

Thanks and kind regards,

Alb

Hi, that error is mostly harmless and installation went fine.

Anyway we have fixed root cause of that error: fix: remove old test runner doc by ankush · Pull Request #16929 · frappe/frappe · GitHub

3 Likes

Thanks!