Home โ€บ Modules โ€บ phytoerpconnector

phytoerpconnector

Bi-directional sync between PrestaShop 8 and ERPNext v15 via REST API โ€” orders, customers, products, and invoices.

Foundation v1.0 PrestaShop 8 Browse Source on GitHub โ†—
modules/phytoerpconnector/
Direct path in the repo โ†’ all PHP, SQL, templates, and assets
Open on GitHub โ†—

Overview

Keeps your PrestaShop store and ERPNext accounting/inventory system in sync automatically. No manual double-entry. When a customer places an order, a Sales Order appears in ERPNext. New customer registrations create Customer records. Product changes push across. Invoices pull back.

Sync Direction

EventPrestaShop โ†’ ERPNext
New orderCreates Sales Order
New customerCreates Customer record
Product updatePushes product data
Invoice created (ERPNext)Pulls back to PS order history

Features

  • Full sync log for audit: every API call logged with status and response
  • Configurable ERPNext base URL, API key, and secret from PS admin
  • Retry queue for failed sync attempts
  • Manual “Sync Now” button per order from the order detail page

Source Layout

PathPurpose
phytoerpconnector.phpModule entry + hook registration
classes/ErpNextClient.phpREST API wrapper (auth, requests, retry)
classes/SyncLog.phpDB model for the audit log
controllers/admin/Sync log viewer + settings page
sql/install.sqlCreates phyto_erp_sync_log table
View Full Source โ†— โ† Back to All Modules