• Resolved JohnnyPea

    (@johnnypea)


    Your plugin throws this error when used with YITH WooCommerce Gift Cards but I think any “no variation” product can be an issue.

    PHP Fatal error: Call to undefined method WC_Product_Gift_Card::get_available_variations() in /var/www/html/wp-content/plugins/back-in-stock-notifier-for-woocommerce/includes/frontend/class-product.php:28

    The problem is in back-in-stock-notifier-for-woocommerce/includes/frontend/class-product.php:27 where you have the wrong condition. I suppose this should be $get_variations = count($product->get_children());. Please, check it out.

    Have nice day!

    • This topic was modified 6 years ago by JohnnyPea.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author CodeWooGeek

    (@codewoogeek)

    Hello there,

    We have fixed your reported problem in our side and it will be available for update(tomorrow) with version 1.7.2. We validated that no variation code will work only for variable product type.

    [ Signature deleted ]

    • This reply was modified 5 years, 5 months ago by Jan Dembowski.
    Plugin Author CodeWooGeek

    (@codewoogeek)

    Hello there,

    We just updated our plugin as a next version 1.7.2, which contain your reported problem fix. Please update it and check it out.

    [ Signature deleted ]

    • This reply was modified 5 years, 5 months ago by Jan Dembowski.
    wpsk

    (@wpsk)

    Thank you for the prompt fix!

    Thread Starter JohnnyPea

    (@johnnypea)

    Good job! That was fast, thanks ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal error with no variation product’ is closed to new replies.