Viewing 8 replies - 1 through 8 (of 8 total)
  • @lidiacrochettricot
    Hello!
    I think the error comes from an installed plugin or active theme.
    Try changing the theme to one from WP default: twenty…
    If that fixes the problem is from the theme.

    If this does not fix: try disabling plugins that are related to orders.

    First of all, please do this on a staging server or sometimes when your site is not heavily used.

    Thread Starter lidiacrochettricot

    (@lidiacrochettricot)

    This issue isn’t related to any other plugin but seems to the user haven’t the view_order capability.
    In fact in \wp-content\plugins\woocommerce\includes\shortcodes\class-wc-shortcode-my-account.php template you find that this string appear if the current user haven’t the capability to show orders
    https://prnt.sc/m4d3zb

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    Hi @lidiacrochettricot,

    Just wanted to point out that a theme or plugin might be the cause these customers don’t have access to the corresponding order. An issue in the software of the theme or plugin could be stopping this part of the site from working correctly.

    Can you confirm whether you tried the conflict test, as suggested by WPRiders? I would recommend completing it in full, by switching your them to the default Storefront theme and disabling all plugins except for WooCommerce.

    Hopefully that gives you more clues!

    Thread Starter lidiacrochettricot

    (@lidiacrochettricot)

    Hello @fhaps ,
    I had, and I didn’t find the issue. So don’t know what to do next.

    Thread Starter lidiacrochettricot

    (@lidiacrochettricot)

    I have created a stage environnement where I had deactivated all the plugins (only woocommerce activated) and I still see the message “Invalid order” on the My account page, Orders.
    Why? Anyone can help?
    Some “Automattic Happiness Engineer” can have a look? My clients are sending email every day.
    @fhaps

    Moderator Hari Shanker R

    (@harishanker)

    Hi @lidiacrochettricot

    Just wanted to ask you if the problem still persists, as we haven’t heard from you in a bit. I did tests in three of my test sites – all my customers could access orders directly from their My Account page. This suggests that there is a problem specific to your site that’s causing this trouble.

    Could you please send me 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, you can paste it here in your reply. This would help us have a better understanding of the problem.

    Can you also tell me when you started noticing this problem? Was this triggered by any specific event (like a plugin/theme update, or the installation of a new plugin/theme?)

    Additionally, can you try replicating the problem in your site? Here’s what I’d request that you try:

    1. Create a User account.
    2. Make a purchase in your site (you can either use a 100% coupon, or a built-in payment gateway like BACS or Check Payments, OR create a $1 product for testing)
    3. Then proceed to My Account > My Orders to see if you can access that order.

    Let us know if you’re not able to access the order.

    Thread Starter lidiacrochettricot

    (@lidiacrochettricot)

    Hello,
    I have fixed the issue. It was a permalink error, because of the WPML.
    I had to change all my permalinks in French and then translate them in English and Spanish, and now all its stable, and clients can see their orders.
    Thank you.

    Moderator Hari Shanker R

    (@harishanker)

    Good catch @lidiacrochettricot. I’m glad to hear that you were able to get this resolved. Nicely done!

    I’m marking this thread as Resolved as we have not heard back from you in a while. If the problem persists though, feel free to reopen this, we would be happy to look into this for you.

    All the best!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Clients don’t have access at their orders’ is closed to new replies.