Home Forums WoodMart support forum Button "Return to shop" link

Button "Return to shop" link

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #165083

    arturs4
    Participant

    Hi!

    I added php code in functions.php:

    function att_wc_empty_cart_redirect_url() {
            $url = 'https://www.my.link/';
            return esc_url( $url );
        }
        add_filter( 'woocommerce_return_to_shop_redirect', 'att_wc_empty_cart_redirect_url' );

    to change button’s “Return to shop” link in empty CART, and that worked. But the same button in empty cart widget that opens on left side and button in empty wishlist didn’t change, which probably means that they are woodmart buttons.

    How can I change links for these buttons?

    Regards,
    Arturs

    #165105

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Share the screenshots for those buttons so I can let you know if it is possible to change those button’s link or not.

    Best Regards.

    #165107

    arturs4
    Participant

    Sure! Screenshots attached.

    No. 1 – Empty cart widget.
    No. 2 – Empty wishlist.

    Currently these buttons link to http://www.example.com/shop/ subdir, which I dont use in my site, so I want to change buttons link to something else, like homepage or specific product category.

    Can you help me?

    Regards,
    Arturs

    Attachments:
    You must be logged in to view attached files.
    #165114

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Sorry there is no such option available to change the links of those buttons. It requires customizations and this is beyond our limitations and support policy.

    Best Regards.

    #165119

    arturs4
    Participant

    Can’t your main developer give me a php code similar to the code in my 1st message? Can you, please, ask him?

    Regards,
    Arturs

    #165165

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    You can do it with some redirection plugin or hide with CSS. We can provide the CSS code to hide.
    Sorry but we did not cover customizations, it is out of our scope.

    Best Regards.

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