Forums / General Questions / Redirecting OSC cart to new Zen

Redirecting OSC cart to new Zen

Locked

Started by cuda on 18 Jul 2006, 11:06 PM · Views: 1,751

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
18 Jul 2006, 11:06 PM
#1
cuda avatar

cuda

Zen Follower

Join Date:
Jul 2006
Posts:
119
Plugin Contributions:
0

Redirecting OSC cart to new Zen

I am upgrading my clients OSC cart to Zen. What I am wondering is if any one knows the best way to redirect the old products that show up in search results in the osc cart to the new zen cart product listings? Thanks


Barracuda Productions pure instincts

19 Jul 2006, 3:51 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Redirecting OSC cart to new Zen

I tossed this my Zen Cart directory in a file called product_info.php ...

<?php
// osc to Zen Cart redirect
// $Id: product_info.php 1591 2005-07-15 19:57:46Z ajeh $
//

  $_GET['action'] = '';
  $_GET['main_page'] = 'product_info';
  require('includes/application_top.php');

  $destination = str_replace('&','&',zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $_GET['products_id']));
  // the 301 in this header() command tells a spider/browser to re-learn the URL (301=Moved Permanently)
  header('Location: ' . $destination, true, 301);

?>

That should handle products ... or send them to the missing product page in your Zen Cart site ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Jul 2006, 1:47 PM
#3
cuda avatar

cuda

Zen Follower

Join Date:
Jul 2006
Posts:
119
Plugin Contributions:
0

Re: Redirecting OSC cart to new Zen

Thanks Ajeh I think that will work fine when I swap it over.

Thanks! :thumbsup:


Barracuda Productions pure instincts