Customer Orders Not Showing in My Account
-
I have been having an issue with my customer’s orders not showing up in My Account. It has been this way for a while and I thought it may be a theme issue, so I submitted a ticket with them. However, during further examination and testing, I copied the /myaccount/orders.php template file from the WooCommerce plugin’s templates folder to a child theme and confirmed that I could alter the output of the Orders page’s default “No order has been made yet.” message. When I checked the value of $has_orders after the do_action( ‘woocommerce_before_account_orders’, $has_orders ); using the error_log, it returns false, even after I just made a test order with the same account. Please advise. Thank you!
- This topic was modified 5 years, 6 months ago by Machine IT Services.
-
Hey there,
It sounds like the customer’s orders aren’t being found for some reason.
It’s great that you’ve already tested the specific template, but that doesn’t fully rule out either a conflict with your theme or with another plugin.
?
The best way to determine this is to:
?- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
I have tried disabling all plugins and changing themes, and even switched to another one of my sites that I initially thought was working, and uses a different set of plugins and themes, and it has the same issue. Customer orders are not showing up. Please advise.
Hey there,
Given that you’ve disabled all plugins and switched the theme to Twenty Nineteen, as well as tried it on a different site, that should have ruled out any customizations. Interestingly, though, I can’t reproduce this problem on my own site – that usually means it’s a question of something being different on your end, which is why we ask for the conflict test.
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.This is from the initial site in question:
### WordPress Environment ### WordPress address (URL): https://www.opticouture.com Site address (URL): https://www.opticouture.com WC Version: 3.6.2 Log Directory Writable: ? WP Version: 5.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: – Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.5-1+ubuntu18.04.1+deb.sury.org+1 PHP Post Max Size: 32 MB PHP Time Limit: 360 PHP Max Input Vars: 1000 cURL Version: 7.58.0 OpenSSL/1.1.1b SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.11-MariaDB-1:10.3.11+maria~bionic-log Max Upload Size: 32 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.6.2 WC Database Prefix: wp_ MaxMind GeoIP Database: ? Total Database Size: 142.37MB Database Data Size: 95.14MB Database Index Size: 47.23MB wp_woocommerce_sessions: Data: 0.09MB + Index: 0.02MB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB wp_woocommerce_order_itemmeta: Data: 0.09MB + Index: 0.06MB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB wp_commentmeta: Data: 0.02MB + Index: 0.03MB wp_comments: Data: 0.05MB + Index: 0.09MB wp_domain_mapping: Data: 0.02MB + Index: 0.02MB wp_domain_mapping_logins: Data: 0.02MB + Index: 0.00MB wp_failed_jobs: Data: 0.02MB + Index: 0.00MB wp_links: Data: 0.02MB + Index: 0.02MB wp_mailchimp_carts: Data: 0.09MB + Index: 0.00MB wp_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB wp_mailpoet_forms: Data: 0.02MB + Index: 0.00MB wp_mailpoet_log: Data: 0.02MB + Index: 0.00MB wp_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB wp_mailpoet_newsletters: Data: 0.02MB + Index: 0.00MB wp_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.03MB wp_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB wp_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB wp_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB wp_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB wp_mailpoet_newsletter_templates: Data: 0.30MB + Index: 0.00MB wp_mailpoet_scheduled_tasks: Data: 0.02MB + Index: 0.03MB wp_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB wp_mailpoet_segments: Data: 0.02MB + Index: 0.02MB wp_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB wp_mailpoet_settings: Data: 0.02MB + Index: 0.02MB wp_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB wp_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB wp_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB wp_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.05MB wp_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB wp_mailpoet_subscribers: Data: 0.02MB + Index: 0.05MB wp_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB wp_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB wp_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB wp_masterslider_options: Data: 0.02MB + Index: 0.02MB wp_masterslider_sliders: Data: 0.02MB + Index: 0.02MB wp_mo_campaign_log: Data: 0.02MB + Index: 0.00MB wp_mo_campaign_logmeta: Data: 0.02MB + Index: 0.00MB wp_mo_conversions: Data: 0.02MB + Index: 0.00MB wp_mo_email_campaigns: Data: 0.02MB + Index: 0.02MB wp_mo_optin_campaignmeta: Data: 0.02MB + Index: 0.00MB wp_mo_optin_campaigns: Data: 0.02MB + Index: 0.03MB wp_options: Data: 9.14MB + Index: 2.03MB wp_pmxi_files: Data: 0.02MB + Index: 0.00MB wp_pmxi_history: Data: 0.02MB + Index: 0.00MB wp_pmxi_images: Data: 1.52MB + Index: 0.00MB wp_pmxi_imports: Data: 0.17MB + Index: 0.00MB wp_pmxi_posts: Data: 1.52MB + Index: 0.41MB wp_pmxi_templates: Data: 0.02MB + Index: 0.00MB wp_postmeta: Data: 54.59MB + Index: 31.09MB wp_posts: Data: 5.52MB + Index: 3.77MB wp_queue: Data: 0.09MB + Index: 0.00MB wp_redirection_404: Data: 2.02MB + Index: 2.36MB wp_redirection_groups: Data: 0.02MB + Index: 0.03MB wp_redirection_items: Data: 0.02MB + Index: 0.09MB wp_redirection_logs: Data: 0.31MB + Index: 0.11MB wp_termmeta: Data: 0.11MB + Index: 0.13MB wp_terms: Data: 0.11MB + Index: 0.13MB wp_term_relationships: Data: 1.52MB + Index: 1.52MB wp_term_taxonomy: Data: 0.13MB + Index: 0.13MB wp_usermeta: Data: 0.20MB + Index: 0.14MB wp_users: Data: 0.02MB + Index: 0.05MB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB wp_wc_gpf_render_cache: Data: 0.02MB + Index: 0.02MB wp_wc_product_meta_lookup: Data: 2.23MB + Index: 2.19MB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB wp_wfBadLeechers: Data: 0.02MB + Index: 0.00MB wp_wfBlockedCommentLog: Data: 0.02MB + Index: 0.00MB wp_wfBlockedIPLog: Data: 0.02MB + Index: 0.00MB wp_wfBlocks7: Data: 0.02MB + Index: 0.05MB wp_wfConfig: Data: 1.34MB + Index: 0.00MB wp_wfCrawlers: Data: 0.02MB + Index: 0.00MB wp_wfFileChanges: Data: 0.02MB + Index: 0.00MB wp_wfFileMods: Data: 4.52MB + Index: 0.00MB wp_wfHits: Data: 1.02MB + Index: 1.17MB wp_wfHoover: Data: 0.02MB + Index: 0.02MB wp_wfIssues: Data: 0.02MB + Index: 0.06MB wp_wfKnownFileList: Data: 2.52MB + Index: 0.00MB wp_wfLeechers: Data: 0.05MB + Index: 0.00MB wp_wfLiveTrafficHuman: Data: 0.02MB + Index: 0.02MB wp_wfLocs: Data: 0.02MB + Index: 0.00MB wp_wfLogins: Data: 0.23MB + Index: 0.06MB wp_wfNet404s: Data: 0.02MB + Index: 0.02MB wp_wfNotifications: Data: 0.08MB + Index: 0.00MB wp_wfPendingIssues: Data: 0.02MB + Index: 0.06MB wp_wfReverseCache: Data: 0.02MB + Index: 0.00MB wp_wfScanners: Data: 0.02MB + Index: 0.00MB wp_wfSNIPCache: Data: 0.02MB + Index: 0.05MB wp_wfStatus: Data: 0.13MB + Index: 0.09MB wp_wfTrafficRates: Data: 0.02MB + Index: 0.00MB wp_wfVulnScanners: Data: 0.02MB + Index: 0.00MB wp_woocommerce_gpf_google_taxonomy: Data: 2.02MB + Index: 0.00MB wp_wysija_campaign: Data: 0.02MB + Index: 0.00MB wp_wysija_campaign_list: Data: 0.02MB + Index: 0.00MB wp_wysija_custom_field: Data: 0.02MB + Index: 0.00MB wp_wysija_email: Data: 0.05MB + Index: 0.00MB wp_wysija_email_user_stat: Data: 0.02MB + Index: 0.00MB wp_wysija_email_user_url: Data: 0.02MB + Index: 0.00MB wp_wysija_form: Data: 0.02MB + Index: 0.00MB wp_wysija_list: Data: 0.02MB + Index: 0.00MB wp_wysija_queue: Data: 0.02MB + Index: 0.02MB wp_wysija_subscriber_ips: Data: 0.02MB + Index: 0.02MB wp_wysija_url: Data: 0.02MB + Index: 0.00MB wp_wysija_url_mail: Data: 0.02MB + Index: 0.00MB wp_wysija_user: Data: 0.02MB + Index: 0.02MB wp_wysija_user_field: Data: 0.02MB + Index: 0.00MB wp_wysija_user_history: Data: 0.02MB + Index: 0.00MB wp_wysija_user_list: Data: 0.02MB + Index: 0.00MB wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.05MB wp_yoast_seo_links: Data: 0.02MB + Index: 0.02MB wp_yoast_seo_meta: Data: 1.52MB + Index: 0.00MB ### Post Type Counts ### aiosrs-schema: 1 attachment: 4864 custom_css: 2 jetpack_migration: 2 jp_img_sitemap: 3 jp_img_sitemap_index: 1 jp_sitemap: 1 jp_sitemap_master: 1 mailpoet_page: 1 nav_menu_item: 39 page: 16 post: 2 product: 1505 product_variation: 6865 scheduled-action: 11 shop_coupon: 5 shop_order: 57 shop_order_refund: 7 ufaq: 3 wcccf: 3 wccpf: 1 wpcf7_contact_form: 1 wysijap: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (48) ### Akismet Anti-Spam: by Automattic – 4.1.1 Autoptimize: by Frank Goossens (futtta) – 2.5.0 Breadcrumb NavXT: by John Havlik – 6.3.0 Classic Editor: by WordPress Contributors – 1.5 Contact Form 7: by Takayuki Miyoshi – 5.1.1 Facebook for WooCommerce: by Facebook – 1.9.12 – Not tested with the active version of WooCommerce Messenger Customer Chat: by Facebook – 1.2 Insert Headers and Footers: by WPBeginner – 1.4.3 Jetpack by WordPress.com: by Automattic – 7.3.0 Kirki Toolkit: by Ari Stathopoulos (@aristath) – 3.0.39 Kraken Image Optimizer: by Karim Salman – 2.6.3 Mailchimp for WooCommerce: by Mailchimp – 2.1.15 – Not tested with the active version of WooCommerce Mailchimp for WordPress: by ibericode – 4.5.2 MailChimp Sync: by WPMU DEV – 1.9.6 MailChimp: by MailChimp – 1.5.7 Master Slider: by averta – 3.5.3 Nav Menu Roles: by Kathy Darling – 1.9.3 No CAPTCHA reCAPTCHA for WooCommerce: by MailOptin Team – 1.2.6 – Not tested with the active version of WooCommerce No CAPTCHA reCAPTCHA: by MailOptin Team – 1.3.4 PixelYourSite PRO: by PixelYourSite – 7.1.2 – Not tested with the active version of WooCommerce PixelYourSite Super Pack: by PixelYourSite – 2.0.4 Redirection: by John Godley – 4.2.3 Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.1 Shortcodes Ultimate: by Vladimir Anokhin – 5.3.0 Page Builder by SiteOrigin: by SiteOrigin – 2.10.5 SiteOrigin Widgets Bundle: by SiteOrigin – 1.15.6 Surbma | Yoast SEO Sitemap to robots.txt: by Surbma – 1.1 TinyMCE Advanced: by Andrew Ozz – 5.2.0 TWP Shortcodes: by Themes4WP – 1.0.13 – Not tested with the active version of WooCommerce Ultimate FAQ: by Etoile Web Design – 1.8.22 – Not tested with the active version of WooCommerce User Role Editor: by Vladimir Garagulya – 4.50.2 WC Fields Factory: by Saravana Kumar K – 3.0.3 – Not tested with the active version of WooCommerce WooCommerce WP-Login Premium: by MachineITSvcs – 2.0.4 – Not tested with the active version of WooCommerce WooCommerce Stripe Gateway: by WooCommerce – 4.1.16 – Not tested with the active version of WooCommerce WooCommerce Google Product Feed: by Ademti Software Ltd. – 7.8.7 – Not tested with the active version of WooCommerce WooCommerce Services: by Automattic – 1.20.0 – Not tested with the active version of WooCommerce WooCommerce: by Automattic – 3.6.2 Wordfence Security: by Wordfence – 7.2.5 Yoast SEO: by Team Yoast – 11.1.1 WP Accessibility: by Joe Dolson – 1.6.7 WP Cloudflare: by nabtron – 0.1.1 WP Mail SMTP: by WPForms – 1.4.2 WP Rocket | Disable Page Caching: by WP Rocket Support Team – WP Rocket: by WP Media – 3.2.2 Schema Pro: by Brainstorm Force – 1.2.0 Yoast SEO: Local: by Team Yoast and Arjan Snaterse – 9.7 MailPoet 2: by MailPoet – 2.11 YITH WooCommerce Wishlist: by YITH – 2.2.10 – Not tested with the active version of WooCommerce ### Inactive Plugins (8) ### ACF Content Analysis for Yoast SEO: by Thomas Kr?ftner ViktorFroberg marol87 pekz0r angrycreative Team Yoast – 2.2.0 Advanced Custom Fields: by Elliot Condon – 5.8.0 MailPoet 3 (New): by MailPoet – 3.25.1 WooCommerce Blocks: by Automattic – 2.0.1 – Not tested with the active version of WooCommerce WooCommerce Shortcodes: by WooThemes Claudio Sanches – 1.0.0 – Not tested with the active version of WooCommerce WP All Import - WooCommerce Add-On Pro: by Soflyy – 3.0.7 – Not tested with the active version of WooCommerce WP All Import Pro: by Soflyy – 4.5.6 Yoast SEO: WooCommerce: by Team Yoast – 11.0 – Not tested with the active version of WooCommerce ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (5) ### OptiCouture Initialize: by Machine IT Services LLC – OptiCouture Lens Slider: by Machine IT Services LLC – OptiCouture Prescription Portal: by Machine IT Services LLC – OptiCouture WooCommerce Product Optimization and Checkout Tracking: by Machine IT Services LLC – WooCommerce URL Discounts: by Machine Pro SEO – 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: #9 - / Cart: #76 - /cart/ Checkout: #77 - /checkout/ My account: #70 - /my-account/ Terms and conditions: #39442 - /terms/ ### Theme ### Name: MaxStore Pro Child Version: – 0 is available Author URL: Child Theme: ? Parent Theme Name: MaxStore PRO Parent Theme Version: 2.4.7 Parent Theme Author URL: https://themes4wp.com WooCommerce Support: ? ### Templates ### Archive Template: Your theme has a woocommerce.php file you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues. Overrides: maxstore-pro-child/woocommerce/myaccount/orders.php ### WooCommerce Google Product Feed fields ### Product description: Main product description only (short preferred.) Availability: Defaults to "in stock". Condition: Defaults to "new". Brand: Defaults to "OptiCouture". Pre-populates from brand meta field. Manufacturer Part Number (MPN): Product Type: Defaults to "Health & Beauty > Personal Care > Vision Care > Eyeglasses". Pre-populates from product_cat taxonomy. Google Product Category: Defaults to "Health & Beauty > Personal Care > Vision Care > Eyeglasses". Global Trade Item Number (GTIN): Colour: Pre-populates from pa_color taxonomy. Size: Pre-populates from pa_size taxonomy. Size type: Defaults to "regular". Unit pricing measure: Defaults to "MM". Delivery label: Defaults to "Default Shipping". ### WooCommerce Google Product Feed options ### Include variations in feed: Enabled Send item_group_id: Enabled ### Action Scheduler ### Complete: 10 Oldest: 2019-04-17 11:51:01 -0400 Newest: 2019-05-08 11:54:40 -0400 Pending: 1 Oldest: 2019-05-15 11:54:40 -0400 Newest: 2019-05-15 11:54:40 -0400 Canceled: 0 Oldest: – Newest: – In-progress: 0 Oldest: – Newest: – Failed: 0 Oldest: – Newest: –
I responded but I’m waiting for it to be moderated.
@machineitsvcs Were you able to find a resolution to this?
If not, are older orders not showing in the orders screen? Are you getting emails about the orders?
Can you get to the order directly via this:
https://www.opticouture.com/wp-admin/post.php?post=ORDERID&action=edit
replacingORDERID
with the order number?If you go to WooCommerce > Status > Logs, is there a fatal-errors log with a recent date there? This almost sounds like there’s a fatal error that isn’t displaying the orders page properly.
I apologize for not updating this sooner. Yes, I found a solution to the problem. It was not a WooCommerce plugin issue. Thank you for following up.
Hi Machine, can you please post what the problem / solution was so others can learn from it. Many thanks
If I recall correctly, it was an issue with one of the Yoast plugins, either Local or WooCommerce Premium extensions that requires updating.
- The topic ‘Customer Orders Not Showing in My Account’ is closed to new replies.