mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 16:35:47 +02:00
[GH-ISSUE #991] feat: Order-to-Project automation with product-file mapping #692
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#692
Loading…
Add table
Add a link
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?
Originally created by @legend813 on GitHub (Apr 15, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/991
Originally assigned to: @maziggy on GitHub.
Feature Request
Background / Use Case
I run an online shop (WooCommerce) and have already built an n8n workflow that calls Bambuddy's API to create a project whenever a new order comes in. This works today, but the integration is shallow: the project is created empty, and I still have to manually add files and queue the prints.
Workflow today:
WooCommerce order → n8n → POST /api/projects → empty project in BambuddyWhat I want:
WooCommerce order → n8n (or direct webhook) → Bambuddy creates project + adds correct files at correct quantities + queues prints automaticallyProposed Feature
1. Product → File mapping
A configuration table (settable via UI and API) that maps a product identifier (SKU, product ID, or name) to one or more print files already stored in Bambuddy's File Manager:
2. Order intake endpoint (or extended project creation)
Extend the existing
POST /api/projectsendpoint (or addPOST /api/orders) to accept order line items:Bambuddy would:
auto_queue: true/false)3. Auto-queue / auto-print (optional, configurable)
A per-project or per-mapping flag that automatically pushes resolved print jobs into the print queue so they start printing as soon as a printer is available — without any manual step.
Optional Extension: Native WooCommerce Integration
Instead of requiring users to enter SKUs by hand, Bambuddy could connect directly to a WooCommerce store and:
a) Pull products automatically
Configure a WooCommerce connection (store URL + REST API key) in Bambuddy's Settings. Bambuddy fetches the product catalogue via the WooCommerce REST API and caches it locally.
b) Display products in the mapping UI
The product→file mapping screen shows a searchable dropdown of real WooCommerce products (name + SKU + thumbnail) instead of a plain text field. No copy-pasting of SKUs required.
c) Optional: receive orders via WooCommerce webhook
Register a WooCommerce webhook (
order.created) that posts directly to Bambuddy — eliminating the need for n8n or any other middleware entirely:Configuration needed (Settings → Integrations → WooCommerce):
https://myshop.comWhat stays generic (no WooCommerce required):
The core mapping table and order intake API remain shop-agnostic. Shopify, custom shops, or n8n workflows can all POST line items using SKUs — WooCommerce is just one optional source that enables the richer UI.
Why this matters
Implementation notes
product_mappingsDB tablesource,external_order_id, andline_items— no full rework neededCurrent workaround
n8n workflow:
Schedule Trigger → JS → WooCommerce getAll orders → Switch (new/existing) → HTTP Request POST to Bambuddy → JSThe project gets created but files and print quantities must be added manually.
@maziggy commented on GitHub (Apr 22, 2026):
I don't think that we are going to implement this, because it would be tailored to your specific requirements which would certainly not fit the workflow of other users.
But you can do all this with the existing API. Check the API browser under settings.