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

Redirect to Product Page when only One product in category

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 11-13-2007, 09:58 AM
 
luxor luxor is offline
 

Senior Member
  
Join Date: Apr 2007
Posts: 120
 

Default Re: Redirect to Product Page when only One product in category

does this mod work with 4.1.8 if so, can someone post the latest code

we have sub categories , and a seo url rewirte installed
__________________
v4.1.8 GOLD
Reply With Quote
  #22  
Old 11-13-2007, 09:59 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Redirect to Product Page when only One product in category

It works fine, I have used it in 4.1.8 without issue.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #23  
Old 11-19-2007, 07:04 AM
 
Steve-C Steve-C is offline
 

Senior Member
  
Join Date: Jan 2006
Location: England
Posts: 172
 

Default Re: Redirect to Product Page when only One product in category

Anyone got a fix to make this great mod work with Safetynetweb's DSEFU ?
__________________
X-Cart Gold v 4.3.2
X-AOM, Marketing Manager, On Sale
Reply With Quote
  #24  
Old 11-30-2007, 04:33 AM
 
Steve-C Steve-C is offline
 

Senior Member
  
Join Date: Jan 2006
Location: England
Posts: 172
 

Default Re: Redirect to Product Page when only One product in category

Just out of interest, I contacted John Heath at SafetyNetWeb and he very quickly and efficiently fixed the file for me. Now it works great with the DSEFU. Excellent service.

You can contact him at safetynetweb.com ****E-MAIL removed by mod ***
__________________
X-Cart Gold v 4.3.2
X-AOM, Marketing Manager, On Sale
Reply With Quote
  #25  
Old 02-06-2008, 10:25 PM
 
instink instink is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 44
 

Default Re: Redirect to Product Page when only One product in category

Love this mod! Does anyone know a way to make it so that if there is only one subcategory and no products that it will redirect to that category? Sounds silly I know but the categories in my shop are getting a little out of hand thanks!
__________________
X-cart 4.0.16
www.jctech.com.au
Reply With Quote
  #26  
Old 04-10-2008, 06:38 PM
 
jeanne jeanne is offline
 

Advanced Member
  
Join Date: Aug 2004
Posts: 85
 

Default Re: Redirect to Product Page when only One product in category

In my Google account I get a Warning on my Sitemap that I have pages that returning 302 redirects. It looks like the only products that have the problem pages are the ones that use this redirect. I'm going to turn this off and see if this is the problem.
If anyone else has seen this, I'd like to know.
__________________
Jeanne
4.1.8 Gold
Reply With Quote
  #27  
Old 06-11-2008, 09:13 PM
 
craichead craichead is offline
 

Advanced Member
  
Join Date: Sep 2006
Posts: 46
 

Default Re: Redirect to Product Page when only One product in category

any news on the last question?

Also, i'm getting the following error after installing BCSE back/preorder mod:

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wd_newest/include/preorder_search.php:13) in /Applications/MAMP/htdocs/wd_newest/var/templates_c/%%3D^3DB^3DBA0730%%subcategories.tpl.php on line 8

Best,

B
__________________
v4.1.10 - Linux of Course

www.ShinyTomato.com - Professional Web Design, PHP Development & Web Solutions

www.AshleyHosting.com - Personalized Web Hosting Solutions
Reply With Quote
  #28  
Old 04-10-2009, 07:47 AM
 
Stizerg Stizerg is offline
 

Senior Member
  
Join Date: Apr 2008
Location: Sydney, Australia
Posts: 195
 

Default Re: Redirect to Product Page when only One product in category

It works on 4.1.12
We'll see what google thinks about it.

Jon, your code for CDSEO doesn't work. Can you update it please?
__________________
X-Cart Gold Plus 4.6.6
A lot of custom mods
Reply With Quote
  #29  
Old 04-10-2009, 11:34 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Redirect to Product Page when only One product in category

Quote:
Originally Posted by Stizerg
It works on 4.1.12
We'll see what google thinks about it.

Jon, your code for CDSEO doesn't work. Can you update it please?

The CDSEO code is for CDSEO Basic only. For CDSEO Pro you can use the default code and the url will 301 redirect to the CDSEO Pro url.

Jon Peters
Reply With Quote
  #30  
Old 04-10-2009, 06:22 PM
 
Stizerg Stizerg is offline
 

Senior Member
  
Join Date: Apr 2008
Location: Sydney, Australia
Posts: 195
 

Default Re: Redirect to Product Page when only One product in category

Yes, but it redirects to "monaco-suspender-belt.html?&cat=14" instead of "monaco-suspender-belt.html"
For customer it looks alright, I don't mind but Google can find it as duplicate content because both addresses exist.

Don't worry, just decided to remove it as it can confuse some 'blond' customers.

Thanks.
__________________
X-Cart Gold Plus 4.6.6
A lot of custom mods
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 11:45 AM.

   

 
X-Cart forums © 2001-2020