Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @lindsaywhitehead

    Every now and then I get an order with a variable product sold without the variant listed. i.e. the parent product is listed on the order. Most times, the order has other variable products that are working correctly. However, I have had one order where all products showed parents and not variants.

    I’m assuming the variable products are all correctly configured. Here’s the documentation for your reference: https://woocommerce.com/document/variable-product/

    It is very likely that it might be your theme or one of the plugins you’re using that’s causing the issue. To detect the cause behind this unusual behavior, we recommend checking whether the same problem persists when you change to a default WP theme like Twenty Twenty-One or Storefront, and deactivate all plugins apart from WooCommerce. You’ll need to create some test orders for testing purpose. If this issue does not persist at this point, you’ll want to reactivate your theme/plugins one by one until you find the one causing the issue. Here’s the conflict test guide for reference: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    If you don’t want to run the test on your live production site, you can create a duplicate/staging site. Many hosting providers offer site staging facilities, but if you don’t have such a feature, you can create one with the WP Staging plugin.

    If nothing comes out of 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.

    Additionally, please also navigate to WooCommerce > Status > Logs and from the dropdown on the right side, please see if there are any logs starting with the words fatal-error. Please share here if you find any.

    Thread Starter Lindsay Whitehead

    (@lindsaywhitehead)

    Hi Margaret,

    Thanks for the reply. I did have to update my theme, hopefully, that solves the problem.

    I have debugged errors in this manner before, but I don’t have a surefire way of reproducing the error, so I don’t know how I would do it. It only appears seemingly at random.

    Let’s hope the update fixes the issue.

    Hello @lindsaywhitehead!

    If updating the theme doesn’t fix the issue then please consider doing a conflict test as suggested by Margaret.

    Let us know how it goes.

    Thread Starter Lindsay Whitehead

    (@lindsaywhitehead)

    Hi Mashi,

    Thanks. I had another order today with the error, so I don’t think the update worked. Like I said above. I have no way of replicating the error as most orders and most products in any given order come through correctly. So I don’t know how I could go about doing the conflict test. I have done them before, but it’s always been a problem I can test.

    Hi @lindsaywhitehead

    Indeed conflict test may not help if there isn’t a sure-shot way to replicate the issue.

    I had another order today with the error

    Let us check if any fatal error logs were generated today. Please navigate to WooCommerce > Status > Logs and from the dropdown on the right side, please see if there are any logs starting with the words fatal-error. Please share here if you find any.

    Thread Starter Lindsay Whitehead

    (@lindsaywhitehead)

    I think below is what you mean. This is to do with a variation plugin. I can contact the plugin support.

    2022-06-14T04:12:18+00:00 CRITICAL Uncaught Error: Call to undefined method Woo_Variation_Swatches_Pro::get_option() in /home/customer/www/millineryhub.com.au/public_html/wp-content/plugins/woo-variation-swatches-pro/includes/hooks.php:13
    Stack trace:
    #0 /home/customer/www/millineryhub.com.au/public_html/wp-includes/class-wp-hook.php(307): Woo_Variation_Swatches_Pro->{closure}(”)
    #1 /home/customer/www/millineryhub.com.au/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #2 /home/customer/www/millineryhub.com.au/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #3 /home/customer/www/millineryhub.com.au/public_html/wp-settings.php(598): do_action(‘init’)
    #4 /home/customer/www/millineryhub.com.au/public_html/wp-config.php(80): require_once(‘/home/customer/…’)
    #5 /home/customer/www/millineryhub.com.au/public_html/wp-load.php(50): require_once(‘/home/customer/…’)
    #6 /home/customer/www/millineryhub.com.au/public_html/wp-admin/admin-ajax.php(22): require_once(‘/home/customer/…’)
    #7 {main}
    th in /home/customer/www/millineryhub.com.au/public_html/wp-content/plugins/woo-variation-swatches-pro/includes/hooks.php on line 13

    Hi @lindsaywhitehead

    Thanks for sharing the error logs.

    As you correctly guessed, the problem seems to be originating from the Variation Swatches plugin. We recommend reaching out to their support team here: https://getwooplugins.com/tickets/?utm_source=wordpress.org&utm_medium=README&utm_campaign=woo-variation-swatches

    As further assistance is to be provided by the Variation Swatches plugin team, I’ll go ahead and mark this thread closed here.

    Feel free to create a new topic if you have other questions related to core WooCommerce.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Orders come through without variations’ is closed to new replies.