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
  #31  
Old 01-02-2008, 01:18 AM
  hannahshandprints's Avatar 
hannahshandprints hannahshandprints is offline
 

Newbie
  
Join Date: Dec 2007
Posts: 2
 

Default Re: button graphics

Quote:
Originally Posted by retrtrtrytrutru
Another option you could use is to replace the graphics with the default form buttons... This way you don't have to create any new graphics and I personally feel that the default buttons are much more clear to unexperienced users.

How to do this; go to buttons\button.tpl and replace:

Code:
<table cellspacing="0" cellpadding="0" onclick="{$js_link}" class="ButtonTable"{if $title ne ''} title="{$title|escape}"{/if}> {strip} <tr> <td> <{$img_type} src="{$ImagesDir}/but1.gif" class="ButtonSide" alt="{$title|escape}" /> </td> <td class="Button"{$reading_direction_tag}> <font class="Button">{$button_title}</font> </td> <td> <img src="{$ImagesDir}/but2.gif" class="ButtonSide" alt="{$title|escape}" /> </td> </tr> {/strip} </table>
With this:

Code:
<input type="button" onclick="{$js_link}" value="{$button_title}">

I tried this and it worked but not for the "Continue shopping" and "Checkout" buttons. Does anyone know how change those to this standard form?
__________________
~Christina
www.hannahshandprints.com

X-cart Gold version 4.1.9
Reply With Quote
  #32  
Old 01-02-2008, 07:57 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: button graphics

Are you using the fast lane checkout? If so those butons are defined by the CSS file in the fastlane checkout folder.
__________________
xcart 5.1.2
Reply With Quote
  #33  
Old 01-02-2008, 10:39 PM
  hannahshandprints's Avatar 
hannahshandprints hannahshandprints is offline
 

Newbie
  
Join Date: Dec 2007
Posts: 2
 

Default Re: button graphics

Thanks Ashley, that's exactly what I needed!
__________________
~Christina
www.hannahshandprints.com

X-cart Gold version 4.1.9
Reply With Quote
  #34  
Old 01-15-2009, 07:47 AM
 
ChristineP ChristineP is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 310
 

Default Re: button graphics

With the combined input from several experts on this thread, I have my custom add to cart button (working on other buttons). One problem that I've run into, the button is not clickable with only the products that have variants. Can someone point me to the file that I need to change for this.

Here's what I've done with my "add to cart" button:

I made a new IMG class in my skin1.css as IMG.AddtoCart to control the positioning of my button image. Uploaded the changed .css to skin1/skin1.css on my server.

I copied the button.tpl and named it as: atc_button.tpl
I commented out the following:

<!--<td>
<{$img_type} src="{$ImagesDir}/but1.gif" class="ButtonSide" alt="{$title|escape}" />
</td>
<td class="Button"{$reading_direction_tag}>
<font class="Button">{$button_title}</font>
</td>
<td>
<img src="{$ImagesDir}/but2.gif" class="ButtonSide" alt="{$title|escape}" />
</td>-->

and added this:

<td>
<{$img_type} src="{$ImagesDir}/addtocart.jpg" class="AddtoCart" alt="{$title|escape}" />
</td>
</tr>

saved the updated atc_button.tpl and uploaded it to skin1/buttons/ folder on my server.

I changed buttons/add_to_cart.tpl as:
{include file="buttons/atc_button.tpl" button_title=$lng.lbl_add_to_cart href=$href title=$title style=$style}
<!--{include file="buttons/button.tpl" button_title=$lng.lbl_add_to_cart href=$href title=$title style=$style}-->

I also changed the following in related items modules/Upselling_Products/related_products.tpl:
{include file="buttons/atc_button.tpl" style="button" button_title=$lng.lbl_add_to_cart href="javascript: self.location='cart.php?mode=add&productid=`$produ ct_links[proid].productid`&amount=1'"}
<!--{include file="buttons/button.tpl" style="button" button_title=$lng.lbl_add_to_cart href="javascript: self.location='cart.php?mode=add&productid=`$produ ct_links[proid].productid`&amount=1'"}-->


Christine
__________________
______________
version 4.1.9 Gold
Reply With Quote
  #35  
Old 07-24-2009, 11:55 PM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: button graphics

How can I change the Button color of Checkout button on cart?

Can anyone help me?
__________________
4.6.1 Platinum


Reply With Quote
  #36  
Old 09-09-2009, 05:46 AM
 
bcam bcam is offline
 

Member
  
Join Date: May 2005
Posts: 26
 

Default Re: button graphics

Can someone direct me to the location that I can edit the style of the buttons text? I designed a new three file button, but its height is 21px. When I upload it, the files are forced to 14px. Also, I want to increase the size of the text and change it to black from white.
Thanks for any info.
__________________
X-Cart Gold 4.4.2
Linux VPS
Reply With Quote
  #37  
Old 09-09-2009, 05:50 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: button graphics

skin1.css, look for buttons styles
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #38  
Old 09-09-2009, 07:12 AM
 
bcam bcam is offline
 

Member
  
Join Date: May 2005
Posts: 26
 

Default Re: button graphics

Thanks for the quick reply. I found out that mine was in skin1_c.css.

Do you know also where the location is for editing category links font color to the left?
__________________
X-Cart Gold 4.4.2
Linux VPS
Reply With Quote
  #39  
Old 09-09-2009, 07:25 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: button graphics

Same css file probably. Work on the site in Firefox with Firebug addon - it will tell you exactly which class you need to modify and you can even change in place to see results before actual edit of the file
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:10 AM.

   

 
X-Cart forums © 2001-2020