Hi Team,
I wish add a pop-up window with my eshop site terms & conditions, pooped by clicking on a text link in the site registration page.
The site is php script e-commerce
The following java script do the job in html web page:
<br>
<script type="text/javascript">
function openpopup(popurl){
var winpops=window.open(popurl
,"","width
=,height=,
scrollbars
,resizable
")
}
</script>
<a
href="javascript:openpopup
('
http://www.name-site.com/terms.html')"
>terms & conditions</a>
In html page a statement like "terms & conditions" might be used as the popup text link.Clicking.
PHP:
php definitions I used:
ENTRY_I_READ => "I hereby confirm that I read the site"
ENTRY_CONDITIONS => "Terms & Conditions"
ENTRY_CONFIRM => "and am accepting them"
I wish add the popup link to be applied on the words: "Terms & Conditions"
How can I add the java script to the php file in order to execute the popup instruction?
Thank you, ronig
The PHP script where I want this link to be added is looks like this:
<tr>
<td class="main"><b><?php echo CATEGORY_CONDITIONS; ?></b></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="main"><?php echo ENTRY_I_READ; ?></td
<td class="main"><?php echo ENTRY_CONDITIONS; ?></td>
<td class="main"><?php echo ENTRY_CONFIRM; ?></td>
//next is the radio button to confirm not relevant to my question
<td class="main"><?php echo tep_draw_radio_field('term
s', 'y') . '' . (tep_not_null(ENTRY_TERMS_
TEXT) ? '<span class="inputRequirement">'
. ENTRY_TERMS_TEXT . '</span>': ''); ?></td>
<form id="form1" name="form1" method="post" action="" onsubmit="if (form1.checkbox.checked=='
'){alert('
You need to accept the terms');return false};">
<td class="main"><?php echo ENTRY_NOT_CONFIRM; ?></td>
<td class="main"><?php echo ENTRY_CATALOG_PAGE; ?></td>
</tr>
</table></td>
Thank you, roni
Start Free Trial