| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Changing the Buy Now button | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello all, first post here
![]() I looked and thought this just involved replacing "but_main_left.png" with my own graphic. To my suprise after the switch, I get a sort of hybrid mix between the x-cart and my custom image. Then I noticed there was also a "but_main_right.png" file that seems to be a small part of the total image. I do not understand why the button is build from 2 different files instead of 1. More so even if i totally delete "but_main_right.png" from the template, it still seems to get graphics from the old button mixed with my own button. If there is, where is the place I can just "select" my button to use in a graphical interface (backend) somewhere ? If there is not, shouldn't there be a just simple one step "change Buy Now Button" option that involves just me selecting a image and x-cart changing it automatically ? Thanks for the help.
__________________
Version 4.2 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() WOW! Just checked the buttons in 4.2 out. I think they actually made it more complicated.
I'll check it out and see if I can get mine changed on my test store and post instructions.
__________________
xcart 5.1.2 |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() You have to change both images in order to make it work. They are 2 so the length of the button can change depending on the length of the text inside the button. Also the divs that hold the button - you have to change the hights and maybe margins/paddings to reflect your images. The easiest way is to make your images the same width/height as the x-cart stock button images.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#4
|
|||||||||
|
|||||||||
![]() LOL! help,if you look at the right files.
I was looking at buttons/button.tpl not customer/buttons/button.tpl
__________________
xcart 5.1.2 |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() You will need to cut your graphic into two pieces or make a totally different .tpl file for your atc button.
I suggest just making two images the same size as the others.
__________________
xcart 5.1.2 |
|||||||||
|
#6
|
|||||||
|
|||||||
![]() Thanks I did a mix of the offered solutions and while it was confusing at first, I understand the reasoning and structure behind it
![]()
__________________
Version 4.2 |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Yea, this can be a little difficult I would reccommend doing what Ashley says. If not, what I did with our store is uploaded an image named btn_main_left.png and btn_main_right.png. Now if their different dimmensions you have to edit the css in the main.css file. you need to edit the height, width, and padding options below
Code:
__________________
X-Cart Gold v4.2.0 [Linux] Add-On: X-Magnifier Altered Cart Add-On: One Page Checkout |
|||||||||
|
|||
X-Cart forums © 2001-2020
|