Back to shop sends user to wrong page - by peter4576

This topic has 4 replies, 2 voices, and was last updated 9 years, 4 months ago ago by Eva Kemp

  • Avatar: peter4576
    peter4576
    Participant
    July 18, 2015 at 11:09

    Hi there.

    When user clicks BACK TO SHOP they dont go to the frontpage but to some random weird looking page, displaying every single product on the entire site. This is both killing the server but is also a bad user experience…

    How do I change that? E.g. send them back to frontpage or?

    Peter

    https://gofile.me/6lYKv/fSiJAZzY

    https://gofile.me/6lYKv/9Nvox3zk

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    July 20, 2015 at 11:41

    Hello,

    “Back to Shop” button redirects to Shop page where all products are shown. It is not supposed to redirect to your home page.
    If you want to redirect your visitors to home page instead of Shop page you need edit the file wp-content/themes/woopress/woocommerce/loop/no-products-found.php, find the code

    “> and change the link <?php echo get_permalink(woocommerce_get_page_id('shop')); ?> to your home page url.

    Regards,
    Eva Kemp.

    Avatar: peter4576
    peter4576
    Participant
    July 22, 2015 at 13:29

    HI again

    But then it will overwrite upon next update, right?

    I mean like… there is no other shop on earth sending the customer back to a link containing every single product on the shop? I mean like… no one…??

    Cheers

    Peter

    Avatar: Eva
    Eva Kemp
    Support staff
    July 22, 2015 at 14:07

    Hello,

    In this case you need use child theme (woopress-child folder is included in our theme package) and copy the file, so the path will be wp-content/themes/woopress-child/woocommerce/loop/no-products-found.php and edit it to your needs.

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.