The Google Drive upload feature automatically saves generated documents (like invoices, packing slips, or shipping labels) directly to your Google Drive account when processing batch jobs for both orders and draft orders. This eliminates manual downloading and uploading, keeping your documents organized in the cloud.
Note: This feature works for both regular orders and draft orders.
Why Use Google Drive Integration?
Uploading to Google Drive helps you:
- Automate Document Storage: No manual downloading and uploading
- Stay Organized: Documents automatically sorted into folders
- Access Anywhere: View documents from any device
- Share Easily: Share folders with team members or accountants
- Backup Automatically: Documents safely stored in the cloud
- Save Time: No manual file management
- Integrate Workflow: Connect with other Google Workspace tools
When to Use Google Drive Upload
For Orders
- Generating invoices for multiple orders
- Creating packing slips for fulfillment
- Producing shipping labels in bulk
- Generating receipts or order confirmations
- Creating custom documents for orders
- Backing up important order documents
- Sharing documents with accounting teams
- Archiving documents for compliance
For Draft Orders
- Generating quotes or proposals
- Creating proforma invoices
- Producing order summaries for approval
- Backing up draft order documentation
- Sharing draft order details with sales teams
Before You Start
Requirements
- Google account with Drive access
- Permission to connect third-party apps
- Sufficient Google Drive storage
- Authorization to configure integrations
Initial Setup
- Connect your Google Drive account
- Authorize document upload permissions
- Configure folder structure
- Set up naming conventions
Setting Up Google Drive Integration
1. Connect Google Drive
- Go to the Template Design page
- Locate the Google Drive integration section
- Click Connect or Authorize
2. Authorize Access
- Sign in with Google
- Select your Google account
- Review requested permissions
- Click Allow
Permissions typically requested:
- View and manage Google Drive files
- Create folders
- Upload files
3. Configure Folder Structure
The system supports the following directory hierarchies:
- Main Folder: All documents uploaded to one folder
- Year > Month > Day
- Year-Month-Day
- Year > Month-Day
4. Set Naming Conventions
Configure file naming in Localization → Document File Name using Twig variables.
Order-{{ order.name }}-Invoice.pdf{{ order.created_at|date('Y-m-d') }}-{{ order.name }}.pdf{{ order.customer.first_name }}-{{ order.name }}.pdf
5. Save Configuration
- Review all settings
- Click Save or Update
- Test with a single document
Using Google Drive Upload in Batch Jobs
Step-by-Step Process
1. Select Orders or Draft Orders
- Filter and select the required orders
- Verify selection before proceeding
2. Choose Document Type
- Invoices
- Packing slips
- Shipping labels
- Custom documents
3. Enable Google Drive Upload
- Enable Upload to Google Drive
- Confirm folder and naming options
4. Process Batch Job
- Click Generate and Upload
- Monitor progress in Batch Jobs
Best Practices
- Use consistent folder structures
- Avoid special characters in file names
- Monitor Google Drive storage usage
- Limit access to sensitive documents
- Use Shared Drives for team access
Troubleshooting
- Reconnect Google Drive if authorization expires
- Check storage space and permissions
- Retry failed batch jobs
- Verify destination folder exists
Next Steps
- Run a test batch job
- Set up folder sharing
- Automate recurring batch uploads
- Monitor and optimize storage usage