Results 1 to 7 of 7
  1. #1
    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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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.

  3. #3
    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

  4. #4
    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 ),
    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.


  5. #5
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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.

  6. #6
    Join Date
    Jul 2006
    Location
    Wiltshire, England
    Posts
    69
    Plugin Contributions
    0

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

    Quote Originally Posted by 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

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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...
    Last edited by DrByte; 24 Jul 2006 at 05:06 AM. Reason: typo
    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: v1.5.5]
    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!

 

 

Similar Threads

  1. v151 Replace Sold out with text & qty with "in stock at suppliers" or something similar
    By Axeman in forum Managing Customers and Orders
    Replies: 9
    Last Post: 5 Feb 2015, 05:30 PM
  2. Replies: 2
    Last Post: 30 Jul 2014, 11:58 AM
  3. v150 Replace Sold Out Image with Text
    By pyro_maniac in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 1 Apr 2012, 02:02 PM
  4. How to replace sidebox text headers with images?
    By SimplyDelightful in forum Addon Sideboxes
    Replies: 1
    Last Post: 7 Nov 2009, 02:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR