Добрый день.
Установил сео про на версию опенкарт 1.5.6
Seo Pro: INSTALLATION
Tested on Opencart v1.5.6.4 (oc1564). Should work on all oc15x versions.
This repository contains all modified files, so you can compare them with yours. You can use Total Commander (Windows), WinMerge (Windows), Meld (Linux) to compare files and folders.
execute SQL query
ALTER TABLE `product_to_category` ADD `main_category` tinyint(1) NOT NULL DEFAULT '0';
if you use prefix, add it to the table name.
copy file seo_pro.php into the folder catalog/controller/common
compare and make changes to all other files.
GUI tools that can help you compare files and directories: Total Commander (Windows), WinMerge (Windows), Meld (Linux).
Open file index.php, find and replace this line
$controller->addPreAction(new Action('common/seo_url'));
with following
if (!$seo_type = $config->get('config_seo_url_type')) {
$seo_type = 'seo_url';
}
$controller->addPreAction(new Action('common/' . $seo_type));
Отправил запрос в SQL
INSERT INTO oc_url_alias (query, keyword) VALUES ('common/home', '');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/wishlist', 'wishlist');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/account', 'my-account');
INSERT INTO oc_url_alias (query, keyword) VALUES ('checkout/cart', 'shopping-cart');
INSERT INTO oc_url_alias (query, keyword) VALUES ('checkout/checkout', 'checkout');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/login', 'login');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/logout', 'logout');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/order', 'order-history');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/newsletter', 'newsletter');
INSERT INTO oc_url_alias (query, keyword) VALUES ('product/special', 'specials');
INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/account', 'affiliates');
INSERT INTO oc_url_alias (query, keyword) VALUES ('checkout/voucher', 'gift-vouchers');
INSERT INTO oc_url_alias (query, keyword) VALUES ('product/manufacturer', 'brands');
INSERT INTO oc_url_alias (query, keyword) VALUES ('information/contact', 'contact-us');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/return/insert', 'request-return');
INSERT INTO oc_url_alias (query, keyword) VALUES ('information/sitemap', 'sitemap');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/forgotten', 'forgot-password');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/download', 'downloads');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/return', 'returns');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/transaction', 'transactions');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/register', 'create-account');
INSERT INTO oc_url_alias (query, keyword) VALUES ('product/compare', 'compare-products');
INSERT INTO oc_url_alias (query, keyword) VALUES ('product/search', 'search');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/edit', 'edit-account');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/password', 'change-password');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/address', 'address-book');
INSERT INTO oc_url_alias (query, keyword) VALUES ('account/reward', 'reward-points');
INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/edit', 'edit-affiliate-account');
INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/password', 'change-affiliate-password');
INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/payment', 'affiliate-payment-options');
INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/tracking', 'affiliate-tracking-code');
INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/transaction', 'affiliate-transactions');
INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/logout', 'affiliate-logout');
INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/forgotten', 'affiliate-forgot-password');
INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/register', 'create-affiliate-account');
INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/login', 'affiliate-login');
Теперь у меня главная страница работает в виду ЧПУ. Не работают корзина и оформить заказ. Так же не работают категории. Поиск. Одним словом старые ссылки(кривые) не работают а новых нет.
Стоит отключить в настройках Использовать SEO URL's: так сразу вся проблема решается, но ссылки становятся кривыми. Или index.php вернуть в исходный код то проблема решается.