这是第二次张贴这个问题,我的客户想要在CMS主页上显示登录表单,注册表,欢迎折扣,就像这个网站http://www.myntra.com/一样。
我试图通过粘贴CMS主页中的以下代码来使用lighbox的lytebox模块
<script type="text/javascript">// <![CDATA[ $lb.launch({ url: 'test.html', // the url to the page you want to load, or image.jpg options: 'width:800 height:600', // optional title: 'My Title', // optional }) ]]></script>
一切都很好,但这个lytebox脚本是只接受html页面,而不是php或phtml files.Is有任何其他方式显示登录表单在lightbox请建议我一步一步,因为我是编程领域的新手…
提前感谢
发布于 2012-05-31 14:55:56
将此代码添加到cms/主页
{{block type="core/template" template="quicklogin/quicklogin.phtml"}}这一行是quicklogin/quicklogin.phtml文件的第一行
<?php if(!$this->helper('customer')->isLoggedIn()): ?>并在上述文件的最后完成此if条件
https://stackoverflow.com/questions/10818030
复制相似问题