Home Forums WoodMart support forum Empty cart – return to home.

Empty cart – return to home.

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

    shweta
    Participant

    Hello team,

    On our site, in both the empty cart page and the empty mini cart drawer, the button currently shows “Return to shop” and links to the Shop page.

    We would like to:

    Change the button label to “Return to home”
    Change the button link to point to the home page

    Kindly furnish a patcher or a hotfix. You are a amazing theme. We love you.

    #686369

    Hello,

    To change this button text, try to use the Loco Translate plugin for this.

    Please follow this guide: https://xtemos.com/docs-topic/translate-woodmart-theme-with-loco-translate/

    For the button URL, please add below Custom Code to the function.php of the theme.

    add_filter( 'woocommerce_return_to_shop_redirect', 'pk_change_return_shop_url' );
     function pk_change_return_shop_url() {
    return home_url();
    }

    Best Regards,

    #686623

    shweta
    Participant

    Hello Team,

    Thank you for your suggestion. Unfortunately, the code provided does not work on our setup.

    The empty cart page button still links to the Shop page instead of Home.

    The empty mini cart drawer button also links to the Shop page.

    It seems that in Woodmart, the default WooCommerce filter woocommerce_return_to_shop_redirect is not being applied, since both buttons are rendered through the theme’s custom template.

    Could you please provide a theme-compatible patch or hotfix so that both the empty cart page and the empty mini cart drawer button link to the homepage?

    Best Regards,

    #686651

    Hello,

    Please try to find the redirection plugin, as our theme does not have such an option, WooCommerce does not provide the option either.

    Best Regards,

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