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

How do i add an Onload event?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-12-2005, 06:54 AM
 
Multitoolstore Multitoolstore is offline
 

Member
  
Join Date: Feb 2004
Posts: 26
 

Default How do i add an Onload event?

Or more specifically how do i add an Onload event just to a specific pages?

I need to add this to the body tag on the create profile page and one on the checkout, i am sure this can be done in smarty but have yet to figure it out.

I would very much appreciate any advice on how to achieve this.

Thanks
__________________
X-Cart 4.0.17
PHP 4.3.10
MYSQL 3.23.54
Reply With Quote
  #2  
Old 11-12-2005, 06:35 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Here's a few that cover cart, registration, login, etc. Play around with them and see if they do what you need.


Code:
{if $main eq "cart" or $action eq "cart" or $smarty.get.mode eq "auth" or $main eq "user_add" or $newbie eq "Y"}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 02:28 AM.

   

 
X-Cart forums © 2001-2020