• Hi
    I added this function to the functions.php file because I want to show “Continue shopping” button on cart:

    add_action('woocommerce_cart_coupon', 'themeprefix_back_to_store');
    function themeprefix_back_to_store() { ?>
    <a class="button wc-backward" href="<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>"><?php _e( 'Seguir comprando', 'woocommerce' ) ?></a>
    <?php
    }

    But it makes that the div “.widget_shopping_cart_content” load empty, and the cart tab only shows the background color.
    If I rename the functions.php file, vart tab works fine.
    I need the both options in the site. how can I solve the conflit?

    Thanks for the help and the plugin, is great!

    The page I need help with: [log in to see the link]

  • The topic ‘Cart content dissappear with a function’ is closed to new replies.