Updated 2010-05-27: Fixed bug for multiple pages
Updated 2010-12-18: Added colors and added delete function
Updated 2010-12-18: Fixed count for attributes
Updated 2012-01-18: Fixed count for attributes
/Kjeld
PrestaShop Forum
The best place in the world to ask questions about PrestaShop and get advice from our passionate community!
From 1268350571:
ALTER TABLE `ps_mailalert_customer_oos` ADD `date_add` DATE NOT NULL
modules/mailalerts/mailalerts.php
`id_product_attribute` int(10) unsigned NOT NULL,
`date_add` date NOT NULL,
modules/statsoos/statsoos.php
SELECT `id_customer`, `customer_email`, `id_product`, `id_product_attribute`
SELECT `id_customer`, `customer_email`, `id_product`, `id_product_attribute`, `date_add`
'; '.$this->l('Customer').' '.$this->l('E-mail').' '.$this->l('Product').' '.$this->l('Attribute').'
'; '.$this->l('Date').' '.$this->l('Customer').' '.$this->l('E-mail').' '.$this->l('Product').' '.$this->l('Attribute').'
'.$customerName.'
'.$oosPage['date_add'].'
modules/mailalerts/mailalerts-ajax_add.php
REPLACE INTO `'._DB_PREFIX_.'mailalert_customer_oos` (`id_customer`, `customer_email`, `id_product` , `id_product_attribute`)
VALUES ('.intval($id_customer).', \''.pSQL($customer_email).'\', '.intval($id_product).', '.intval($id_product_attribute).')'))
REPLACE INTO `'._DB_PREFIX_.'mailalert_customer_oos` (`id_customer`, `customer_email`, `id_product` , `id_product_attribute`, `date_add`)
VALUES ('.intval($id_customer).', \''.pSQL($customer_email).'\', '.intval($id_product).', '.intval($id_product_attribute).', \''.date('Y-m-d').'\')'))
if (Db::getInstance()->Execute('
REPLACE INTO `'._DB_PREFIX_.'mailalert_customer_oos` (`id_customer`, `customer_email`, `id_product` , `id_product_attribute`, `date_add`)
VALUES ('.intval($id_customer).', \''.pSQL($customer_email).'\', '.intval($id_product).', '.intval($id_product_attribute).', \''.date('Y-m-d').'\')'))
From 1281655766: