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
  #1  
Old 03-01-2005, 07:31 AM
  Lara Croft's Avatar 
Lara Croft Lara Croft is offline
 

Member
  
Join Date: Feb 2005
Posts: 16
 

Default Button graphics

ok - i have replaced the buy now button with one of my own by replacing the entire text in /buttons/buy_now.tpl with the following script

[img]{$ImagesDir}/buy_now.jpg[/img]

now - my button appears fine but when i click on it - it no longer updates my cart - i simply get the "your cart is empty" page

can anyone help please please

__________________
Patience Of A Saint - Memory Of A Goldfish

XCART Gold version 4.0.19
Reply With Quote
  #2  
Old 03-01-2005, 08:22 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

you may have not included some passed variables
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 03-01-2005, 09:35 AM
  Lara Croft's Avatar 
Lara Croft Lara Croft is offline
 

Member
  
Join Date: Feb 2005
Posts: 16
 

Default ??



I'm sorry about this but
__________________
Patience Of A Saint - Memory Of A Goldfish

XCART Gold version 4.0.19
Reply With Quote
  #4  
Old 03-01-2005, 01:47 PM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default Re: ??

Quote:
Originally Posted by Lara Croft


I'm sorry about this but

Hopefully you backed up the file prior to making changes, what shan is saying, there may be a small bit of code missing and now this is why you get the results you are getting.

If you DID NOT back up the button file, then I would suggest you look in the skin1_original file and see if you can locate it there and then make sure you replicate the code as it was with only pic change.
__________________
vs 4.1.12
Reply With Quote
  #5  
Old 03-01-2005, 02:10 PM
  Lara Croft's Avatar 
Lara Croft Lara Croft is offline
 

Member
  
Join Date: Feb 2005
Posts: 16
 

Default thanks

i really appreciate the help you guts are giving me

__________________
Patience Of A Saint - Memory Of A Goldfish

XCART Gold version 4.0.19
Reply With Quote
  #6  
Old 08-03-2007, 07:08 AM
 
phoenixrider phoenixrider is offline
 

Member
  
Join Date: Aug 2007
Posts: 15
 

Default Re: Button graphics

I tried this same approach and got the same results. Appearantly, it needs something from the buttons.tpl page, but, I can't quite figure it out....
__________________
v 4.1.8
Reply With Quote
  #7  
Old 08-06-2007, 02:27 AM
 
AgentBristow AgentBristow is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 36
 

Default Re: Button graphics

Hi,
I was having this same problem and think I may have figured out how to fix it. I have just tried the below code on my store and it appears to be working fine (haven't noticed any problems with it yet). Give it a try and see how you go.


<a class="VertMenuItems" href="{$href|amp}"
{if $onclick ne ''} onclick="{$onclick}"{/if}
{if $title ne ''} title="{$title|escape}"{/if}
{if $target ne ''} target="{$target}"{/if}>
<img src="PUTYOURIMAGEURLHERE">
</a>
__________________
Xcart Version 4.1.9 [win]
Reply With Quote
  #8  
Old 08-06-2007, 02:28 AM
 
AgentBristow AgentBristow is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 36
 

Default Re: Button graphics

Also, if you need to revert your /buttons/buy_now.tpl file back to what was there originally, then paste in the code below >

{include file="buttons/button.tpl" button_title=$lng.lbl_buy_now href=$href title=$title style=$style}
__________________
Xcart Version 4.1.9 [win]
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:50 AM.

   

 
X-Cart forums © 2001-2020