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

button graphics

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 03-04-2005, 04:49 PM
 
halestorm halestorm is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 44
 

Default

oh wow. I amaze myself. So just then look at the tpl pages related to the button I'm making and find the appropriate link..
__________________
...
x-cart-4.0.11

http://www.thegamegeek.net
Reply With Quote
  #12  
Old 03-04-2005, 04:55 PM
 
balinor balinor is offline
 

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

Default

Exactly. That is one way of doing it. The other way is to edit the button templates themselves.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #13  
Old 03-05-2005, 02:56 AM
  Stephen Hatton's Avatar 
Stephen Hatton Stephen Hatton is offline
 

Senior Member
  
Join Date: Mar 2004
Location: Melbourne, Australia
Posts: 182
 

Default

Hi All

You can also modify the button GIF's in the images directory.

Just remember to make backups of both the original and your files to restore when things go wrong or you upgrade and they get replaced with the original versions.

Regards
Ing. Stephen Hatton
__________________
Apache Linux V1.3.33
PERL version: 5.8.0
PHP version: 4.3.11
MySQL version: 4.0.22-standard
X-cart V4.0.17: Addons: X-PConfig, X-Giftreg, X-Fancycat, X-AOM
Reply With Quote
  #14  
Old 03-05-2005, 04:48 AM
 
halestorm halestorm is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 44
 

Default

Ok so I changed the add_to_cart.tpl file just as described above and when I uploaded it, nothing happend. Am I missing a step?

Daniel
__________________
...
x-cart-4.0.11

http://www.thegamegeek.net
Reply With Quote
  #15  
Old 03-05-2005, 05:01 AM
 
halestorm halestorm is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 44
 

Default

Nevermind. I keep looking at the HTML catalog version that does not reflect the changes. <sigh>
__________________
...
x-cart-4.0.11

http://www.thegamegeek.net
Reply With Quote
  #16  
Old 03-05-2005, 09:00 AM
  Lara Croft's Avatar 
Lara Croft Lara Croft is offline
 

Member
  
Join Date: Feb 2005
Posts: 16
 

Default does this help ?

hi - this is what i did to change the buy now button

in the skin/images directory you will find the 3 images that make up the buy now button - but1.gif + butbg.gif + but2.gif.

you have to split your new button design into 3 sections, effectively a left portion, middle and right portion. My button was made 30 px high by 500 wide. My two ends were cut off 10 px each leaving 480 px for the middle.

Then i uploaded the 3 gifs to the skin/images directory and replaced those existing - (name your new gifs the same name as originals).

Then i went to directory /buttons/button.tpl and looked for the scripts that dealt with the 3 gifs that made up the buy now button.

<TABLE border="0" cellspacing="0" cellpadding="0" onclick="{$js_link}" style="cursor: pointer;" valign="middle"{if $title ne ''} title="{$title}"{/if}>
<TR><TD><{$img_type} src="{$ImagesDir}/but1.gif" width="42" height="20" border="0"{if $title ne ''} title="{$title}"{/if}></TD>
<TD class="Button" valign="middle" nowrap><FONT class="Button">{$button_title}</FONT></TD>
<TD>[img]{$ImagesDir}/but2.gif[/img]</TD></TR>
</TABLE>

adjust the hight and width values to match your new gif sizes (but1 & but2) - butbg gif is auto sizing so you don't need to worry about that.

the url for the button is already written in the scripts so you don't need to change that. all you should have is a new button.

now changing your other buttons should now be the same principle as above.

hope i have helped cos it worked for me and i just hope i have managed to explain it properly.

good luck
__________________
Patience Of A Saint - Memory Of A Goldfish

XCART Gold version 4.0.19
Reply With Quote
  #17  
Old 03-05-2005, 10:21 AM
 
halestorm halestorm is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 44
 

Default

I've actully done it that way already. What I'm trying to do is replace those 3 file buttons with custom buttons.

Thanks!
__________________
...
x-cart-4.0.11

http://www.thegamegeek.net
Reply With Quote
  #18  
Old 03-05-2005, 10:41 AM
  Lara Croft's Avatar 
Lara Croft Lara Croft is offline
 

Member
  
Join Date: Feb 2005
Posts: 16
 

Default ok

then surely all you have to do is make up a button and then split it into 3 by way of described above, name them the same as the existing buttons in the images folder and upload / replace them in /skin/images folder.

__________________
Patience Of A Saint - Memory Of A Goldfish

XCART Gold version 4.0.19
Reply With Quote
  #19  
Old 03-05-2005, 11:05 AM
 
halestorm halestorm is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 44
 

Default

Like I said. I've already done it that way and I don't like the results of the way it looks. Too bad I did it before your post. That would have helped alot!

I saw some other x-carts where they put in different buttons.

I'm trying to achieve a specific look and splitting it three ways won't achieve it.

I finally got the "add to cart" button up, now for the others...
__________________
...
x-cart-4.0.11

http://www.thegamegeek.net
Reply With Quote
  #20  
Old 11-14-2006, 02:36 PM
 
dManager dManager is offline
 

Advanced Member
  
Join Date: Jan 2005
Location: Erie, Pennsylvania
Posts: 63
 

Default Re: button graphics

Guys/Gals

Is there an easy way to convert all the 'Go' buttons to the standard button template? (button.tpl)
Or does this have to be done individually?

Thanks,
R
__________________
Rich
___________________________
X-Cart version 4.2.2 Gold
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 03:43 AM.

   

 
X-Cart forums © 2001-2020