Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #335352

    Hi there,
    since last Enfold update, the woocommerce cart integration can not be removed anymore in my child theme.
    in enfold woocomerce config.php : there is add_action( $position, ‘avia_woocommerce_cart_dropdown’, 10);
    and in my child theme woocomerce config.php i have :
    remove_action( ‘ava_main_header’, ‘avia_woocommerce_cart_dropdown’, 10);

    before enfold 3, it works nicely, and now it does not work anymore.

    it seems that my woocommerce config is loaded before enfold woocommerce config

    basically i want to remove this cart and add it somewhere else, in the secondary menu actually with my own code.

    any help appreciated please

    Cheers

    #335465

    Hey Voilaah!

    Thank you for using Enfold.

    Please replace it with this:

    remove_action( 'init', 'avia_woocommerce_cart_placement', 10);
    

    Cheers!
    Ismael

    #335492

    Thks Ismael, but still not work

    i do this :

    remove_action( ‘init’, ‘avia_woocommerce_cart_placement’, 10);
    remove_action( ‘ava_main_header’, ‘avia_woocommerce_cart_dropdown’, 10);
    remove_action( ‘ava_inside_main_menu’, ‘avia_woocommerce_cart_dropdown’, 10);

    #335873

    Hi!

    Thank you for the update.

    Please try this:

    add_action( 'init', 'avia_woocommerce_cart_placement', 5);
    
    function avia_woocommerce_cart_placement()
    {
    	$position = avia_get_option('header_position',  'header_top') == "header_top" ? "ava_main_header" : "ava_inside_main_menu";
    	remove_action( $position, 'avia_woocommerce_cart_dropdown', 10);
    }

    Best regards,
    Ismael

    #335896

    Hi

    thks for update, just tried but still does not work :(

    #338376

    Hey!

    Please try updating Enfold to the latest version 3.0.2 via FTP and check if that helps – http://vimeo.com/67209750

    Best regards,
    Yigit

    #338801

    Hi Yigit,

    thanks, no changes after update, the cart is still there – for now, im hiding it with css even though this is not a proper way of course.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Woocommerce integration Enfold 3’ is closed to new replies.