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 graphics (https://forum.x-cart.com/showthread.php?t=12490)

Lara Croft 03-01-2005 07:31 AM

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

:roll:

shan 03-01-2005 08:22 AM

you may have not included some passed variables

Lara Croft 03-01-2005 09:35 AM

??
 
:? :? :? :? :? :?

I'm sorry about this but :?: :?: :?:

markwhoo 03-01-2005 01:47 PM

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.

Lara Croft 03-01-2005 02:10 PM

thanks
 
i really appreciate the help you guts are giving me

:D

phoenixrider 08-03-2007 07:08 AM

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....

AgentBristow 08-06-2007 02:27 AM

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>

AgentBristow 08-06-2007 02:28 AM

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}


All times are GMT -8. The time now is 07:41 PM.

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