Let me clarify a little:
My virtuemart store has some extra functionality, specifically Dropshipping from multiple locations
I am using a Virtuemart Extension called Dropshipping Manager by Webkul.
It does most of what I am looking for: It divides a VM order into multiple "Warehouse" location sub-orders and handles emails sent to warehouses when specific order status is set.
The functionality I am missing is an ability to create and handle custom PDF attachments that need to be generated.
An example of the flow I am describing would be something like this:
- Customer buys 2 products from 2 different locations, pays and creates an order.
- Store admin reviews orders and accounts and changes status from "Pending" to "Ready for Shipping"
- VM Dropshipping sends two emails, (1 to each warehouse) with a notification to dropship the product
At this point we would need to be able to create and save 4 custom pdf's:
- 2x internal PO's: from Store to Warehouse1 and store to warehouse 2 - each showing the order info and items relevant to that warehouse
- 2x general Delivery Note's: 1 to accompany each of the 2 shipments from warehouses 1,2 to customer
PO and Delivery Notes are the same content wise.
First Question: In general what is the best way to use Fabrik to create a standalone PO/DN manager that programmatically creates pdf's and saves them to a folder making them available for other extension to attach them to emails.?
So far I am able through list joins to have a form/detail page with all of the information of an order: (VM and VMDropshipping lists that show