Tagged: x
-
AuthorPosts
-
May 3, 2016 at 9:26 am #910805
Daphne DParticipantHi, 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!
May 3, 2016 at 9:27 am #910809
Daphne DParticipantThis reply has been marked as private.May 3, 2016 at 12:57 pm #911169
ThaiModeratorhow 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 🙂
May 3, 2016 at 1:48 pm #911269
Daphne DParticipantThank 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)
May 3, 2016 at 10:18 pm #911800
JadeModeratorHi 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
May 4, 2016 at 9:16 am #912525
Daphne DParticipantThis reply has been marked as private.May 4, 2016 at 9:48 am #912567
Daphne DParticipantby 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
May 4, 2016 at 12:12 pm #912848
ThaiModeratorHi 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 🙂
May 4, 2016 at 4:20 pm #913255
Daphne DParticipantThank you. Unfortunately that code sends the user to the main HOME page, not the “store” page.
May 4, 2016 at 6:02 pm #913378
Daphne DParticipantUpdate: 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
May 4, 2016 at 10:14 pm #913667
RadModeratorGlad 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!
May 5, 2016 at 10:58 am #914464
Daphne DParticipantyes 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.
May 5, 2016 at 2:56 pm #936775
Daphne DParticipantUPDATE: 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
May 5, 2016 at 3:10 pm #938826
Daphne DParticipantPlease note that the page now says “Product Archives” on the url title too (that wasn’t happening before the updated code)
May 5, 2016 at 8:21 pm #977979
Rue NelModeratorHello 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-780840To 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-910805 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
