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 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 5 years, 1 month ago.
Assisted by: Christian Cox.