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

    Hi all,

    I’m trying to add the ‘add to cart’ button on the shop page and I can’t. I’ve installed the custom plugin to do it but it doesn’t work. I think it’s disabled from the theme settigns. Could someone help me, please ?

    Thank you,
    Andu

    #1403212

    anyone please

    #1403232

    Hi,
    Thanks for your patience and the link to your site, I see your page includes product slider elements and I assume that you want to show “add to cart” below each item.
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    add_action( 'after_setup_theme', function() {
         add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_add_to_cart', 12 );
    }, 999);

    Best regards,
    Mike

    #1403235

    Hi Mike,

    Great solution, as usually. It works.

    Thank you,
    Andu

    #1403238

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘‘Add to cart’ button on shop page’ is closed to new replies.