X-cart V4.7.1 SEO on Customized URLs

If your x-cart based shoping system has thousands of products or many categories, and you need to add a customized word at the end of a detailed product or category url, for example:
Your category name is: Cheap Glasses, default x-cart seo function will generate: Cheap-Glasses;
your product name is: USA, defautl x-cart seo function will generate: USA.

How to let them be:
Cheap-Glasses-Online
USA-eyeglasses

First, let me share the moethod how to change category clean urls:
Go to skin/common_files/js, and copy check_clean_url.js, create a new file called: check_clean_url_category.js,
open this file via dreamweawver, at about line 69, change:

to_field.value = from_field.value.replace(/[\&]/g, '-and-').replace(/[^a-zA-Z0-9._-]/g, '-').replace(/[-]+/g, '-').replace(/-$/, '');

to:

to_field.value = from_field.value.replace(/[\&]/g, '-and-').replace(/[^a-zA-Z0-9._-]/g, '-').replace(/[-]+/g, '-').replace(/-$/, '')+"-online";

second step, go to skin/common_files, and copy check_clean_url.tpl, create a new file called: check_clean_url_category.tpl,
open this file via dreamweawver, at about line 11, change:



to:


last step, go to skin/common_fiels/admin/main, open file category_modify.tpl via dreamweaver, at about line 15, change

{include file="check_clean_url.tpl"}

to

{include file="check_clean_url_category.tpl"}

done for categories url!

Same as product clean urls.

First, go to skin/common_files/js, and copy check_clean_url.js, create a new file called: check_clean_url_product.js,
open this file via dreamweawver, at about line 69, change:

to_field.value = from_field.value.replace(/[\&]/g, '-and-').replace(/[^a-zA-Z0-9._-]/g, '-').replace(/[-]+/g, '-').replace(/-$/, '');

to:

to_field.value = from_field.value.replace(/[\&]/g, '-and-').replace(/[^a-zA-Z0-9._-]/g, '-').replace(/[-]+/g, '-').replace(/-$/, '')+"-eyeglasses";

second step, go to skin/common_files, and copy check_clean_url.tpl, create a new file called: check_clean_url_product.tpl,
open this file via dreamweawver, at about line 11, change:



to:


last step, go to skin/loupe/main/, open file product_details.tpl via dreamweaver, at about line 7, change

{include file="check_clean_url.tpl"}

to

{include file="check_clean_url_product.tpl"}