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?
Views: 828
New Zenner
I have has ZC showcase and one of the items was sold. How can I put a sticker saying "sold out" on that item?
New Zenner
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.
Obaa-san
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.
New Zenner
Thanks Kim.
Oba-san
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:
Tell staff why this post should be reviewed.