/*************************************************\
| Product Keywords |
| |
| BCS Engineering |
| Copyright (c) 2004 BCS Engineering, |
| Carrie L. Saunders <> |
| All rights reserved. |
| See http://www.bcsengineering.com/license.shtml |
| for full license |
| For X-cart versions 3.5.X |
\*************************************************/
NOTE: You should always make a back-up copy of your files and/or database before installing any modification.
INSTALLATION:
1. Log into your Admin interface and copy and paste the SQL queries in patch.sql into the Patch/Upgrade sql utility. (You can put them all in at once)
2. Open the meta.tpl found in this zip and modify your meta.tpl accordingly (see the sections commented by {* BCSE *} comments and upload.
3. Upload the files named product_keywords.php, product_keywords.tpl, and product_meta.php into their appropriate directories.
4. Add to xcart_dir/product.php:
# BCSE Begin
include "./product_meta.php";
# BCSE End
Before:
# Assign the current location line
$smarty->assign("location", $location);
NOTE: If upgrading from our free product meta tags mod, delete the code you added to product.php in that version.
5. Edit skin1/admin/menu.tpl and add:
Recommended before:
{/capture}
6. Edit skin1/common_templates.tpl and add:
{elseif $main eq "product_keywords"}
{include file="admin/main/product_keywords.tpl"}
After the first {if} {include} pair
USAGE:
After installing the mod, create two "Extra Fields": "keywords" and "description".
Then choosing "Product Keywords" allows the admin to assign ID's to the Extra Fields.
Now meta keywords and a meta description can be added to each product.
If a product doesn't have keywords or description defined, the product title will
used to make meta keywords and the description will be
used to make a meta description.