Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #910805
    Daphne D
    Participant

    Hi, I’ve browsed around and am trying to find help with my question about using an alternate page (with an essential grid element) as my “store” instead of using the standard woo commerce “shop” page.

    I’ve set up my alternate page, no problem. But before I delete my “shop” page (the initial woo commerce page I was using before), how do I (or can I) re-direct certain links in the CART and CHECKOUT to point to the new store page?

    For example, “continue shopping” links within woo commerce currently want to go to the old “shop” page. If I delete this page, will it cause an internal problem?

    I hope my question makes sense. Thanks in advance for your help!

    #910809
    Daphne D
    Participant
    This reply has been marked as private.
    #911169
    Thai
    Moderator

    how do I (or can I) re-direct certain links in the CART and CHECKOUT to point to the new store page?

    To edit the return shop URL, please add the following code under functions.php file locates in your child theme:

    add_filter( 'woocommerce_return_to_shop_redirect', 'change_return_shop_url' );
    function change_return_shop_url(){
      return home_url( '/store' );
    }

    Hope it helps 🙂

    #911269
    Daphne D
    Participant

    Thank you. I added the code but the “continue shopping” link goes to the main home page. But I need it to go here instead: http://daphnedelay.com/store/

    (attached screenshot is of the cart link I’m talking about)

    #911800
    Jade
    Moderator

    Hi Daphne,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #912525
    Daphne D
    Participant
    This reply has been marked as private.
    #912567
    Daphne D
    Participant

    by the way, when on a product page (see screenshot), the breadcrumb also takes users to old shop page (see screenshot). Can this be fixed as well? Or does the breadcrumb on product pages need to be disabled? (If yes, how?)

    thanks again

    #912848
    Thai
    Moderator

    Hi There,

    Please update the previous code a bit:

    add_filter( 'woocommerce_continue_shopping_redirect', 'change_return_shop_url' );
    add_filter( 'woocommerce_return_to_shop_redirect', 'change_return_shop_url' );
    function change_return_shop_url(){
      return home_url( '/store' );
    }
    add_filter( 'woocommerce_get_shop_page_id', 'change_shop_page_id' );
    function change_shop_page_id(){
      return 9312;
    }

    Hope it helps 🙂

    #913255
    Daphne D
    Participant

    Thank you. Unfortunately that code sends the user to the main HOME page, not the “store” page.

    #913378
    Daphne D
    Participant

    Update: the breadcrumb works!

    Just still needing the “continue shopping” to send back to store if possible. If not, it’s ok. Most people would figure it out, but it’d be nice…

    Thanks again

    #913667
    Rad
    Moderator

    Glad to hear that, and I just tried the code and return to shop works okay on my end.

    I checked your site and it’s linking to /store/ which is correct, is that right?

    Thanks!

    #914464
    Daphne D
    Participant

    yes and no… if a user is on a sub-page, yes the return to store in breadcrumbs works now. But if you put something in the CART, woo commerce automatically has a blue notifier that asks if you want to “continue shopping” (which is a link)… that link takes the user back to the main home page instead of the store.

    It’s the continue shopping link that still needs to be fixed if possible.

    #936775
    Daphne D
    Participant

    UPDATE: I went to my store page to add something and realized it’s not ok after all… It has my new essential grid at the top and the original shop page underneath it (and the shop page is in the Trash, so I don’t know how it’s pulling it up here). In addition, I have the page set to Blank: No Container, but there’s suddenly a sidebar now as well (which I don’t want on the store page).

    I changed the code back to the original that X suggested I use:

    add_filter( ‘woocommerce_return_to_shop_redirect’, ‘change_return_shop_url’ );
    function change_return_shop_url(){
    return home_url( ‘/store’ );
    }

    This put my store page back in order, but also left me with the original problem that BOTH the return-shop (breadcrumb) link and continue shopping link don’t work properly 🙁

    If you want to look, I’ve left the last function code X suggested on my site (for today only) so you can see what I’m talking about…

    thanks

    #938826
    Daphne D
    Participant

    Please note that the page now says “Product Archives” on the url title too (that wasn’t happening before the updated code)

    #977979
    Rue Nel
    Moderator

    Hello There,

    There are other users that successfully done this. You can follow this topic here:
    https://community.theme.co/forums/topic/redirect-return-to-shop-to-custom-url-redirect-the-shop-in-breadcrumbs-too/#post-780840

    To change the shop title from “Product Archives” to your own preferred text, simply change it in the customizer, Appearance > Customize > Integrity > Shop Options.

    Please let us know how it goes.

  • <script> jQuery(function($){ $("#no-reply-910805 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>