Requirements
1. Ioncube Loader
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 linux/unix server, auto script to update the following files will work just fine. If you are on a windows server please manually update the following files:
1. app/addons/discussion/controllers/common/discussion.php
Find "$data = fn_discussion_get_object_by_thread($_REQUEST['thread_id']);" before the line copy/paste the following code
"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; }"
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:
//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