Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

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

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 04-24-2003, 04:07 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

Your popup.tpl should be in skin1/customer then it should work
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 04-25-2003, 01:59 AM
 
rohit rohit is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 36
 

Default

Hi,

I saved both the files to skin1/customer but i got nothing! Check by yourself : http://www.templatearena.com/xcart/customer


Remember i am repeating the things. These trials i have already done and had been failure.

Can you give me in writing here a small working example in which just a small sentence say "Hello! Brother" is displayed. Can you do this to me?
I suppose this would be better for me atleast.

I am waiting for you reply, brother. Hope you will not diappoint me.

best regards
__________________
Rohit Sharma
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:29 PM.

   

 
X-Cart forums © 2001-2020