• Resolved webhyp

    (@webhyp)


    AFter installing the plugin and configuring the settings, the Product Page shows this warning message

    Warning: Invalid argument supplied for foreach() in <website url path>/wp-content/plugins/product-variant-table-for-woocommerce/inc/templates/content-tbody.php on line 123

    The settings are mostly default settings. WordPress version is latest 5.9.2, Woocommerce version is latest 6.3.1.

    Please advise how to fix this, thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hakik Zaman

    (@hakik)

    Hi,

    Thanks for reaching out to me. Unfortunately, I didn’t find your reported issue. Please check this screencast.

    I have tested it with the latest WooCommerce 6.3.1 and the latest WordPress 5.9.2. To identify it I also installed Query Monitor Plugin and changed wp_debug = true from wp-config.php

    Please make sure if you customized PVT. If you customized it please check your whole customization process again.

    If you didn’t customize, please test plugin compatibility by following steps-

    – Temporarily deactivate all additional plugins except WooCommerce and Product Variation Table for WooCommerce – PVT
    – Then activate plugins one by one to identify the issue.

    If the plugin compatibility doesn’t help and warning is still there. You can test it using a default theme like- Twenty Twenty One or Storefront theme

    Thanks

    Thread Starter webhyp

    (@webhyp)

    Hi Hakik,

    Thanks for the prompt reply. Found that it’s because the variations do not have prices configured. I added prices to the variations and now the table is displaying. I actually do not want to set any price to the variations though.

    Plugin Author WPXtension

    (@wpxteam)

    Hi

    The default behavior of WooCommerce is- you have to set up price to display variations on single product/product description page.

    You can test it by temporarily deactivate PVT and remove all prices from variations.

    But, we will look into it if we can manage it without a price setup, we will update a new release.

    Thanks

    Thread Starter webhyp

    (@webhyp)

    Thanks for the information.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Invalid argument supplied for foreach()’ is closed to new replies.