I managed to get this far on my own, but am stuck
because I don't know how to code ZC php....can anyone help me:
from modules/sideboxes/YOUR_TEMPLATE/product_notifications.php:
PHP Code:
// test if box should show
$show_product_notifications = false;
if (isset($_GET['products_id']) and zen_products_id_valid($_GET['products_id'])) {
if (isset($_SESSION['customer_id'])) {
$check_query = "select count(*) as count
from " . TABLE_CUSTOMERS_INFO . "
where customers_info_id = '" . (int)$_SESSION['customer_id'] . "'
and global_product_notifications = '1'";
1. Have the notifications side box appear even if global notification is checked.
I would like to take out this line,
PHP Code:
and global_product_notifications = '1'";
but do not know how to end (;) this statement:
PHP Code:
where customers_info_id = '" . (int)$_SESSION['customer_id'] . "'
2. Have sidebox appear only IF out of stock
need to add something like this to the false statement above:
PHP Code:
if ($_SESSION['cart']->count_contents() <= 0) {
but do not know how to describe "out of stock" as it is in ZC, Is even possible?
Am on the right track? Is there a better way?
BTW Good Reference: http://www.zen-cart.com/forum/showpo...61&postcount=3