Installation - CDSEO Pro for X-Cart 4.4.x
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
Windows using Isapi Rewrite 3+
Step 3a : 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).
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 3b : In your server control panel you will have the ability to set a Directory Index. Add a primary index of home.php.
If you are unable to do this then edit your CDSEO settings once installation is complete and disable "Rewrite and redirect index page of home.php to /:"
Zeus with rewrite enabled
Step 3a : The following code must now be copied and pasted into the "Rewrite Script" section of your Zeus control panel:
For X-Cart 3.5.x only: Change if not exists then set URL = /cdseopro.php to if not exists then set URL = /customer/cdseopro.php
Step 3b : If your server supports .htaccess files, copy and paste the following 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. If .htaccess is unsupported then edit your CDSEO settings once installation is complete and disable "Rewrite and redirect index page of home.php to /:"
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
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
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
FIND:
$product_url."\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.
OPEN skin/common_files/admin/menu_box.tpl on X-Cart PRO or skin/common_files/single/menu_box.tpl on X-Cart Gold .
Find:
{include file="admin/help.tpl"}
AFTER add:
NOTE: If you've previously added custom WebsiteCM modules, you may already have this code in place.
If the code <li>Custom Modules already exists then skip to the next 'Find:' change below.
<li>Custom Modules
<div>
</div>
</li>
Find:
<li>Custom Modules
<div>
AFTER add:
{* WCM - CDSEO Pro Links *}
<a href="{$catalogs.admin}/cdseopro/index.php" class="VertMenuItems" target="_blank">CDSEO Pro (SEO Administration)</a>
{* / WCM - CDSEO Pro Links *}