X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Button that use go.gif vs. ones that use bg1.gif,bg2.gif, .. (https://forum.x-cart.com/showthread.php?t=13017)

jb1013 03-25-2005 01:21 PM

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

EnriqueHavoc 03-25-2005 08:32 PM

i often ponder this too

kangus 03-27-2005 10:29 AM

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.

jb1013 03-28-2005 09:28 AM

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


All times are GMT -8. The time now is 03:36 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.