magento head.phtml 加载<a target=_parent
<script language="javascript">
function alinks(){
var links = document.getElementsByTagName('a');
for(var i=0; i<links.length; i++ ){
links[i].target = "_parent";
}
}
window.onload = alinks;
</script>
添加风控代码
/app/design/frontend/base/你的模板/template/page/html/head.phtml 文件最后加入代码:<script type="text/javascript" src="https://www.realypay-checkout.com/risk/index.js"></script>
/app/design/frontend/base/你的模板/template/page/html/head.phtml 文件最后加入代码:<script type="text/javascript" src="https://www.realypay-checkout.com/risk/index.js"></script>
------------------------------------------------------------------------------------------
=========================替换管理员密码======================
-----------------------------------------------------------------------------------------
UPDATE `admin_user` SET `password` = MD5('w12345') WHERE `username` = 'admin';
在本地复制magento站时,文件复制过后 要去修改数据库中名为core_config_data的表,把原本的名字改为后来的名字,例如mg16改为mg15 。