diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts.php index 1b02baeab28..ddf88112c96 100644 --- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts.php +++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts.php @@ -44,15 +44,15 @@ protected function _prepareLayout() if ($alertPriceAllow) { $accordion->addItem('price', [ - 'title' => Mage::helper('adminhtml')->__('Price alert subscription was saved.'), - 'content' => $this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_alerts_price')->toHtml() . '
', + 'title' => Mage::helper('adminhtml')->__('Product price alert'), + 'content' => $this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_alerts_price')->toHtml(), 'open' => true ]); } if ($alertStockAllow) { $accordion->addItem('stock', [ - 'title' => Mage::helper('adminhtml')->__('Stock notification was saved.'), - 'content' => $this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_alerts_stock'), + 'title' => Mage::helper('adminhtml')->__('Product stock alert'), + 'content' => $this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_alerts_stock')->toHtml(), 'open' => true ]); } diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Price.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Price.php index c2d7b741563..394225546d5 100644 --- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Price.php +++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Price.php @@ -30,7 +30,7 @@ public function __construct() $this->setDefaultDir('desc'); $this->setUseAjax(true); $this->setFilterVisibility(false); - $this->setEmptyText(Mage::helper('catalog')->__('There are no customers for this alert')); + $this->setEmptyText(Mage::helper('catalog')->__('There are no customers for this alert.')); } protected function _prepareCollection() diff --git a/app/code/core/Mage/ProductAlert/etc/system.xml b/app/code/core/Mage/ProductAlert/etc/system.xml index f577f413a34..bb6fc573d0b 100644 --- a/app/code/core/Mage/ProductAlert/etc/system.xml +++ b/app/code/core/Mage/ProductAlert/etc/system.xml @@ -25,52 +25,67 @@ 1 1 - - + + select - adminhtml/system_config_source_yesno + adminhtml/system_config_source_email_identity 1 1 1 1 - - - + + + + adminhtml/system_config_form_field_heading + 10 + 1 + 1 + 1 + + + select adminhtml/system_config_source_yesno - 3 + 11 1 1 - 0 - - + 1 + select adminhtml/system_config_source_email_template - 2 + 12 1 1 1 - - + + + adminhtml/system_config_form_field_heading + 20 + 1 + 1 + 1 + + + select - adminhtml/system_config_source_email_template - 4 + adminhtml/system_config_source_yesno + 21 1 1 1 - - - + + + select - adminhtml/system_config_source_email_identity - 5 + adminhtml/system_config_source_email_template + 22 1 1 1 - + diff --git a/app/design/adminhtml/default/default/template/catalog/product/tab/alert.phtml b/app/design/adminhtml/default/default/template/catalog/product/tab/alert.phtml index 16e9ad623e1..cb39b7db7cb 100644 --- a/app/design/adminhtml/default/default/template/catalog/product/tab/alert.phtml +++ b/app/design/adminhtml/default/default/template/catalog/product/tab/alert.phtml @@ -18,9 +18,6 @@ * Template for block Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Alerts */ ?> +
getMessageHtml() ?>
-
-

__('Product Alerts') ?>

-
-
getAccordionHtml() ?> diff --git a/app/locale/en_US/Mage_Adminhtml.csv b/app/locale/en_US/Mage_Adminhtml.csv index c85c5f04c78..a7054feb73d 100644 --- a/app/locale/en_US/Mage_Adminhtml.csv +++ b/app/locale/en_US/Mage_Adminhtml.csv @@ -806,7 +806,6 @@ "Preview","Preview" "Preview Template","Preview Template" "Price","Price" -"Price alert subscription was saved.","Price alert subscription was saved." "Price:","Price:" "Processed %s%% %s/%d records","Processed %s%% %s/%d records" "Processing","Processing" @@ -984,7 +983,6 @@ "Status","Status" "Status:","Status:" "Stock Quantity:","Stock Quantity:" -"Stock notification was saved.","Stock notification was saved." "Store","Store" "Store View","Store View" "Store:","Store:" diff --git a/app/locale/en_US/Mage_Catalog.csv b/app/locale/en_US/Mage_Catalog.csv index 6f461c89f46..d23e9baef59 100644 --- a/app/locale/en_US/Mage_Catalog.csv +++ b/app/locale/en_US/Mage_Catalog.csv @@ -729,7 +729,6 @@ "The search was deleted.","The search was deleted." "The text is too long","The text is too long" "There are no %s available.","There are no %s available." -"There are no customers for this alert","There are no customers for this alert" "There are no customers for this alert.","There are no customers for this alert." "There are no products matching the selection.","There are no products matching the selection." "There was an error while request processing.","There was an error while request processing." diff --git a/app/locale/en_US/Mage_ProductAlert.csv b/app/locale/en_US/Mage_ProductAlert.csv index 440742d56f1..c1d950ae14d 100644 --- a/app/locale/en_US/Mage_ProductAlert.csv +++ b/app/locale/en_US/Mage_ProductAlert.csv @@ -1,5 +1,6 @@ "Alert Email Sender","Alert Email Sender" "Alert subscription has been saved.","Alert subscription has been saved." +"Enabled","Enabled" "Allow Alert When Product Comes Back in Stock","Allow Alert When Product Comes Back in Stock" "Allow Alert When Product Price Changes","Allow Alert When Product Price Changes" "Click here not to receive alerts for this product","Click here not to receive alerts for this product"