Hi,
I have found just one more thing, the sold out gif image appears on the products listing and product info pages instead of css.
This only occurs on On zc158 and Bootstrap 4 and didn't occur on zc157d.
To over come this I have modified the following file includes/functions/functions_general.php. and reverted the code to a previous level as below.
I changed this code.
Code:
case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):
global $template;
$image = BUTTON_IMAGE_SOLD_OUT;
$alt = BUTTON_SOLD_OUT_ALT;
$return_button = '<span class="text-center">' . zen_image($template->get_template_dir($image, DIR_WS_TEMPLATE, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image, $alt, '', '', '') . '</span>';
$zco_notifier->notify('NOTIFY_ZEN_SOLD_OUT_IMAGE', array_merge($button_check->fields, ['products_id' => (int)$product_id]), $return_button);
break;
With code from previous version.
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;
Don't know weather this is any good, but it works.
Bookmarks