New Landing How can we help? Themeforest Theme Support Neighborhood woocommerce deprecated function

Viewing 5 posts - 1 through 5 (of 5 total)
  • #324549
    oasishealthproducts
    Member
    Post count: 8

    In this file:
    wp-content\themes\neighborhood\includes\swift-framework\sf-woocommerce.php

    there is this line:
    add_filter(‘add_to_cart_fragments’, ‘sf_woo_header_add_to_cart_fragment’);

    I am getting this error in my error_log:

    The “add_to_cart_fragments” hook uses out of date data structures and function is deprecated since version 3.0.5. Replace with woocommerce_add_to_cart_fragments.

    Should your code be updated to:

    add_filter(‘woocommerce_add_to_cart_fragments’, ‘sf_woo_header_add_to_cart_fragment’);

    Thanks

    #324580
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Yes, that should be updated. Are you running the correct theme version, do you have a child theme enabled overriding this?

    #324654
    oasishealthproducts
    Member
    Post count: 8

    I am running version 3.4.52 of the theme. Yes I have a child theme but all it has is the default functions.php and a small amount of custom css in styles.css, so it is not overwriting wp-content\themes\neighborhood\includes\swift-framework\sf-woocommerce.php
    Thanks

    #324657
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Ok Thanks for the heads up. Will forward to the development team.

    -Rui

    #324717
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Thanks – we have updated this for the next update.

    – Ed

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register