Results 1 to 3 of 3
  1. #1
    Join Date
    May 2004
    Posts
    10
    Plugin Contributions
    0

    Default Change sold out image to button

    Hello,

    There is an option to show a "sold out" image if a product is out of stock. I would like to change that image and make it clickable with a link to my contact page. I've been searching the templates for the line of code where that images is generated, but I can't find it.
    I hope anyone can help me out.

    Thanks

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Change sold out image to button

    You can use your admin's Tools->Developers Tool Kit to determine what PHP file is generating the "sold out" button/text and make your modifications. Just search for BUTTON_IMAGE_SOLD_OUT in all catalog files.

  3. #3
    Join Date
    May 2004
    Posts
    10
    Plugin Contributions
    0

    Default Re: Change sold out image to button

    Thanks, that did the job.
    For other people, I changed this code:

    /includes/functions/functions_general.php
    Line #1138 : $return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT, BUTTON_SOLD_OUT_ALT);
    Line #1140 : $return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BUTTON_SOLD_OUT_SMALL_ALT);

    To:
    Code:
        case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):
          if ($_GET['main_page'] == zen_get_info_page($product_id)) {
            $return_button = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' .zen_image_button(BUTTON_IMAGE_SOLD_OUT, BUTTON_SOLD_OUT_ALT). '</a>';
          } else {
            $return_button = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' .zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BUTTON_SOLD_OUT_SMALL_ALT). '</a>';
          }

 

 

Similar Threads

  1. Sold Out Button says "Sold Out SM".... Sophy Blue
    By huntleybill in forum Addon Templates
    Replies: 3
    Last Post: 28 Nov 2011, 05:32 AM
  2. Change sold out image for upcoming products only?
    By jenzi in forum Setting Up Categories, Products, Attributes
    Replies: 19
    Last Post: 8 Oct 2010, 07:51 PM
  3. Change SOLD OUT button to text on new products page only
    By asphole in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Sep 2008, 03:56 PM
  4. Where do I change the alt image tag for the "Sold Out' Button?
    By candylotus in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 9 May 2008, 05:00 AM
  5. How Do I change the Sold Out Image
    By misty16 in forum General Questions
    Replies: 3
    Last Post: 9 Nov 2007, 03:13 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