Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Big Button ie6 bug

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-14-2009, 10:53 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Unhappy Big Button ie6 bug

Hi
I have changed the add to cart Big Button to have a red background, leaving all of the original CSS code and HTML code only changing the file name to point to the new images
BACKGROUND-IMAGE: URL(../../images/tab_bg2.gif); and creating a new copy of the CSS code with new name etc to allow the change in colour to happen.All works ok in ie7/8 and FF but in ie6 the center of the button is white with no visable text.
Has anybody got a solution around this and why has this button got to have 6 img's and not be the same layout as the rest of the buttons in x-cart which have 3 img's?

__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #2  
Old 07-14-2009, 01:10 PM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Big Button ie6 bug

Q.:
Quote:
Has anybody got a solution around this and why has this button got to have 6 img's and not be the same layout as the rest of the buttons in x-cart which have 3 img's?

This is a BIG button isn't it?

for center part of this button you should also change background-color
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #3  
Old 07-15-2009, 09:06 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: Big Button ie6 bug

Hi Victor

yes it is BIG button with fast lane Checkout selected.

Do you mean the background-color in /skin1/modules/Fast_Lane_Checkout/skin1.css ?

I changed the color of the new BIG button by copying the original images for this button into photoshop then filling with red and saving as new BIG button then renaming the img files in the new bigbutton.tpl.

Are you saying that all i needed to do was change the background-color (hex value) in the CSS files for the BIG button?
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #4  
Old 07-15-2009, 01:27 PM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Big Button ie6 bug

Yes. You changed rounded corners but the central part of this button has plain background color specified in CSS
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #5  
Old 07-15-2009, 01:55 PM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: Big Button ie6 bug

I have tried BACKGROUND-COLOR: #DA1203; with TEXT-COLOR; #FEFEFE which does change the center part to red with white text in IE7/8 and FF but in IE6 it remains white with white text, for some reason IE6 does not recognise BACKGROUND-COLOR:
I have changed the TEXT-COLOR to #000000 so that it shows up in all the browsers but black text in red is not good, it should be white text.

Does IE6 follow the HTML rather than CSS as i had to remove the font color from the HTML code to prevent the white text in IE6 and allow the CSS TEXT-COLOR to #000000 to be shown.

Copy of HTML code
<tr>
<td width="9" style="background-repeat: repeat-y; background-image: url({$ImagesDir}/tab_left_2{$sfx}.gif);"><img src="{$ImagesDir}/spacer.gif" class="BBCorner" alt="" /></td>
<td class="{$bg_title_class}"{$reading_direction_tag}> &nbsp;<font color="#">{$button_title}&nbsp;{if $arrow eq "Y"}<img src="{$ImagesDir}/rarrow_flc_2.gif" class="BBCorner" alt="" />{/if}</font></td>
<td width="9" style="background-repeat: repeat-y; background-image: url({$ImagesDir}/tab_right_2{$sfx}.gif);"><img src="{$ImagesDir}/spacer.gif" class="BBCorner" alt="" /></td>
</tr>
Any ideas as to what is happning?
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #6  
Old 07-16-2009, 01:31 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Big Button ie6 bug

remove FONT
add space here: class="{$bg_title_class}"{$reading_direction_tag}
class="{$bg_title_class}" {$reading_direction_tag}
what do you pass in
$bg_title_class variable?
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #7  
Old 07-16-2009, 08:34 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: Big Button ie6 bug

Not sure what you are telling me to do or what you mean by "what do you pass in $bg_title_class variable?"
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #8  
Old 07-17-2009, 04:00 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Big Button ie6 bug

Quote:
<td class="{$bg_title_class}"

This means you should specify value for
bg_title_class while including big_button.tpl

for example
{incude file="..." bg_title_class="default" }
and then in your css

td.default {
background: #ff0000 none;
}
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #9  
Old 07-17-2009, 07:24 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: Big Button ie6 bug

Victor i have done the following but the IE6 problem is still there

In big_button1.tpl is the following-

{assign var="bg_title_class" value="YellowBackground2"}
{assign var="sfx" value=""}
{/if}
<table cellspacing="0" cellpadding="0" onclick="{$js_link}" style="cursor: pointer;" dir="ltr">
<tr>
<td width="9" style="background-repeat: no-repeat; background-image: url({$ImagesDir}/top_cl_2{$sfx}.gif);"><img src="{$ImagesDir}/spacer.gif" class="BBCorner" alt="" /></td>
<td height="9" style="background-repeat: repeat-x; background-image: url({$ImagesDir}/top_b_2{$sfx}.gif);"><img src="{$ImagesDir}/spacer.gif" class="BBCorner" alt="" /></td>
<td width="9" style="background-repeat: no-repeat; background-image: url({$ImagesDir}/top_cr_2{$sfx}.gif);"><img src="{$ImagesDir}/spacer.gif" class="BBCorner" alt="" /></td>
</tr>

<tr>
<td width="9" style="background-repeat: repeat-y; background-image: url({$ImagesDir}/tab_left_2{$sfx}.gif);"><img src="{$ImagesDir}/spacer.gif" class="BBCorner" alt="" /></td>
<td class="{$bg_title_class}"{$reading_direction_tag}> &nbsp;<font color="#">{$button_title}&nbsp;{if $arrow eq "Y"}<img src="{$ImagesDir}/rarrow_flc_2.gif" class="BBCorner" alt="" />{/if}</font></td>
<td width="9" style="background-repeat: repeat-y; background-image: url({$ImagesDir}/tab_right_2{$sfx}.gif);"><img src="{$ImagesDir}/spacer.gif" class="BBCorner" alt="" /></td>
</tr>

<tr>
<td width="9" style="background-repeat: no-repeat; background-image: url({$ImagesDir}/tab_cl_2{$sfx}.gif);"><img src="{$ImagesDir}/spacer.gif" class="BBCorner" alt="" /></td>
<td height="9" style="background-repeat: repeat-x; background-image: url({$ImagesDir}/tab_bt_2{$sfx}.gif);"><img src="{$ImagesDir}/spacer.gif" class="BBCorner" alt="" /></td>
<td width="9" style="background-repeat: no-repeat; background-image: url({$ImagesDir}/tab_cr_2{$sfx}.gif);"><img src="{$ImagesDir}/spacer.gif" class="BBCorner" alt="" /></td>
</tr>


In /skin1/modules/Fast_Lane_Checkout/skin1.css is the following-

.YellowBackground2 {
{*BACKGROUND-IMAGE: URL(../../images/tab_bg2.gif);*}
BACKGROUND-COLOR: #000000;
FONT-WEIGHT: bold;
FONT-SIZE: 11px;
TEXT-ALIGN: center;
TEXT-COLOR: #fefefe;

}

To allow the button to appear in all browsers i have omitted {*BACKGROUND-IMAGE: URL(../../images/tab_bg2.gif);*}
This img is red in color in IE7/8 and FF but in IE6 the background is white.
I have changed both TEXT-COLOR: #fefefe; BACKGROUND-COLOR: #000000;
to different colors but it makes no difference in IE6.

May be i am missing something simple.....?
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #10  
Old 07-20-2009, 12:10 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Big Button ie6 bug

This is CSS file so you should use
/*BACKGROUND-IMAGE: URL(../../images/tab_bg2.gif);*/

instead of

{*BACKGROUND-IMAGE: URL(../../images/tab_bg2.gif);*}
to comment the line.

All browsers skip the invalid css lines but IE6 possibly skips the next rule after this one also.

To check this you can change your CSS to
Code:
{*BACKGROUND-IMAGE: URL(../../images/tab_bg2.gif);*} TEXT-COLOR: #fefefe; BACKGROUND-COLOR: #000000; FONT-WEIGHT: bold; FONT-SIZE: 11px; TEXT-ALIGN: center;
I suppose you will get right background color but font-color won't be applied.

PS AFAIK there is no valid property TEXT-COLOR. The right variant is COLOR

__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:25 AM.

   

 
X-Cart forums © 2001-2020