Home Forums WoodMart support forum Back to shop button URL

Back to shop button URL

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #146194

    exe65
    Participant

    Hello,

    When the cart is empty it displays a button “back to shop”. I have a simple site with 10 products and don’t need the site’s shop page (archive page).

    Can you please post the code that i could use and insert the site’s homepage URL to the button link ?

    Thank you,

    #146207

    Hello,

    You can do it with a redirection of the plugin or hide with CSS. We can provide the CSS code to hide.

    Best Regards.

    #146210

    exe65
    Participant

    I found a solution. Courtesy of businessbloomer.com (posting if anybody else needs it):
    https://businessbloomer.com/woocommerce-change-return-shop-url/

    /**
     * @snippet       Change return to shop link, send to homepage instead
     * @how-to        Watch tutorial @ https://businessbloomer.com/?p=19055
     * @sourcecode    https://businessbloomer.com/?p=603
     * @author        Rodolfo Melogli
     * @compatible    WooCommerce 3.5.6
     * @donate $9     https://businessbloomer.com/bloomer-armada/
     */
     
    add_filter( 'woocommerce_return_to_shop_redirect', 'bbloomer_change_return_shop_url' );
     
    function bbloomer_change_return_shop_url() {
    return home_url();
    }
    #146253

    That is fine. If you have any questions please feel free to contact us.

    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Back to shop button URL’ is closed to new replies.