Tagged: Cart, woocommerce
-
AuthorPosts
-
October 14, 2014 at 5:18 am #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
October 14, 2014 at 9:28 am #335465Hey Voilaah!
Thank you for using Enfold.
Please replace it with this:
remove_action( 'init', 'avia_woocommerce_cart_placement', 10);Cheers!
IsmaelOctober 14, 2014 at 10:14 am #335492Thks 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);October 15, 2014 at 3:09 am #335873Hi!
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,
IsmaelOctober 15, 2014 at 4:04 am #335896Hi
thks for update, just tried but still does not work :(
October 20, 2014 at 3:23 pm #338376Hey!
Please try updating Enfold to the latest version 3.0.2 via FTP and check if that helps – http://vimeo.com/67209750
Best regards,
YigitOctober 21, 2014 at 2:22 am #338801Hi 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.
-
AuthorPosts
- The topic ‘Woocommerce integration Enfold 3’ is closed to new replies.
