Button "Return to shop" link
-
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
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.
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.
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.
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
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.