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

custom buttons?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-29-2008, 05:30 PM
 
Janel Janel is offline
 

Member
  
Join Date: Feb 2007
Location: Mitten Dweller
Posts: 27
 

Default custom buttons?

Okay....this is probably somewhere on here...in fact I know it is...but I can't seem to find it anywhere...grrr.

I want to change out all of my buttons to custom images... and maybe I'm just tired because I can't figure out what I need to do. The buttons now consist of the but1.gif and but2.gif and I know I can just change those images and have a sort-of custom button but I don't want that style at all. I want to make each one individually and unique. So where do I start???

I'm referring to the add to cart, buy now, wishlist, continue shopping etc...

Any help would be appreciated.
__________________
xcart ver. 4.1.11 gold
Reply With Quote
  #2  
Old 10-30-2008, 04:06 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: custom buttons?

Look in skin1/images and replace all of the images found there (you should make backups first).
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 10-30-2008, 05:42 AM
 
Janel Janel is offline
 

Member
  
Join Date: Feb 2007
Location: Mitten Dweller
Posts: 27
 

Default Re: custom buttons?

But just replacing those images won't make each button it's own customized button. That would change like the ugly bar button that there is now and make them all the same.

Let's say I want to make the add to cart button a flower (I don't...just for discussion sake tho) and the wishlist button a star....etc.

I know I have to create the individual images... but then when it gets to putting them on the individual templates I guess I'm a little stumped.

The code for the add to cart button in the products tpl is : {include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}

so that calls the add to cart tpl. Then when you open the add to cart tpl it calls the buttontpl.

Am I thinking too much about this and making it more than I need to? I keep thinking I can just go to the individual templates and put the image I create in and then somehow link to where it would go but then I think I lose the code that actually DOES the adding to cart etc.

???
__________________
xcart ver. 4.1.11 gold
Reply With Quote
  #4  
Old 10-30-2008, 05:57 AM
 
balinor balinor is offline
 

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

Default Re: custom buttons?

If you want to make individual images for each button, it will take you a month of sundays as you would need to go into each template and replace the button call with a graphic call
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-30-2008, 06:21 AM
 
Janel Janel is offline
 

Member
  
Join Date: Feb 2007
Location: Mitten Dweller
Posts: 27
 

Default Re: custom buttons?

that bad huh?
__________________
xcart ver. 4.1.11 gold
Reply With Quote
  #6  
Old 10-30-2008, 06:25 AM
 
balinor balinor is offline
 

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

Default Re: custom buttons?

Well, if you only want a few that are unique and then everything else 'stock' it won't be that bad. You can edit things like buy now and add to cart globally, as they have their own template.
__________________
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 01:36 PM.

   

 
X-Cart forums © 2001-2020