I have has ZC showcase and one of the items was sold. How can I put a sticker saying "sold out" on that item?
I have has ZC showcase and one of the items was sold. How can I put a sticker saying "sold out" on that item?
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.
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.
Thanks Kim.
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:
This section adds the Sold Out when it is a Normal Store: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>'; }
You could work with that code and get it to put the Sold Out up when the quantity is 0 ...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;
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!