Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Hiding empty categories and out of stock products  (Read 280 times)

Offline billteale

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Hiding empty categories and out of stock products
« on: June 20, 2019, 02:02:48 PM »
how do I hide the 0 stock and empty categories from public view?

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1534
  • Karma: +413/-3
    • View Profile
Re: Hiding empty categories and out of stock products
« Reply #1 on: June 20, 2019, 02:39:10 PM »
You can look at the categories  and the product grids in your Admin dashboard - 

they will show which ones have 0 in them.   The Off/on setting is on the same line.  Set the the switch to Off to not show them on SF.   Don't forget to save the changes.

Don't forget to tune them on when you have items in them.

To the best of my knowledge there is no automatic way to have them hide

Offline Sam_78

  • Full Member
  • ***
  • Posts: 221
  • Karma: +40/-1
    • View Profile
Re: Hiding empty categories and out of stock products..
« Reply #2 on: June 24, 2019, 11:37:51 AM »
Yes that is the best solution you can do is control manually
You can also do a redirect means if customer lands on not found page you can redirect them to home page
to do this you need to edit this file  ....\template\pages\error\not_found.tpl
add the below lines on top of the file

<script type="text/javascript">
    window.onload = function() {
        setTimeout(function() {
            window.location = "/";
        }, 5000);
    };
</script>


This will redirect not found page to your home page within 5 seconds

 

Powered by SMFPacks Social Login Mod