Artikel aus Shopware importieren und mit ERPNext Items verknüpfen #13
Labels
No labels
API
Artikel
B2B
B2C
Bestandssync
Bestellungen
DACH
DocType
Dokumentation
Grundgerüst
Import
Kategorien
Kunden
Lager
Mapping
Mehrsprachigkeit
Performance
Preise
Push
Scheduler
Schweiz
Steuern
Storefront
Sync
Varianten
Verbindung
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Frappe-Projekte/ecommerce_integrations#13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Shopware-Produkte über die Admin API abrufen und als ERPNext Items anlegen:
GET /api/product(mit Pagination)shopware6/api/product.pyImplemented in
ecommerce_integrations/shopware6/api/product.py(list_products()+import_products()), plusShopware Account.import_products()(whitelisted method + new "Import Products" button), and a newshopware_product_idCustom Field onItem.Research (Julian/Marcel): Julian only imports products one-at-a-time during order import (SDK-based, not our raw-
requestspattern), takes onlycategories[0], and dedups via anEcommerce ItemDocType. Marcel has a real paginated bulk importer with the samePOST search/productpagination shape we already use, but pulls in prices/stock/images/variants/brand/SEO — same overreach already rejected in #12. Notably Marcel's category-map builder filters on the exact sameItem Group.shopware_category_idfield name we picked independently in #12 — good confirmation, not attributed as copied.Design decisions taken (informed, not ported):
item_code == productNumberdirectly (noEcommerce Itemindirection needed).Item Group.shopware_category_id(from #12)."All Item Groups"when no category matches.Live verification against the real catalog:
POST /api/search/productneeds explicit{"associations": {"categories": {}}}to return the category m:n relation;categories[i].idmatchesItem Group.shopware_category_idvalues imported in #12.See
Projekt.md→ Architecture Decisions for the full writeup.