Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    is it possible to display sold out image on auctions once item sells in ZC store

    Hi, a lot of the items I sell on my ZenCart store I also list on third party sites such as eBay.

    I would like to know if it's possible to display the 'sold out' image on those third-party site listings if the items sells out in my ZenCart store first. That way customers will not be angry if they buy the item and later find out it sold out in our regular store.

    Thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    Default Re: is it possible to display sold out image on auctions once item sells in ZC store

    Using the Developers Tool Kit in ZenCart, I think I found the function that makes the sold out image display.
    Code:
    <?php
        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 = zen_image_button(BUTTON_IMAGE_SOLD_OUT, BUTTON_SOLD_OUT_ALT);
          }
    ?>
    I put that on a file named stockcheck.php and put it on ZC's root directory, and then make the reference to it with
    <img src="http://www.domain.com/stockcheck.php?product_id=123">

    I'm obviously doing something wrong, expected since I don't know any php:), as this doesn't work.

    Can someone please tell me what I need to do to make this work. I'm willing to pay for your time to work on this code.

    Thanks.

 

 

Similar Threads

  1. Sold New Products display Sold Out instead of price on index and products_new pages
    By dharma in forum Templates, Stylesheets, Page Layout
    Replies: 36
    Last Post: 1 Jun 2016, 09:29 PM
  2. Out of stock / Sold out item categories
    By needsome in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 16 Feb 2010, 12:25 AM
  3. Can I make stop backorders of one-of-a-kind items once sold out?
    By Skybye in forum Managing Customers and Orders
    Replies: 1
    Last Post: 12 May 2009, 06:55 AM
  4. what if an item sells out whilst another customer is checking out?
    By sunnytheonly in forum Managing Customers and Orders
    Replies: 1
    Last Post: 2 Jan 2009, 09:28 PM
  5. Once an item is sold, do not show sale price?
    By dharma in forum General Questions
    Replies: 4
    Last Post: 9 Jul 2008, 03:07 PM

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