Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Using CSS Buttons - still seeing "Update cart" gif

Using CSS Buttons - still seeing "Update cart" gif

Locked

Views: 5,168

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
29 Oct 2006, 8:56 PM
#1
randolph_hoppe avatar

randolph_hoppe

Zen Follower

Join Date:
Jan 2004
Posts:
129
Plugin Contributions:
1

Using CSS Buttons - still seeing "Update cart" gif

Upgraded from 1.2.4.1 to 1.3.6

Is there something in $buttonUpdate in header_php.php that's causing this? Or is it in tpl_shopping_cart_default.php?

Doesn't matter what I choose in Config | Stock | Show Shopping Cart - Update Cart Button Location.

"Continue Shopping" and "Checkout" are just fine.

Any ideas?

Thanks,

  • Rand
29 Oct 2006, 9:35 PM
#2
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Using CSS Buttons - still seeing "Update cart" gif

It's probably because the alt text is very long for that button (and the Zen css buttons automaticly are disabled for long alt texts).

29 Oct 2006, 9:49 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,650
Plugin Contributions:
0

Re: Using CSS Buttons - still seeing "Update cart" gif

The update "button" was changed to an "icon" and therefore removed from the CSS buttons functionality completely.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

29 Oct 2006, 10:04 PM
#4
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Using CSS Buttons - still seeing "Update cart" gif

Strange, I got a quite fresh 1.3.6 install and the /includes/templates/template_default/buttons/english/button_update_cart.gif is still being used somehow.

The only icon I see on that page is: /includes/templates/template_default/images/icons/small_delete.gif

29 Oct 2006, 10:05 PM
#5
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Using CSS Buttons - still seeing "Update cart" gif

paulm:

The only icon I see on that page is: /includes/templates/template_default/images/icons/small_delete.gifSorry that is not true, the language flags are icons too.

29 Oct 2006, 11:44 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,650
Plugin Contributions:
0

Re: Using CSS Buttons - still seeing "Update cart" gif

hhmm... appears that something that should have happened hasn't. Sorry.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

29 Oct 2006, 11:45 PM
#7
randolph_hoppe avatar

randolph_hoppe

Zen Follower

Join Date:
Jan 2004
Posts:
129
Plugin Contributions:
1

Re: Using CSS Buttons - still seeing "Update cart" gif

Thanks all! So I must use gifs/jpgs/pngs for "update cart" and "delete"?

  • Rand
30 Oct 2006, 7:44 AM
#8
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Using CSS Buttons - still seeing "Update cart" gif

Thx for telling Kim, I already wondered if I had changed something without remembering (which happens more often than I like).

@Rand:
at this moment (v1.3.6) delete is an icon and is not handled by the css buttons function. The update_cart is a gif button and is handled by the css buttons function, but it will probably change to an icon in the next Zen version.

Why the update_cart shows a gif button now is the long alt text (see my first reply).

30 Oct 2006, 10:11 PM
#9
randolph_hoppe avatar

randolph_hoppe

Zen Follower

Join Date:
Jan 2004
Posts:
129
Plugin Contributions:
1

Re: Using CSS Buttons - still seeing "Update cart" gif

Thank you paulm, my update cart button is now as I would like it.

Just curious, why the separation of update cart and delete out of the CSS buttons function?

  • Rand
31 Oct 2006, 9:18 AM
#10
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Using CSS Buttons - still seeing "Update cart" gif

Randolph Hoppe:

Just curious, why the separation of update cart and delete out of the CSS buttons function?I was wondering about that too, I would rather keep it the way it was. Now it's easy to switch beween image button and CSS button, but if it's an icon a code change will be needed to do the same.

No big deal of corse, but I only a disadvatage and no advantage.

29 Nov 2006, 1:41 PM
#11
marisa1 avatar

marisa1

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Using CSS Buttons - still seeing "Update cart" gif

It's probably because the alt text is very long for that button (and the Zen css buttons automaticly are disabled for long alt texts).

Where can the alt text for the update cart be found? Have searched everywhere but cannot find it.

29 Nov 2006, 8:50 PM
#12
marisa1 avatar

marisa1

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Using CSS Buttons - still seeing "Update cart" gif

Answer was in front of me!!! Change the icon language file.

3 Dec 2006, 2:29 PM
#13
alanmac avatar

alanmac

New Zenner

Join Date:
Jun 2004
Posts:
34
Plugin Contributions:
0

Re: Using CSS Buttons - still seeing "Update cart" gif

marisa1:

Where can the alt text for the update cart be found? Have searched everywhere but cannot find it.

I have exactly the same problem. I'm using CSS buttons but in the shopping cart, the gif button for 'Update Cart' insists on being displayed, so I found the alt text (in icon_names.php) and abbreviated it. Now I don't get the gif, but I don't get a CSS button either - I just get the alt text being displayed. I think only way out I can come up with will be to make a gif button that looks like the other CSS buttons, but I'd prefer to fix this the proper way. Any other ideas anyone ?.

4 Dec 2006, 2:07 AM
#14
marisa1 avatar

marisa1

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Using CSS Buttons - still seeing "Update cart" gif

It may depend on the browser you are using. Some browsers will show the alt text and some show the css button. It has something to do with the type of button it is - a form submit button.

Does the alt text appear as the default grey button type?

13 Mar 2007, 4:50 PM
#15
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Using CSS Buttons - still seeing "Update cart" gif

I was able, as suggested above, to change my Update button to CSS just by shortening the alt text. However, as others have noted, I still have a gif image for the delete button.

I can easily make a gif that looks like my CSS button style, but I use a CSS rollover effect and I'd like to duplicate that too.

I can probably recall (it's been a while) how to do that using javascript, but it's also possible, I believe, using CSS and applying a different image using a hover and that sort of thing. I found a couple of examples on the web on how to do this, but I couldn't make them work in m,y site.

Has anyone managed to get their own CSS rollover effects working for the Delete button?

TIA

Rob

Breakfast: the most important donut of the day.