Plugin Contributor
Ewout
(@pomegranate)
Thread Starter
David
(@loano1)
Hi @pomegranate ,
Thanks for the link! Unfortunately I struggle to set up the filter hook. How has this to look if
my database file path is according to WooCommerce: /var/www/clients/client1/web117/web/wp-content/uploads/woocommerce_uploads/
my Webspace path to wpo_wcpdf:
/web/wp-content/uploads/wpo_wcpdf/attachments
Example where I actually see invoices in admin:
/wp-admin/admin-ajax.php?action=generate_wpo_wcpdf&document_type=invoice&order_ids=37674&_wpnonce=028b5b8562
Thanks in advance for any help!
Plugin Contributor
kluver
(@kluver)
Hi @loano1,
In this case the following should work for you:
add_filter('wpo_wcpdf_tmp_path', function( $tmp_base ) {
return trailingslashit(dirname(ABSPATH)).'woocommerce-invoices/';
});
The trailingslashit(dirname(ABSPATH)) part will point to /var/www/clients/client1/web117/ and at the end we add the woocommerce-invoice folder.
-
This reply was modified 5 years, 8 months ago by
kluver.
-
This reply was modified 5 years, 8 months ago by
kluver.