| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Buttons - CSS v.4.0.x | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I used many ads-on posted in this forum and I decided to make a donation. Everybody who tried to modify buttons design knows that it▓s tricky. I created CSS buttons with mouse-over effect. Here is the page sample:
http://www.clikinternational.com/free/buttons/sample.html There are 10 color variations. These CSS classes can be applied to <a>, <table>, <div>, <span> tags. And the best part is that they work with <table> based buttons onClick event. How to add buttons in x-cart: 1. Download the files: http://www.clikinternational.com/free/buttons/ColorButtons.zip 2. Copy CSS code from buttons.css file and ad to your skin1.css file. 3. Upload buttons folder into your skin1/images/ 4. Modify skin1/buttons/button.tpl file: Replace: Code:
with Code:
Buttons look perfect in Firefox and Safari (Mac). Please let me know if there are any problems with other browsers. I used this code for my online store that is 4.0.11. (I know it's old version but it works.) I hope it works in new version of x-cart. Anyways, you are free to use these CSS styles for your other projects. Question to experts (I'm just a designer with some knowledge of coding): How to apply different classes to different buttons? For example:
__________________
__________________ XC5: 5.3.4.4 PHP: 7.0.26 MySQL server: 5.5.56-MariaDB |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() The best way in my opinion to pass the custom class, is in the include of button.tpl:
Use a custom ButtonGrey class: Code:
Use the default class - Code:
Then in your buttons/button.tpl: Code:
|
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Thank you Jon! It works!
__________________
__________________ XC5: 5.3.4.4 PHP: 7.0.26 MySQL server: 5.5.56-MariaDB |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Glad to help. I'm sure this will help many members. Please check your PM.
|
|||||||||
#5
|
|||||||
|
|||||||
![]() clik -- this is pretty cool.. anyone get it to work on any newer versions of xcart?
i tried with the latest and it did *not* work.
__________________
xcart ver 4.xx/linux/php |
|||||||
|
|||
X-Cart forums © 2001-2020
|