Support » Plugin: WooCommerce PDF Invoices » Use WP APIs for File System Operations

  • Hi, thanks for the awesome plugin! We’re looking to purchase the paid version to generate invoices for our ElasticPress.io customers, but we run our site on a cluster and use the S3 plugin from Human Made to do this.

    I’ve seen that you’ve shared a couple of filter-based workarounds for folks who use S3 but also have temp access to their uploads folder (thank you!), but unfortunately we’d need to filter the opposite direction (override the direct uploads path with the S3 one), because we have 3 web heads and no shared file system, meaning all uploads must immediately go to S3.

    Before we do this, I thought I’d ask if you think it would be reasonable to replace the direct file system calls in the plugin with WP API calls (still writing to “uploads” but with the benefit of writing wherever the API itself is filtered to write).

    We might be able to provide a PR if you feel our proposed approach will work–just let me know your thoughts!

    Best,
    Vasken

    • This topic was modified 5 months, 2 weeks ago by vhauri.
Viewing 1 replies (of 1 total)
  • Plugin Author Bas Elbers

    (@baaaaas)

    Hi Vasken,

    Maybe override the WPI_ATTACHMENTS_DIR constant in /includes/woocommerce-pdf-invoices.php?

    Feel free to send me your resolution on this and I will try to find the time to implement it with the next release.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.