Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #238586

    Hi,

    im trying to customize my enfold integration with woocommerce.

    What will be the recommendation for this aspect plase ? (im not asking regarding woocommerce itself i know there are a woocommerce documentation) but i’m asking regarding Enfold theme.
    Indeed, Enfold is already defining a lot of action/filter – how can i override them properly being sure my code wont be erased by the next Enfold version ?

    thanks

    #239121

    Hi

    any idea please ?

    for example i try to remove the add to cart / view details button in the shop page in order to put my own icons
    i try to remove the enfold action by using this code in my own functions.php
    remove_action( 'woocommerce_after_shop_loop_item', 'avia_add_cart_button', 16);

    but no result, the enfold buttons are still there :/

    thanks for any insight

    #239160

    Hey!

    You can add something like this on functions.php if you want to remove the enfold configurations for woocommerce:

    add_action('init','remove_woocommerce_config');
    function remove_woocommerce_config(){
    remove_action( 'woocommerce_after_shop_loop_item', 'avia_add_cart_button', 16);
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    }

    Cheers!
    Ismael

    #239228

    Hi Ismael,

    yes thanks, i figured this out also, the remove action need to be include inside the init action of the theme.

    thanks !

    #239248

    Hi!

    Glad you figured it out. :)

    Regards,
    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘woocommerce enfold best practices’ is closed to new replies.