Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / mark it sold ... in showcase mode

mark it sold ... in showcase mode

Locked

Views: 828

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
16 Sep 2009, 1:55 AM
#1
wachtn avatar

wachtn

New Zenner

Join Date:
May 2009
Posts:
46
Plugin Contributions:
0

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?

16 Sep 2009, 2:44 AM
#2
wachtn avatar

wachtn

New Zenner

Join Date:
May 2009
Posts:
46
Plugin Contributions:
0

Re: mark it sold ... in showcase mode

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.

16 Sep 2009, 4:54 AM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

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.

16 Sep 2009, 3:16 PM
#4
wachtn avatar

wachtn

New Zenner

Join Date:
May 2009
Posts:
46
Plugin Contributions:
0

Re: mark it sold ... in showcase mode

Thanks Kim.

17 Sep 2009, 6:03 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: mark it sold ... in showcase mode

You could customize this if you are tricky ... :smile:

This function in functions_general.php manages the Add to Cart button:

  function zen_get_buy_now_button($product_id, $link, $additional_link = false) {

This code manages when the store is setup as a Show Case:

// 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:

    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? :smartalec: