Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Changing the SOLD OUT button in a customized template

Changing the SOLD OUT button in a customized template

Locked

Views: 1,049

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
19 Sep 2009, 4:00 AM
#1
amgill29 avatar

amgill29

New Zenner

Join Date:
Sep 2009
Posts:
3
Plugin Contributions:
0

Changing the SOLD OUT button in a customized template

I want to change the SOLD OUT button to an image, which would be easy if using the Zen Cart template but mine is customized. All buttons are defined with a custom css stylesheet. How do I make an exception for this particular button? Does the function php need to be edited, the css stylesheet or something else? Thanks much

19 Sep 2009, 9:25 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing the SOLD OUT button in a customized template

Where is your site?
And a page where your current sold out css is displayed

19 Sep 2009, 2:51 PM
#3
amgill29 avatar

amgill29

New Zenner

Join Date:
Sep 2009
Posts:
3
Plugin Contributions:
0

Re: Changing the SOLD OUT button in a customized template

http://bsbrand.com/cart/index.php?main_page=product_info&cPath=20&products_id=58

I know I can turn off the CSS buttons, and point to a customized SOLD OUT button but then I'd have to recreate all the other buttons. Just wondering if there is an easier eay. I appreciate any help.

Thanks.

19 Sep 2009, 5:29 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing the SOLD OUT button in a customized template

In a custom copy of tpl_product_info_display.php for your template, the "Cart add" section would require adjustment and a img src to replace standard code that displays the button, or in your case the css -
I looked and this is a busy bit of code & right now I do not have the time or expertise to quickly post how to alter it....
Maybe you can have a look or another can provide exactly what you need

20 Sep 2009, 10:17 PM
#5
rstevenson avatar

rstevenson

Totally Zenned

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

Re: Changing the SOLD OUT button in a customized template

From the file tips.txt in the CSS Buttons contribution (if that's the one you're using)...

2) To over ride a single CSS button by an image button:

Copy the image button (from template_default, or created yourself) to:

includes/YOUR_TEMPLATE/buttons/english/

For example copy:
includes/template_default/buttons/english/button_update_cart.gif
to:
includes/YOUR_TEMPLATE/buttons/english/button_update_cart.gif

Rob

20 Sep 2009, 11:44 PM
#6
amgill29 avatar

amgill29

New Zenner

Join Date:
Sep 2009
Posts:
3
Plugin Contributions:
0

Re: Changing the SOLD OUT button in a customized template

Thanks kobra for looking at this and rstevenson for your reply.

rstevenson, I ended up uploading button gifs for all and turned the CSS buttons off in admin. However, I tested your suggestion because it made a lot of sense but it didn't work. Hmm. Anyway, I did it the long way and it worked.

Thanks much.