X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   If no products in the category then it will redirected to home page (https://forum.x-cart.com/showthread.php?t=71428)

buywink 02-19-2015 10:23 PM

If no products in the category then it will redirected to home page
 
Hi,
If the category is disabled then if someone click on linked category then it will automatically redirected to home page.

In the similar logic if in any category product is disabled and out of stock then how to redirected it to home page if someone clicked on that category?

Please help me.

Thank you in advance.

chamberinternet 02-20-2015 12:04 AM

Re: If no products in the category then it will redirected to home page
 
If a category is disabled then it wont appear on the customer storefront, so it shouldn't really matter.

buywink 02-20-2015 01:25 AM

Re: If no products in the category then it will redirected to home page
 
Quote:

Originally Posted by chamberinternet
If a category is disabled then it wont appear on the customer storefront, so it shouldn't really matter.


Sometimes it is happening that one product linked with multiple categories.But that bulk products needs to disable.But category may enable after stock come then we will update the stock of the product.Instead of disabling the category I want if someone click on any category which is enabled but the product that is linked with that category is out of stock it will redirected to home page instead of saying="There is no available products in the category"

How to achieve that?


All times are GMT -8. The time now is 07:38 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.