| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Easy 2 image css button.tpl replacement | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Easy 2 image css button.tpl replacement
Hey All,
I'm working to replace all those wacky tables all over the place with css, today I replaced the default buttons (add to cart, add to wishlist, etc) with a simple two-image css rollover button (based on the dynamicdrive sliding doors button). It uses the same basic dimensions as default x-cart buttons for easy swapping in. NOTE: Changing the simple link GO buttons was a quick afterthought, might get back to that later. Also doesn't replace other GO button uses like search, etc. This may not be something that works well for your particular setup, I just thought I'd share. Instructions: 1. Put css_button_left.gif and css_button_right.gif in skin1\images. (Button source PSD attached, mine are very light so alter to suit. Top is regular state, bottom is rollover active state) 2. Replace \buttons\button.tpl in skin1\buttons with attached file. (BACK UP YOUR OLD FILE!) 3. Add CSS below to skin1.css, customize as needed Code:
|
|||||||||
#2
|
|||||||
|
|||||||
Re: Easy 2 image css button.tpl replacement
Thank you.. this worked perfect for us.
__________________
X-Cart version 4.1.9 PHP 5.2.13 Details >> GD bundled (2.0.34 compatible) MySQL server 5.0.77-log MySQL client 5.0.77 Web server Apache/2.2 Operation system Linux Perl not found XML parser (expat) found |
|||||||
#3
|
|||||||
|
|||||||
Re: Easy 2 image css button.tpl replacement
An excellent mod - thank you!
__________________
... v 4.0.18; 4.1 |
|||||||
#4
|
|||||||
|
|||||||
Re: Easy 2 image css button.tpl replacement
Would anyone know why the following would happen?
1) Add to cart works in Firefox but not in IE 2) The buttons for a) submitting registration b) sending to friend c) write review are all not functioning. Add to cart, sign in, sign up, check out and others are working fine.
__________________
... v 4.0.18; 4.1 |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Easy 2 image css button.tpl replacement
It probably has something to do with the "image verification" spambot module. All 3 of them, and "subscribe" to newsletter use it, or have the option to use it.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#6
|
|||||||
|
|||||||
Re: Easy 2 image css button.tpl replacement
Will it work on 4.3 Versions???
__________________
X-cart Platinum 4.6.1 Reboot template |
|||||||
#7
|
|||||||
|
|||||||
Re: Easy 2 image css button.tpl replacement
Any idea why the links for the buttons would be messed up using this script? My 'Add to Cart' buttons and 'Buy Now' buttons don't point to any certain page. I am using version 4.4.1.
__________________
version 4.4.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|