Adding user-specific content to woocommerce account page
-
What is the best way to add content specific to a user within woocommerce?
Forgive me if there’s just no function for this I just can’t find anything.
Thank you!
-
Hello there,
For a better understanding can you please provide an example?
Do you mean specific content to your customers via subscriptions? Do you mean a user role in your site?
Also, please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.?
We’ll keep an eye on your response.
I’m not really sure, just whatever is the best method.
I guess if we can create infinite user roles and assign docs/pages to those roles that would work too.
I’m just trying to allow people based on their account (or roles) to view specific documents, which won’t be viewable to people not of that role/account and which I upload manually.I’m asking here because I feel like it should be a super easy thing and I’m probably just not searching correctly hah.
### WordPress Environment ### WordPress address (URL): https://abmxray.com Site address (URL): https://abmxray.com WC Version: 5.9.0 REST API Version: ? 5.9.0 WC Blocks Version: ? 6.1.0 Action Scheduler Version: ? 3.3.0 WC Admin Version: ? 2.8.0 Log Directory Writable: ? WP Version: 5.8.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.32 PHP Post Max Size: 32 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.71.0 OpenSSL/1.1.1d SUHOSIN Installed: – MySQL Version: 5.6.51-cll-lve Max Upload Size: 32 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 5.9.0 WC Database Prefix: wp_rschvaq7q1_ Total Database Size: 18.26MB Database Data Size: 16.38MB Database Index Size: 1.88MB wp_rschvaq7q1_woocommerce_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_woocommerce_order_itemmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_auto_updates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_blc_filters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_blc_instances: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_blc_links: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_blc_synch: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_comments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_doifd_lab_downloads: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_doifd_lab_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_doifd_lab_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_etd_manager: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_et_bloom_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_options: Data: 1.52MB + Index: 0.03MB + Engine InnoDB wp_postmeta: Data: 0.64MB + Index: 0.07MB + Engine MyISAM wp_posts: Data: 3.14MB + Index: 0.05MB + Engine MyISAM wp_rio_process_queue: Data: 0.04MB + Index: 0.02MB + Engine MyISAM wp_rschvaq7q1_actionscheduler_actions: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wp_rschvaq7q1_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_rschvaq7q1_actionscheduler_logs: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_rschvaq7q1_blc_filters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_blc_instances: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_blc_links: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_rschvaq7q1_blc_synch: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_comments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_doifd_lab_downloads: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_doifd_lab_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_doifd_lab_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_etd_manager: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_et_bloom_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rschvaq7q1_gf_entry: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_rschvaq7q1_gf_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_rschvaq7q1_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_rschvaq7q1_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rschvaq7q1_gf_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rschvaq7q1_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_rschvaq7q1_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_rschvaq7q1_icl_content_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_core_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_languages: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_rschvaq7q1_icl_languages_translations: Data: 0.11MB + Index: 0.11MB + Engine MyISAM wp_rschvaq7q1_icl_locale_map: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_message_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_mo_files_domains: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rschvaq7q1_icl_node: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_reminders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_strings: Data: 0.09MB + Index: 0.04MB + Engine MyISAM wp_rschvaq7q1_icl_string_batches: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_string_packages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rschvaq7q1_icl_string_positions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_string_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_string_translations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_translate: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_translate_job: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_translations: Data: 0.05MB + Index: 0.11MB + Engine MyISAM wp_rschvaq7q1_icl_translation_batches: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rschvaq7q1_icl_translation_status: Data: 0.03MB + Index: 0.01MB + Engine MyISAM wp_rschvaq7q1_imagify_files: Data: 0.06MB + Index: 0.08MB + Engine InnoDB wp_rschvaq7q1_imagify_folders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_rschvaq7q1_learndash_pro_quiz_category: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_learndash_pro_quiz_form: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_learndash_pro_quiz_lock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_learndash_pro_quiz_master: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_learndash_pro_quiz_prerequisite: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_learndash_pro_quiz_question: Data: 0.15MB + Index: 0.01MB + Engine MyISAM wp_rschvaq7q1_learndash_pro_quiz_statistic: Data: 0.03MB + Index: 0.01MB + Engine MyISAM wp_rschvaq7q1_learndash_pro_quiz_statistic_ref: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_rschvaq7q1_learndash_pro_quiz_template: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_learndash_pro_quiz_toplist: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_learndash_user_activity: Data: 0.01MB + Index: 0.04MB + Engine MyISAM wp_rschvaq7q1_learndash_user_activity_meta: Data: 0.07MB + Index: 0.07MB + Engine MyISAM wp_rschvaq7q1_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_login_redirects: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_options: Data: 4.42MB + Index: 0.13MB + Engine InnoDB wp_rschvaq7q1_postmeta: Data: 3.46MB + Index: 0.26MB + Engine MyISAM wp_rschvaq7q1_posts: Data: 1.42MB + Index: 0.09MB + Engine MyISAM wp_rschvaq7q1_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rschvaq7q1_termmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_rschvaq7q1_term_relationships: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_rschvaq7q1_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_ulgm_group_codes: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wp_rschvaq7q1_ulgm_group_details: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_um_metadata: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_uncanny_codes_codes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_rschvaq7q1_uncanny_codes_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_uncanny_codes_usage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rschvaq7q1_usermeta: Data: 0.12MB + Index: 0.05MB + Engine MyISAM wp_rschvaq7q1_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_rschvaq7q1_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_wc_customer_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_wc_order_product_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_wc_order_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_wc_product_meta_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_rschvaq7q1_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_wf301_404_logs: Data: 0.17MB + Index: 0.00MB + Engine InnoDB wp_rschvaq7q1_wf301_linkhero: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rschvaq7q1_wf301_redirect_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rschvaq7q1_wf301_redirect_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rschvaq7q1_wpr_rucss_resources: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_wpr_rucss_used_css: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_yoast_indexable: Data: 0.26MB + Index: 0.08MB + Engine MyISAM wp_rschvaq7q1_yoast_indexable_hierarchy: Data: 0.01MB + Index: 0.04MB + Engine MyISAM wp_rschvaq7q1_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_rschvaq7q1_yoast_primary_term: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rschvaq7q1_yoast_seo_links: Data: 0.05MB + Index: 0.02MB + Engine MyISAM wp_rschvaq7q1_yoast_seo_meta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wp_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_termmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_term_relationships: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_update_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_usermeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_yoast_seo_links: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_yoast_seo_meta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM ### Post Type Counts ### amn_exact-metrics: 1 attachment: 682 condition_group: 1 custom_css: 2 ed_download: 1 et_body_layout: 4 et_pb_layout: 51 et_template: 5 et_theme_builder: 1 groups: 3 nav_menu_item: 27 oembed_cache: 15 page: 49 post: 1 private-page: 1 restriction: 1 revision: 2 sfwd-certificates: 1 sfwd-courses: 1 sfwd-lessons: 9 sfwd-question: 88 sfwd-quiz: 10 um_directory: 1 um_form: 4 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (20) ### ManageWP - Worker: by GoDaddy – 4.9.10 Gravity Forms: by Gravity Forms – 2.5.15.1 WPML SEO: by OnTheGoSystems – 2.0.1 301 Redirects Pro: by WebFactory Ltd – 5.94 Code Snippets: by Code Snippets Pro – 2.14.3 Easy WP SMTP: by wpecommerce alexanderfoxc – 1.4.7 Imagify: by WP Media – 1.10 LearnDash LMS - Certificate Builder: by LearnDash – 1.0.3 LearnDash LMS - WooCommerce Integration: by LearnDash – 1.9.3.3 LoginWP (Formerly Peter's Login Redirect): by LoginWP Team – 3.0.0.6 LearnDash LMS: by LearnDash – 3.6.0.1 Uncanny Groups for LearnDash: by Uncanny Owl – 4.1.1 User Menus: by Code Atlantic – 1.2.7 WooCommerce Multilingual: by OnTheGoSystems – 4.12.3 WooCommerce: by Automattic – 5.9.0 Yoast SEO: by Team Yoast – 17.8 WP Rocket: by WP Media – 3.10.5 Divi Gravity Forms: by WP Tools – 6.6.2 WPML Media: by OnTheGoSystems – 2.7.0 WPML String Translation: by OnTheGoSystems – 3.2.0 ### Inactive Plugins (3) ### WPML Multilingual CMS: by OnTheGoSystems – 4.5.2 WP Rocket | Disable Page Caching: by WP Rocket Support Team – WP Rocket | Remove All .htacces Rules: by WP Rocket Support Team – ### Dropin Plugins (2) ### advanced-cache.php: advanced-cache.php object-cache.php: APCu Object Cache ### Must Use Plugins (3) ### installatron_hide_status_test.php: by – LearnDash LMS Multisite: by LearnDash – 1.0.0 ManageWP - Worker Loader: by GoDaddy – 1.0.0 ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: #8932 - /shop/ Cart: #8933 - /cart/ Checkout: #8934 - /checkout/ My account: #8935 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Divi Child Theme Version: 2.0 Author URL: Child Theme: ? Parent Theme Name: Divi Parent Theme Version: 4.14.2 Parent Theme Author URL: https://www.elegantthemes.com WooCommerce Support: ? ### Templates ### Overrides: – ### Action Scheduler ### Complete: 59 Oldest: 2021-11-15 11:59:39 -0800 Newest: 2021-12-14 10:29:53 -0800 ### Status report information ### Generated at: 2021-12-14 14:35:56 -08:00
And yup here’s this.
Thank you!
Hi there,
I’m just trying to allow people based on their account (or roles) to view specific documents, which won’t be viewable to people not of that role/account and which I upload manually.
Based on this response, one option is a membership plugin.
* For example:
https://woocommerce.com/products/woocommerce-memberships/* This will need to restrict content, refer to this article below:
https://docs.woocommerce.com/document/woocommerce-memberships-restrict-content/Hope this provides clarity.
We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.
- The topic ‘Adding user-specific content to woocommerce account page’ is closed to new replies.