Home New Guten Forums WoodMart support forum Back to shop link

Back to shop link

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

    Giuseppe
    Participant

    Hi. In our shop -> we have the compare function active. The thing is, if we add a product to compare and then delete we get a message and a button saying ‘back to store’. The link is directing to a page: https://gerridzen.nl/illuminated-mirrors/ which doesnt exist in the shop. I want that button to redirect to the main page. How to do? Or where to change without the help of a redirect plugin.

    #664179

    Luke Nielsen
    Keymaster

    Hello,

    Add the code below to the functions.php file in your child theme, set the desired link and recheck the issue.

    
    add_filter( 'woodmart_compare_return_to_shop_url', 'my_custom_compare_return_to_shop_url' );
    
    function my_custom_compare_return_to_shop_url( $url ) {
        // Change this to your custom URL
        return 'http://localhost:10023/';
    }

    Kind Regards

    #665073

    Giuseppe
    Participant

    this works! Thanks.

    #665091

    Luke Nielsen
    Keymaster

    Hello,

    Thank you for your feedback. We are glad to hear that the solution resolved your issue.

    If you have any other questions or need further assistance, feel free to reach out to us.

    Kind regards

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

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