0

I was wondering what the best way to achieve the following:

  1. Customer makes an order (normal functionality)
  2. Once order is placed, the admin needs to upload a pdf attachment related to the order
  3. The customer can then view the attachment(s) when viewing the order

I can see there are plugins where the custom can upload supporting files, but none that cater for the admin to do this.

1

2 Answers 2

1

Why not add a new custom field for that product?

custom product meta
(source: chizzledesigns.com)

So once your client generates the PDF they can upload it just like normal into the media gallery and add the link (or at least the file name) into the Order PDF field for that specific order.

Next you would need to decide how to show the user that in your theme but querying for that meta value should not be difficult.

0

With default woocommerce functionality the main way to do this is to create virtual downloadable product (but not available on shop pages) and upload your pdf file there. Then when the order would be ready, you should grant access to that virtual product at the order edit page.

1
  • Yes, that would be the best possible solution for now but it's very tedious and cumbersome. Imagine creating virtual/downloadable product and attaching the file there for each order.
    – Jeboy
    Aug 8, 2018 at 2:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.