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

Button that use go.gif vs. ones that use bg1.gif,bg2.gif, ..

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-25-2005, 01:21 PM
 
jb1013 jb1013 is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 80
 

Default Button that use go.gif vs. ones that use bg1.gif,bg2.gif, ..

Hi thanks for reading.

I'm trying to determine what causes some buttons to use the go.gif button and while others use the combination of but1, but2, and butbg gifs.

I've created a custom button set using the but gifs and would like to use that for all the buttons on the site. Currently buttons like "update", "clear cart", "submit", "delete item", etc are using the go.gif image.

I've looked at the .tpls for the specfic buttons and there doesn't seem to be any difference between the two types.

In button.tpl it looks like there is some sort if / else statement that determines which buttons get which dressing. Unfortunately, I'm not versed well enough on the programming side of things to see exactly what's going on or what I would need to change to get the result I'm looking for.

Thanks so much,

JB
__________________
Jason Brantley
Axis Computer Conuslting
www.axiscc.com
Reply With Quote
  #2  
Old 03-25-2005, 08:32 PM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default

i often ponder this too
__________________
X-Cart 4.0.12
PHP 4.3.11
MySQL 4.0.23
Linux/Apache
Net::SSLeay 1.25
libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4
www.ewdhosting.com
Reply With Quote
  #3  
Old 03-27-2005, 10:29 AM
  kangus's Avatar 
kangus kangus is offline
 

Senior Member
  
Join Date: Feb 2003
Posts: 160
 

Default

the test:
{if $style eq 'button' && ($config.Adaptives.platform ne 'MacPPC' || $config.Adaptives.browser ne 'NN')}

looks at
$style
$config.Adaptives.platform
$config.Adaptives.browser

If your running a browser that thinks it's NOT Netscape Navagator or your NOT on the MacPPC platform AND $style is equal to button use the but buttons else use the go buttons

We had to use custom GO buttones on a site, the customer insisted.
__________________
X-cart 3.3.1 ~ 4.0.18 4.1.1
PHP4/5 MySQL 4.1.10a/5.1
CENTOS 4.1 / SuSE 9.3 / MS Server
Authorize.Net Partner
Reply With Quote
  #4  
Old 03-28-2005, 09:28 AM
 
jb1013 jb1013 is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 80
 

Default Thanks for the explanation

Thanks for the Explanation kangus. It also seems like the Go Buttons call use JavaScript. Now for more questions. What is the reasoning behind all this? Obviously there is a reason to have things setup this way, I just don't understand it.

What would I need to change so that all the buttons on the site used the but .gifs or can this even be done?

JB
__________________
Jason Brantley
Axis Computer Conuslting
www.axiscc.com
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 11:36 AM.

   

 
X-Cart forums © 2001-2020