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)
-   -   How to change pixel size location for checkout button (https://forum.x-cart.com/showthread.php?t=41929)

Pobear 08-22-2008 07:39 PM

How to change pixel size location for checkout button
 
I have designed my own .gif to replace the standard orange checkout button. The problem is the standard checkout button is set to 79x19 pixels. When I place my .gif it gets shrunk to where the letters are not legible.

What .tpl or .php file is controlling the 79x19 size for this button?

I have tried Webmaster but when I click on the orange checkout button the screens rolls to the personal details screen and I am not seeing the .tpl or .php that is controlling the orange checkout button.

I have looked through customer/home.tpl cart.php?mode=checkout and various others any help would be appreciated.

Thank you.

gb2world 08-22-2008 08:55 PM

Re: How to change pixel size location for checkout button
 
You might also check the css - it could be controlling the height.

Pobear 08-22-2008 09:48 PM

Re: How to change pixel size location for checkout button
 
g2bworld thank you for responding.

I checked skin1.css and did not find any refernce to the orange checkout button or checkout.gif as it is offically labeled.

gb2world 08-23-2008 01:46 PM

Re: How to change pixel size location for checkout button
 
If you post a link, I can take a look.

When I look at the checkout button on the XCART demo site with classic orange skin - I see a class called "ButtonSide" which is controlling the height of the checkout button. The width of the button is being controlled by the text inside the button.

You might also find the Firebug addon in Firefox very useful at tracing things like this. You can inspect anything on the page and see the css and html code that are controlling it.

Pobear 08-23-2008 03:13 PM

Re: How to change pixel size location for checkout button
 
g2bworld may I pm you the link the site is still in development and I am not ready for a host of people to view it.

I have not tried Firefox with Firebug however I think I am going to spend some time with it as you mention and I have read others post it is the way to go.

Ok the text inside the button controls the size next question where is the text? let me look at some labels and see if I can locate the text perhaps I can keep the same button just alter the text.

gb2world 08-23-2008 03:46 PM

Re: How to change pixel size location for checkout button
 
Sure - you can pm me.

The txt is likely a language variable. Try lbl_checkout

Pobear 08-23-2008 06:23 PM

Re: How to change pixel size location for checkout button
 
I will pm you tommorrow I am calling it a day.

I downloaded Firefox and Firebug you are right on with the information they provide. Firebug show the button being controlled by

cart.php?mode=checkout

I briefly looked for the above but my eyes started giving out from reading through so much today.


All times are GMT -8. The time now is 01:41 AM.

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