• ll-xmas

    (@ll-xmas)


    Hello.

    None of the bundles created get the status ‘purchasable’ and thus are not displayed, cannot be added to cart; cannot be bought.

    In fact none of the bundles pass the test:
    if ( ! $product->is_purchasable() ) return;

    Could you please advice what could be the problem with the ‘purchasable’ status and how to get it right?

    Thank you.

    https://www.ads-software.com/plugins/yith-woocommerce-product-bundles/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi ll-xmas,

    The plugin works fine in my installation!
    The method is_purchasable() in Product Bundle verifies:

    1. if the product exists
    2. if it has a price set
    3. if it has been published
    4. if all bundled items are purchasable (with WooCommerce method)

    If $product_bundle->is_purchasable() returns false, some of previous conditions are false.
    Maybe you have some plugins that are in conflict with YITH WooCommerce Product Bundles.

    You could try to deactivate the other plugins, set correctly one bundle product with at least one purchasable item and try again with your test. Then you could activate the other plugins one by one and test it.

    Best Regards,
    Yithemes

    Thread Starter ll-xmas

    (@ll-xmas)

    Thank you very much for your quick response.

    If a bundle would contain 1 free product, would that result in the bundle not being purchasable?

    Thank you.

    Plugin Author YITHEMES

    (@yithemes)

    Hi ll-xmas,

    If a bundle contains one free product, the bundle can however be purchased!
    Maybe you haven’t set the regular price for the bundle.

    Best Regards,
    Yithemes

    sonicthoughts

    (@sonicthoughts)

    I’m having the same issue. the is_purchasable method is not working to verify that the product can sell ??

    Plugin Author YITHEMES

    (@yithemes)

    Hi sonicthoughts,

    The method is_purchasable() in Product Bundle verifies:

    • if the product exists
    • if it has a price set
    • if it has been published
    • if all bundled items are purchasable (with WooCommerce method)

    If $product_bundle->is_purchasable() returns false, some of previous conditions are false.

    Please, verify which of the above mentioned is false.

    Best Regards,
    Yithemes

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Products are not purchasable’ is closed to new replies.