• Hi,
    When using the manual product sync on a variable product, we get the following error:

    
    Uncaught Exception: Error Processing RequestError PrepareArray for product Invalid product type: passed ID does not correspond to a product variation. in [site root]/wp-content/plugins/woo-zoho-crm/templates/zoho-product-queue.php:183
    Stack trace:
    #0 [site root]/wp-content/plugins/woo-zoho-crm/includes/plugin-pages.php(35): require_once()
    #1 [site root]/wp-includes/class-wp-hook.php(288): zoho_product_queue('')
    #2 [site root]/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)
    #3 [site root]/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #4 [site root]/wp-admin/admin.php(254): do_action('zoho-crm_page_z...')
    #5 {main}
      thrown in 
    

    This appears to be because woo-zoho-crm/api/abstract.php‘s prepareArrayForProducts tries to load a variation using the same ID as the variation’s parent. See line #123: $variableProduct = new WC_Product_Variation($id); ($id is the ID of the parent product)

    Any suggestions? We appreciate any help!

  • The topic ‘Variable product sync: “passed ID does not correspond to a product variation”’ is closed to new replies.