New Landing How can we help? Themeforest Theme Support Neighborhood Hook to modify sf_get_cart() output?

Viewing 6 posts - 1 through 6 (of 6 total)
  • #17924
    abo
    Member
    Post count: 41

    Hello

    Is there a hook to modify the sf_get_cart() output without touching the sf-header.php core file?
    I tried creating this file the same folder structure in the child theme, but no success.

    Thanks
    Aldo

    #18209
    Melanie – SUPPORT
    Member
    Post count: 11032

    I’ll ask Cosmin – another support staff – about that, maybe he knows a hook.

    #19385
    abo
    Member
    Post count: 41

    Hello,
    Any news on this?

    #19825
    Melanie – SUPPORT
    Member
    Post count: 11032

    Sorry for the delay, I’m not sure why he didn’t check back yet.

    I suppose you would need to hire a developer as this question seems a bit too difficult to take care of within free support. Cheers

    #19830
    abo
    Member
    Post count: 41

    I figured it out myself.
    It is not possible, as everything in the header is hardcoded.

    But what is interesting, the menu-cart reload happens via ajax/filter call:
    add_filter(‘add_to_cart_fragments’, ‘sb_woo_header_add_to_cart_fragment’, 99);

    So if you would change the theme so, that the initial build of the cart-menu happens via filter as well, then there would be no need to edit core of neighborhood.

    Think about it, simple thing, with more flexibility for the developer…

    Cheers,
    Aldo

    #20045
    Melanie – SUPPORT
    Member
    Post count: 11032

    Great

Viewing 6 posts - 1 through 6 (of 6 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