Skip Navigation

[Resolved] Upload file to (WooCommerce) user account

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to know how I can upload a file that can be downloaded from a User's (WooCommerce) My Account page.

Solution:
- You can create a custom file field or a group of custom file fields on User Profiles.
- You can use Types field shortcodes to display links to those files on the My Account page.
- Each User will see his or her own fields on the My Account page until the admin clears those custom fields.

A few limitations to be aware of:
- The My Account page is usually generated by a single shortcode woocommerce_my_account placed in the Page's content. You would have to place your Types field shortcodes somewhere outside that one shortcode, so the fields would appear before or after that shortcode. Or you would have to use custom code with the WooCommerce API to manipulate the contents displayed inside that account shortcode.
- Nothing will restrict these files from being downloaded by other Users. If another User is able to guess the URL of that file, it can be downloaded without restriction.

This support ticket is created 5 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Marcel 5 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#1401001

Hi,

Can I use ToolSet to let an admin upload a file to a customers WooCommerce my account page?

For example, the admin wants to upload a PDF with an instruction manual to the account page of a specific clients, and only that client will be able to download it. Or the admin wants to upload a quote for a specific client.

#1401107

Hello, here's what you can do with Toolset:
- You can create a custom file field or a group of custom file fields on User Profiles.
- You can use Types field shortcodes to display links to those files on the My Account page.
- Each User will see his or her own fields on the My Account page until the admin clears those custom fields.

A few limitations to be aware of:
- The My Account page is usually generated by a single shortcode woocommerce_my_account placed in the Page's content. You would have to place your Types field shortcodes somewhere outside that one shortcode, so the fields would appear before or after that shortcode. Or you would have to use custom code with the WooCommerce API to manipulate the contents displayed inside that account shortcode.
- Nothing will restrict these files from being downloaded by other Users. If another User is able to guess the URL of that file, it can be downloaded without restriction.

Let me know if you have questions about this.

#1401529

Hi Christian,

Thanks for your quick reply, I think I know enough for now.