Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Styling the Sold Out button

Styling the Sold Out button

Locked

Views: 1,035

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
19 Sep 2008, 17:07
#1
spen avatar

spen

New Zenner

Join Date:
Jul 2008
Posts:
12
Plugin Contributions:
0

Styling the Sold Out button

How on earth is the Sold Out button on the product pages generated? We have trawled through every page and still cannot find its origin. I would like to wrap a div around it.

Any insights will be hugely appreciated.

Cheers

Spen

19 Sep 2008, 18:56
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Styling the Sold Out button

Look in the Stock Settings ...

You can configure in there if it shows or not ...

For other customizations, use the Tools ... Developers Tool Kit ... and search in the bottom input box for the Catalog for:
SHOW_PRODUCTS_SOLD_OUT_IMAGE

22 Sep 2008, 15:37
#3
spen avatar

spen

New Zenner

Join Date:
Jul 2008
Posts:
12
Plugin Contributions:
0

Re: Styling the Sold Out button

That's it. Thanks very much, that was a tricky bugger to find.

Cheers

Spen

24 Sep 2008, 04:12
#4
butalezi_brown avatar

butalezi_brown

New Zenner

Join Date:
May 2007
Posts:
16
Plugin Contributions:
0

Re: Styling the Sold Out button

Hi,
I would like to do the same thing -- put a div tag and use CSS styling on the Sold Out image.

How did you go about doing this? I can't quite find the code where to insert the DIV tag.

-A

24 Sep 2008, 09:09
#5
spen avatar

spen

New Zenner

Join Date:
Jul 2008
Posts:
12
Plugin Contributions:
0

Re: Styling the Sold Out button

Hello there

You need to edit the file includes>functions>functions_general.php

The block of code is just before the comment //enable shipping.

Mine looks like this:

$return_button = '<div class="soldOut">' . zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BUTTON_SOLD_OUT_SMALL_ALT) . '</div>';

Good luck!

Cheers

Spen