• Resolved Get Automated

    (@getautomated)


    I made a static page for the woocommerce shop page with some woocommerce shortcodes. Once I published it and set the “Shop” page in woocommerce to that new page, everything appears perfectly except that after the content from the shortcodes, all of my products are being listed out in what appears to be the “product archives” I think? I want to make this disappear, but for the life of me cannot find any setting or anything that will make the wall of all products disappear. Any help would be greatly appreciated! ??

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Make a new page and set it to be your shop page, but don’t link to it.

    Thread Starter Get Automated

    (@getautomated)

    What do you mean by “don’t link to it”?

    The only thing I did with my new page was go to Publish it, then went to Woocommerce Settings > Products Tab > Shop Page – and selected my new page.

    Don’t link to your shop page (because you already have a custom shop page) = don’t have it as a menu item or href it from anywhere on your site.

    You may need to redirect the return to shop link on the cart page, and there is a snippet to do so.

    Thread Starter Get Automated

    (@getautomated)

    So when you say “don’t link to your shop” are you meaning in the woocommerce settings?

    I was able to do that and I guess that solves the issue, but like you said, if there are links to direct to the ‘woocommerce shop page’ and I have none specified in the settings, what will happen, and how do I fix the redirect to go to my new custom shop page?

    My understanding is that Woo has to have a shop page, so setup a new page for the shop and set it as the shop page in WooCommerce settings. However, users don’t have to go there. No one has to visit it. Just don’t link to it from a menu.

    I think if someone goes to the cart page with nothing in the cart, a button says “Return to Shop?”. You can redirect this button from the Woo shop page to your custom shop page with this snippet:

    add_filter( 'woocommerce_return_to_shop_redirect', "custom_return_to_shop", 20 ); 
    function custom_return_to_shop(){
      return 'https://www.my-domain.com/my-custom-shop-page';
    }

    Alternatively there are some good redirect plugins in the plugin repository:
    https://www.ads-software.com/plugins/redirection/

    Thread Starter Get Automated

    (@getautomated)

    Thanks again for your continued help, I think I’m almost there.

    As of now, I have my custom page setup at https://getautomated.net/store/ without pointing to it as the shop page in the Woo settings. I have no page appointed for the “shop” page in woo settings. I’ve also updated all of my other pages (shopping cart, checkout, my account, etc) to be under the parent of “store” so in the breadcrumbs links in my store, they all point to /store/* which is correct, as they appear to be the only visible navigation.

    I notice however that https://getautomated.net/shop/ still exists (despite this being the same URL/slug as my old shop page that was pointed to in the woo settings). I have unpublished the page, but it still appears to exist presumably as you said because woo still creates it. I’m guessing from what you said, there’s probably no way to remove it, but probably with a redirect plugin, I can have that page always go to my /store/ page instead, which should solve the problem. So I’ll give that a shot later today and report back with my findings either way.

    Thanks again for your help so far, super duper appreciated ??

    Thread Starter Get Automated

    (@getautomated)

    I was able to use a redirection plugin, so the /shop/ page always goes to /store/ now so I think that fixes everything.

    Thank you for the help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to disable All products from shop page’ is closed to new replies.