Forums / Basic Configuration / How do I replace SOLD OUT Images with text?

How do I replace SOLD OUT Images with text?

Locked

Started by davidrambo on 14 Jul 2006, 4:22 PM · Views: 4,319

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
14 Jul 2006, 4:22 PM
#1
davidrambo avatar

davidrambo

New Zenner

Join Date:
Jun 2006
Posts:
5
Plugin Contributions:
0

How do I replace SOLD OUT Images with text?

I want to replace the Sold Out images with text, where would I do that? Is it possible? Where is the sold out image code? When I look in the code I can see where the buy now button is generated, and I know that the sold out button shows when the quantity is 0, but I do not see where the variable is changed to get the different images. I figure that if i could find that location, I could replace it, but I cannot seem to trace it.

Any help would be very much appreciated!

Thanks in advance,
-Dave

15 Jul 2006, 8:14 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: How do I replace SOLD OUT Images with text?

search includes/functions/functions_general.php for BUTTON_IMAGE_SOLD_OUT

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Jul 2006, 2:51 PM
#3
markrs avatar

markrs

New Zenner

Join Date:
Jul 2006
Location:
Wiltshire, England
Posts:
69
Plugin Contributions:
0

Re: How do I replace SOLD OUT Images with text?

Looking at that function it appears it's impossible to provide a "how many do you want to buy" box without the possibility of an "Out of Stock" image appearing.

Which means virtual products can't sensibly be bought????
They are never out of stock.

I'm sure I'm missing something important here.

Regards
Mark

18 Jul 2006, 3:17 PM
#4
markrs avatar

markrs

New Zenner

Join Date:
Jul 2006
Location:
Wiltshire, England
Posts:
69
Plugin Contributions:
0

Re: How do I replace SOLD OUT Images with text?

To add to my previous post (there's no "edit" function in these forums :huh: ),
it looks like showing the "Sold Out" indication depends on a constant called SHOW_PRODUCTS_SOLD_OUT_IMAGE, but where can I change it's setting?

I've used the developers tool kit to look for it, it's found six places in the code, all of which read not write it.

:(

23 Jul 2006, 2:24 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: How do I replace SOLD OUT Images with text?

Admin->Configuration->Stock->Show Sold Out Image in place of Add to Cart

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Jul 2006, 9:00 PM
#6
markrs avatar

markrs

New Zenner

Join Date:
Jul 2006
Location:
Wiltshire, England
Posts:
69
Plugin Contributions:
0

Re: How do I replace SOLD OUT Images with text?

DrByte:

Admin->Configuration->Stock->Show Sold Out Image in place of Add to Cart
Many thanks.

Is there an easy way to make this product type specific, or will I have to get down and dirty with the php?

Regards
Mark

24 Jul 2006, 3:49 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: How do I replace SOLD OUT Images with text?

This may not be a bad idea ...

Might be a pain ... but not a bad idea ...

Have to chew on this a bit...

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!