View Single Post
  #1  
Old 04-23-2003, 09:24 PM
 
rohit rohit is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 36
 

Default Still.............POPUP is a problem?..........Help!

Hello,

I am tired of testing popup. I had earlier placed my problems in regards to popup and the answers i got didn't help me a bit.

My problem
------------------
i was told to follow some steps. I was told it is necessary to have a php file to be called into popup window and the php file so made should call tpl file to display it. What i did :

1) I created a new folder in "customer" folder the "popup". There i created two files --- a) popup-licence.php and b) popup-licence.tpl

** Please if there are any pitfalls in the coding do correct them so that they work**

Coding : popup-licence.php -------------------------------------------------

<?php
$smarty = new Smarty;
$smarty->assign('Contacts',
array('fax' => '555-222-9876',
'email' => 'zaphod@slartibartfast.com',
'phone' => array('home' => '555-444-3333',
'cell' => '555-111-1234')));
$smarty->display('customer/popup/popup-licence.tpl');
?>
-----------------------------------------------------------------------------------

Coding : popup-licence.tpl -------------------------------------------------




{$Contacts.fax}

{$Contacts.email}


{$Contacts.phone.home}

{$Contacts.phone.cell}

</p>
---------------------------------------------------------------------------------

In the home.tpl file i hyperlinked an image (to the left below help) to popup above page see what is being shown in the popup window:
http://www.templatearena.com/xcart/customer

Please help me resolve the problem asap. I would be ever greatful to you.

Thanks
__________________
Rohit Sharma
Reply With Quote