Product Icon

Help Scout Integration for WooCommerce

Start relevant conversations with your customers, using WooCommerce and Help Scout.

Contact form shows an error when logged in

I am working with your plugin for a customer (shop.handsfreehealth.com), and we discovered that the plugin was not able to fetch the order info on logged-in users, and this was generating an error (Class “OrderUtil” not found) when displaying the contact form for support.

After a bit of troubleshooting, the only solution was to update line 91 in the file class-wc-help-scout-shortcodes.php as follows:

´´´if ( isset($_SESSION[‘OrderUtil’]) && class_exists( ´´´’Automattic\WooCommerce\Utilities\OrderUtil’ ) && ´´´OrderUtil::custom_orders_table_usage_is_enabled() ) {

And this fixed the issue; now the site is loading the contact form without any errors.

If necessary, we can share a subscriber account so you can see the issue.

Have a great day,
AlbertoR

Author

albertocurotec

Current Status

Open

Last updated: September 21, 2023

1 comment

Log in to comment on this feature request.

  1. accounts17d5750d1e says:

    One of our clients are having the same issue, and we would prefer a proper fix over having to rewrite 3rd party code.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.