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
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
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
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
That's it. Thanks very much, that was a tricky bugger to find.
Cheers
Spen
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
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