
Originally Posted by
Ajeh
You would have to change the display price function that if a product is sold out or products_quantity <= 0 that it should return, as the price, sold out or an image or something other than the price that is being built in the functions_prices for this display price function ...
Found this section, what would the code be to replace the blank space with an image of "Sold Out"?
am I even close?
PHP Code:
////
// Display Price Retail
// Specials and Tax Included
function zen_get_products_display_price($products_id) {
global $db, $currencies;
$free_tag = "";
$call_tag = "";
// replace blank price space with sold out image on all pages
if products_quantity <= 0 {
return 'BUTTON_IMAGE_SOLD_OUT';
}
// 0 = normal shopping
// 1 = Login to shop
// 2 = Can browse but no prices
// verify display of prices
switch (true) {