Results 1 to 5 of 5
  1. #1
    Join Date
    May 2009
    Posts
    46
    Plugin Contributions
    0

    Default mark it sold ... in showcase mode

    I have has ZC showcase and one of the items was sold. How can I put a sticker saying "sold out" on that item?

  2. #2
    Join Date
    May 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: mark it sold

    I should add that the site is a showcase with prices. For now I manually add the "Sold out" image to the item description. But this is a client's site and would like to know if there is a way to simplify the process.

    I know how the Sold Out sticker works in a ZC store, but not in a ZC showcase. Thank you your help.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: mark it sold ... in showcase mode

    No, there is not a built in way to do that ... In showcase mode you are not tracking stock or using any of the checkout, you aren't "selling" anything with the cart.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    May 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: mark it sold ... in showcase mode

    Thanks Kim.

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

    Default Re: mark it sold ... in showcase mode

    You could customize this if you are tricky ...

    This function in functions_general.php manages the Add to Cart button:
    Code:
      function zen_get_buy_now_button($product_id, $link, $additional_link = false) {

    This code manages when the store is setup as a Show Case:
    Code:
    // show case only superceeds all other settings
        if (STORE_STATUS != '0') {
          return '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' .  TEXT_SHOWCASE_ONLY . '</a>';
        }
    This section adds the Sold Out when it is a Normal Store:
    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 = zen_image_button(BUTTON_IMAGE_SOLD_OUT, BUTTON_SOLD_OUT_ALT);
          } else {
            $return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BUTTON_SOLD_OUT_SMALL_ALT);
          }
          break;
    You could work with that code and get it to put the Sold Out up when the quantity is 0 ...

    Or, you could just customize your templates and overrides for when the quantity is 0 to add the Sold Out image to the page(s) ...

    I lean towards customizing the Function as that would display the sold out everywhere ...

    Have you got your Coder's hat on?
    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!

 

 

Similar Threads

  1. Showcase mode and offers
    By viper75 in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 6 Dec 2011, 03:18 PM
  2. Showcase Mode Contact Us Image
    By fymbscu in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Apr 2008, 10:52 PM
  3. Showcase mode - Contact Us
    By markov in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Oct 2006, 01:25 AM
  4. Showcase mode - remove contact us
    By gustafr in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 30 Jun 2006, 11:15 AM
  5. Showcase Mode
    By jimroyster in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Jun 2006, 02:33 AM

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