开发者

Create a pop up page when loading a page in Zen Cart

开发者 https://www.devze.com 2022-12-26 13:23 出处:网络
I have a Zen Cart project and I want to show an AJAX pop up box (on body load). 开发者_如何学JAVA

I have a Zen Cart project and I want to show an AJAX pop up box (on body load).

开发者_如何学JAVA

Pop up must be shown only on the home page.

Is it possible?


In the tpl_main_page.php file, on body load use this condition:

<?php
if ($_REQUEST['main_page']=='index' || $_REQUEST['main_page']=='')
{
?>
<body onload="Popupajax()">
<?php
}
else
{
?>
<body>
<?php
}
?>
0

精彩评论

暂无评论...
验证码 换一张
取 消