|
I recently installed the MGT-Commerce SERP Editor for my site, and it’s definitely a great idea, but there were a few issues with the preview urls, and the editor wasn’t displaying properly during new product creation. Here are the fixes to those issues:
Add editor to NEW product creation:
/app/design/adminhtml/default/default/layout/mgt_serp_editor.xml
insert just below the closing tag </adminhtml_catalog_product_edit>
<adminhtml_catalog_product_new> <reference name="head"> <action method="addItem"><type>skin_css</type><name>mgt_serp_editor/css/style.css</name></action> <action method="addItem"><type>skin_js</type><name>mgt_serp_editor/js/functions.js</name><params/></action> </reference> </adminhtml_catalog_product_new>
Remove index.php from baseurl:
/app/code/community/Mgt/SerpEditor/Block/Adminhtml/Form/Renderer/Preview.php
On line 68 change:
$this->_baseUrl = $store->getBaseUrl();
to
$this->_baseUrl = $store->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
Remove .html from url previews:
/skin/adminhtml/default/default/mgt_serp_editor/js/functions.js
on line 33 change:
url += ".html";
to
url += "/";
|