Installation
Addons

Buy Now!

Installation - CDSEO Pro for X-Cart

Installation of Custom Dynamic Search Engine Optimization (CDSEO) Pro for X-Cart is done via a web-based installation. Instructions are posted here for reference only.

STEP 1 - Create the CDSEO Pro database tables

Database fields are created via the web-based administration.

STEP 2 - Auto-Update/Create your CDSEO values

Database fields are populated via the web-based administration.

STEP 3 - Create rewrite code

Follow the instructions for the server type on which you are installing:


Default / Apache

The following code must now be copied and pasted into an .htaccess file located in your root store directory (i.e. the same directory as home.php and cart.php).

Be sure to replace your current DirectoryIndex if applicable. If your file contains the default directory index it will appear as: DirectoryIndex index.html index.php

For X-Cart 3.5.x only: Change #RewriteBase /xcart/ to #RewriteBase /xcart/customer/ (where x-cart is the directory in which you've installed x-cart).


STEP 4 - Modify system files

It's recommended that you back-up each file you edit so you can easily revert your changes if necessary.

Step 4a

OPEN home.php

Find:

require "./auth.php";

REPLACE with:

// WCM - CDSEO Pro Links
#require "./auth.php";
require_once "./auth.php";
include $xcart_dir."/modules/cdseolinks/cdseo_redirects.php";
// / WCM - CDSEO Pro Links


Step 4b

OPEN product.php

Find:

require "./auth.php";

REPLACE with:

// WCM - CDSEO Pro Links
#require "./auth.php";
require_once "./auth.php";
include $xcart_dir."/modules/cdseolinks/cdseo_redirects.php";
// / WCM - CDSEO Pro Links


Step 4c

For X-Cart 3.5.x only: Skip this edit as manufacturers.php will not be present.

OPEN manufacturers.php

Find:

require "./auth.php";

REPLACE with:

// WCM - CDSEO Pro Links
#require "./auth.php";
require_once "./auth.php";
include $xcart_dir."/modules/cdseolinks/cdseo_redirects.php";
// / WCM - CDSEO Pro Links


Step 4d

OPEN pages.php

Find:

require "./auth.php";

REPLACE with:

// WCM - CDSEO Pro Links
#require "./auth.php";
require_once "./auth.php";
include $xcart_dir."/modules/cdseolinks/cdseo_redirects.php";
// / WCM - CDSEO Pro Links


Step 4e

OPEN auth.php

Find:

?>

BEFORE add:

// WCM - CDSEO Pro Links
include_once $xcart_dir."/modules/cdseolinks/cdseo_config.php";
// / WCM - CDSEO Pro Links


Step 4f

For X-Cart 3.5.x only: Skip this edit as Froogle module will not be present.

OPEN modules/Froogle/froogle.php

Find:

set_time_limit(0);

AFTER add:

// WCM - CDSEO Pro Links
include_once $xcart_dir."/modules/cdseolinks/cdseo_convert_urls.php";
// / WCM - CDSEO Pro Links

If running x-cart 4.2.x FIND:

$product_url."\t".

Else FIND:

$froogle_location.constant("DIR_CUSTOMER")." /product.php?productid=".$product['productid']."\t".

REPLACE with:

// WCM - CDSEO Pro Links
#$froogle_location.constant("DIR_CUSTOMER")." /product.php?productid=".$product['productid']."\t".
$froogle_location.constant("DIR_CUSTOMER"). "/" . wcmcdseoGetUrl($product[productid], 'product') . "\t" .
// / WCM - CDSEO Pro Links

STEP 5 - Modify template files

It's recommended that you back-up each file you edit so you can easily revert your changes if necessary.

Step 5

If running x-cart 3.5.x, 4.0.x, 4.1.x or 4.2.x
OPEN /skin1/admin/menu.tpl

 
Find:

{capture name=menu}
 

If running x-cart 4.3.x
OPEN skin1/single/menu_box.tpl
AND skin1/admin/menu_box.tpl

Find:

{capture name=menu1}

AFTER add:

{* WCM - CDSEO Pro Links *}
<a href="{$catalogs.admin}/cdseopro/index.php" class="VertMenuItems" target="_blank">CDSEO Pro (SEO Administration)</a>
<br /><br />
{* / WCM - CDSEO Pro Links *}