Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

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

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 02-19-2015, 10:23 PM
 
buywink buywink is offline
 

Advanced Member
  
Join Date: Apr 2012
Posts: 93
 

Default 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.
__________________
x-cart Gold 4.4.5
Reply With Quote
  #2  
Old 02-20-2015, 12:04 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default 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.
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #3  
Old 02-20-2015, 01:25 AM
 
buywink buywink is offline
 

Advanced Member
  
Join Date: Apr 2012
Posts: 93
 

Default 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?
__________________
x-cart Gold 4.4.5
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:55 AM.

   

 
X-Cart forums © 2001-2020