Restrict the purchase of products to customers who have already purchased
-
Is there any way to prevent a customer from buying a course (product) that he or she has previously purchased?
I am running a virtual academy with Woocommerce and Woocommerce Membership.
What I want to avoid is that it happens again, that a customer has bought by mistake a course that he had already bought, with the consequent disorder of cancelling the order and making the refund.
-
Hi @kildom
What is the exact name of the plugin that you are using for Memberships. Also, do you have a specific plugin to sell courses?
Could you 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”.? Once you’ve done that, paste it here in your response.Hi,
for membership: woocommercemembershipstatus:
### WordPress Environment ### WordPress address (URL): https://francislamadrid.com Site address (URL): https://francislamadrid.com WC Version: 4.0.1 REST API Version: ? 1.0.7 WC Blocks Version: ? 2.5.14 Action Scheduler Version: ? 3.1.4 WC Admin Version: ? 1.0.3 Log Directory Writable: ? WP Version: ? 5.3.2 - Hay una versión nueva de WordPress disponible (5.4) WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: es_ES External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.2 PHP Post Max Size: 128 MB PHP Time Limit: 60 PHP Max Input Vars: 1000 cURL Version: 7.62.0 OpenSSL/1.0.2k SUHOSIN Installed: – MySQL Version: 5.5.5-10.1.43-MariaDB-cll-lve Max Upload Size: 128 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.0.1 WC Database Prefix: wp_ Tama?o total de la base de datos: 13.33MB Tama?o de los datos de la base de datos: 11.75MB Tama?o del índice de la base de datos: 1.58MB wp_woocommerce_sessions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_items: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_order_itemmeta: Data: 0.05MB + Index: 0.04MB + Engine MyISAM wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_actions: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_cartflows_ca_cart_abandonment: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_cartflows_ca_email_history: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cartflows_ca_email_templates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cartflows_ca_email_templates_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_commentmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_comments: Data: 0.05MB + Index: 0.03MB + Engine MyISAM wp_huge_itslider_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_huge_itslider_params: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_huge_itslider_sliders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_imagify_files: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_imagify_folders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mailchimp_carts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mailchimp_jobs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ms_snippets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_options: Data: 2.47MB + Index: 0.09MB + Engine MyISAM wp_postmeta: Data: 3.93MB + Index: 0.43MB + Engine MyISAM wp_posts: Data: 0.83MB + Index: 0.09MB + Engine MyISAM wp_queue: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rank_math_404_logs: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_rank_math_internal_links: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wp_rank_math_internal_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rank_math_redirections: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rank_math_redirections_cache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rank_math_sc_analytics: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_redirection_404: Data: 0.46MB + Index: 0.15MB + Engine MyISAM wp_redirection_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_redirection_items: Data: 0.00MB + Index: 0.02MB + Engine MyISAM wp_redirection_logs: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_snippets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_swpm_membership_meta_tbl: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_swpm_membership_tbl: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_swpm_members_tbl: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_swpm_payments_tbl: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_termmeta: Data: 0.00MB + Index: 0.01MB + 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.01MB + Engine MyISAM wp_tm_taskmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_tm_tasks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ulp_campaigns: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ulp_campaign_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ulp_layers: Data: 0.31MB + Index: 0.01MB + Engine MyISAM wp_ulp_popups: Data: 0.08MB + Index: 0.00MB + Engine MyISAM wp_ulp_subscribers: Data: 0.22MB + Index: 0.01MB + Engine MyISAM wp_ulp_targets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ulp_webfonts: Data: 0.05MB + Index: 0.01MB + Engine MyISAM wp_usermeta: Data: 0.17MB + Index: 0.09MB + Engine MyISAM wp_users: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wp_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_product_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfBlockedIPLog: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfBlocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfConfig: Data: 1.46MB + Index: 0.01MB + Engine MyISAM wp_wfCrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfFileChanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfFileMods: Data: 0.25MB + Index: 0.06MB + Engine MyISAM wp_wfHits: Data: 0.33MB + Index: 0.12MB + Engine MyISAM wp_wfHoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfIssues: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wfKnownFileList: Data: 0.81MB + Index: 0.10MB + Engine MyISAM wp_wfLiveTrafficHuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfLocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfLogins: Data: 0.04MB + Index: 0.01MB + Engine MyISAM wp_wfNotifications: Data: 0.03MB + Index: 0.00MB + Engine MyISAM wp_wfPendingIssues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfReverseCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfSNIPCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfStatus: Data: 0.08MB + Index: 0.04MB + Engine MyISAM wp_wfTrafficRates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yoast_seo_links: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wp_yoast_seo_meta: Data: 0.02MB + Index: 0.03MB + Engine MyISAM ### Post Type Counts ### acf-field: 13 acf-field-group: 6 amn_mi-lite: 2 attachment: 253 aula_virtual: 1 aviso: 7 borrador: 3 cartflows_flow: 1 cartflows_step: 6 custom_css: 1 dtbaker_style: 9 elementor_library: 45 et_pb_layout: 32 funnel_mtr: 1 generate_page_header: 2 landing: 6 lp_course: 1 lp_order: 1 mc4wp-form: 2 ml-slider: 3 moldea_tu_realidad: 6 nav_menu_item: 21 oembed_cache: 5 page: 33 post: 23 product: 3 programa: 2 programa_game0: 6 revision: 110 shop_coupon: 1 shop_order: 103 swpm_payment_button: 1 tribe_events: 5 tribe_organizer: 5 tribe_venue: 5 wc_membership_plan: 3 wc_user_membership: 15 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (25) ### Action Scheduler: por Automattic – 3.1.0 Advanced Custom Fields: por Elliot Condon – 5.8.9 CartFlows: por CartFlows Inc – 1.5.3 Editor clásico: por Colaboradores de WordPress – 1.5 Code Snippets: por Code Snippets Pro – 2.14.0 Custom Post Type UI: por WebDevStudios – 1.7.4 Easy Theme and Plugin Upgrades: por Chris Jean – 2.0.1 Ele Custom Skin: por Dudaster.com – 1.4.0 Elementor Pro: por Elementor.com – 2.9.2 Elementor: por Elementor.com – 2.9.7 GP Premium: por Tom Usborne – 1.9.1 Imagify: por WP Media – 1.9.9 Mailchimp for WooCommerce: por Mailchimp – 2.3.6 Make Column Clickable Elementor: por Fernando Acosta – 1.3.1 PixelYourSite: por PixelYourSite – 7.1.7 Rank Math SEO: por Rank Math – 1.0.41.2 UpdraftPlus - Backup/Restore: por UpdraftPlus.Com DavidAnderson – 1.16.23 WooCommerce Cart Abandonment Recovery: por CartFlows Inc – 1.2.5 Checkout Field Editor for WooCommerce: por ThemeHigh – 1.4.2 Advanced Order Export For WooCommerce: por AlgolPlus – 3.1.3 WooCommerce Email Customizer: por cxThemes – 3.33 – No probado con la versión activa de WooCommerce WooCommerce Memberships: por SkyVerge – 1.17.1 WooCommerce: por Automattic – 4.0.1 WP-Optimize - Clean, Compress, Cache: por David Anderson Ruhani Rabin Team Updraft – 3.0.19 WP-Usuario-Avatar: por flippercode – 2.2.5 ### Inactive Plugins (3) ### Advanced Database Cleaner: por Younes JFR. – 3.0.0 Redirection: por John Godley – 4.7.1 WP Rocket: por WP Media – 3.5.0.4 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: – Force SSL: ? Currency: EUR (€) Currency Position: right 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 ### Base de la tienda: #2460 - /tienda/ Carrito: #2461 - /carrito/ Finalizar compra: #2462 - /finalizar-compra/ Mi cuenta: #2463 - /mi-cuenta/ Términos y condiciones: #2651 - /terminos-y-condiciones/ ### Theme ### Name: GeneratePress Child Version: 0.1 Author URL: https://edge22.com Child Theme: ? Parent Theme Name: GeneratePress Parent Theme Version: 2.4.2 Parent Theme Author URL: https://tomusborne.com WooCommerce Support: ? ### Templates ### Overrides: La version 2.5.0 de generatepress_child/woocommerce/emails/customer-on-hold-order.php está obsoleta. La versión del núcleo es la 3.7.0 Outdated Templates: ? Aprende cómo actualizar ### Memberships ### Restriction mode:: Redirigir a la página Public content:: Productos: 1 item Excluded from discounts:: – Membership plans:: 2 Moldea Tu Realidad:: Miembros: 0Access method: compra de producto(s)Duración de acceso: Ilimitado El Secreto del Desdoblamiento del Tiempo:: Miembros: 15Access method: compra de producto(s)Duración de acceso: Especificar la duración (180 days) ### Action Scheduler ### Completar: 59 Oldest: 2020-03-11 09:14:12 +0100 Newest: 2020-04-06 17:56:28 +0200 Fallida: 1 Oldest: 2020-03-23 10:18:03 +0100 Newest: 2020-03-23 10:18:03 +0100 Pendiente: 6 Oldest: 2020-08-11 00:00:00 +0200 Newest: 2020-09-18 18:43:02 +0200
Hi @kildom
Thanks for that ??
I found a post that SkyVerge (the developers of Memberships) wrote to help with this. Hope you find it useful!!
https://www.skyverge.com/blog/prevent-repeat-purchase-with-woocommerce/
Cheers
Thanks Amanda, you’ve been very helpful, this is just what I was looking for.
- The topic ‘Restrict the purchase of products to customers who have already purchased’ is closed to new replies.