Support » Plugin: Just-In-Time Sales Offers » WooCommerce 3.0 Compatibility with Product Bundles

  • Resolved willgorham

    (@willgorham)


    Hi again,

    Seeing the following notice related to direct accessing of product properties. I believe it’s coming from line 286 of class-jitso-woocommerce-product-bundles.php:

    if ( $bundled_item->product->product_type == 'variable' ) {

    [Jun 05, 15:51:46] product_type was called incorrectly. Product
    properties should not be accessed directly. Backtrace:
    do_action(‘wp_ajax_jitso_execute_accept_offer_actions’),
    WP_Hook->do_action, WP_Hook->apply_filters,
    JITSO_AJAX_Interfaces->jitso_execute_accept_offer_actions,
    JITSO_Offer_Accept_Action->execute_accept_offer_actions,
    apply_filters(‘jitso_accept_offer_action_add_bundle_product_to_cart’),
    WP_Hook->apply_filters,
    JITSO_WooCommerce_Product_Bundles->accept_offer_action_add_bundle_product_to_cart,
    WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was
    added in version 3.0.

    Thanks again,
    Will

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Will,

    Thanks for getting in touch and sorry to hear you are having trouble there!

    I’ve raised this issue and our developers will take a look at it as soon as possible.

    In the meantime, let me know if there’s anything else I can assist you with; I’m happy to help 🙂

    Thanks,
    Okky

    Hi Okky,

    Thanks for the response. It’s only a deprecated notice, so no problem on my end, I just figured I’d bring it up so it can be fixed in the future.

    For what it’s worth, the replacement for product->product_type is product->get_type().

    Thanks,
    Will

    • This reply was modified 3 years, 7 months ago by willgorham.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce 3.0 Compatibility with Product Bundles’ is closed to new replies.