The installation is slightly more involved as on a Unix server as our auto install script will
not work on Windows.
Installation Steps:
1. Backup your cart database
2. Copy and paste "app" and "design" folder in your application root folder.
3. Install and Activate Advanced SEO Plugin under CS-cart Admin area >> Add-ons >> Manage Add-ons
If you are on a windows server please manually update the following files:
Locate
1. app/add-ons/discussion/controllers/common/discussion.php
Find
"$data = fn_discussion_get_object_by_thread($_REQUEST['thread_id']);"
before the line copy/paste the following code
1 |
"if(empty($_REQUEST['thread_id'])){ $discussion = @db_get_row("SELECT thread_id FROM ?:discussion WHERE object_type = ?s",'E'); $_REQUEST['thread_id']= isset($discussion['thread_id']) ? (int)$discussion['thread_id'] : 0; }" |
Locate
2. app/functions/fn.control.php
Find
"} elseif ($status == CONTROLLER_STATUS_NO_PAGE) {
$view->assign('page_title', __('page_not_found'));"
Add this after that line:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
//Advanced SEO Custom 404 if ($area == 'C') { $advanced_seo_addon = Registry::get('addons.advanced_seo'); if($advanced_seo_addon != NULL){ if($advanced_seo_addon['status'] == 'A'){ $tbl_config = db_query('SELECT 1 from ?:advanced_custom_page'); if($tbl_config !== FALSE){ $a_conf = db_get_row('SELECT * from ?:advanced_custom_page WHERE id = 1'); if($a_conf['use_sitemap'] == 1){ fn_redirect('/sitemap'); } else if($a_conf['content'] != '' && $a_conf['use_sitemap'] == 0){ fn_redirect('/page-not-found/'); } } } } }//End of Advanced SEO Custom 404 |