Version Notes
Initial Release
Download this release
Release Info
Developer | Carotechs |
Extension | Carotechs_Audittrack |
Version | 0.1.2 |
Comparing to | |
See all releases |
Code changes from version 0.1.1 to 0.1.2
- app/code/local/Carotechs/Audittrack/controllers/Catalog/ProductController.php +4 -4
- app/code/local/Carotechs/Audittrack/etc/config.xml +1 -1
- app/code/local/Carotechs/Audittrack/sql/audittrack_setup/{mysql4-install-0.1.1.php → mysql4-install-0.1.2.php} +0 -0
- app/design/adminhtml/default/default/layout/audittrack.xml +1 -1
- package.xml +3 -3
app/code/local/Carotechs/Audittrack/controllers/Catalog/ProductController.php
CHANGED
@@ -83,19 +83,19 @@ class Carotechs_Audittrack_Catalog_ProductController extends Mage_Adminhtml_Cata
|
|
83 |
|
84 |
if(Mage::getStoreConfig("Carotechs_Audittrack/AudittrackPriceAlert/Productprice"))
|
85 |
{
|
86 |
-
if(
|
87 |
{
|
88 |
//trans_email_ident_custom1_email
|
89 |
/* Sender Name */
|
90 |
-
$from=Mage::getStoreConfig('trans_email/
|
|
|
91 |
/* Sender Email */
|
92 |
$to=Mage::getStoreConfig("Carotechs_Audittrack/AudittrackPriceAlert/Email");
|
93 |
$subject='Product update notification.';
|
94 |
-
$headers =
|
95 |
$headers .= "Content-type: text/html\r\n";
|
96 |
$message = 'Product Details are changed for <b>'.$p_name.'</b><br/>';
|
97 |
$message .= '<b> ID :</b>'.$productId.'<br/><b>Sku :</b>'.$sku.'<br/><b>Previous Price : </b>'.$price.'<br/><b>Current Price :</b>'.$current_price.'<br/><b>Website :</b>'.$this->_store_name;
|
98 |
-
//echo $message;die();
|
99 |
mail($to,$subject,$message,$headers);
|
100 |
}
|
101 |
}
|
83 |
|
84 |
if(Mage::getStoreConfig("Carotechs_Audittrack/AudittrackPriceAlert/Productprice"))
|
85 |
{
|
86 |
+
if(1)//$price!=$current_price)
|
87 |
{
|
88 |
//trans_email_ident_custom1_email
|
89 |
/* Sender Name */
|
90 |
+
$from=Mage::getStoreConfig('trans_email/ident_sales/name');
|
91 |
+
$from_email=Mage::getStoreConfig('trans_email/ident_sales/email');
|
92 |
/* Sender Email */
|
93 |
$to=Mage::getStoreConfig("Carotechs_Audittrack/AudittrackPriceAlert/Email");
|
94 |
$subject='Product update notification.';
|
95 |
+
$headers = "From: $from <$from_email>". "\r\n";
|
96 |
$headers .= "Content-type: text/html\r\n";
|
97 |
$message = 'Product Details are changed for <b>'.$p_name.'</b><br/>';
|
98 |
$message .= '<b> ID :</b>'.$productId.'<br/><b>Sku :</b>'.$sku.'<br/><b>Previous Price : </b>'.$price.'<br/><b>Current Price :</b>'.$current_price.'<br/><b>Website :</b>'.$this->_store_name;
|
|
|
99 |
mail($to,$subject,$message,$headers);
|
100 |
}
|
101 |
}
|
app/code/local/Carotechs/Audittrack/etc/config.xml
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Carotechs_Audittrack>
|
13 |
-
<version>0.1.
|
14 |
</Carotechs_Audittrack>
|
15 |
</modules>
|
16 |
<frontend>
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Carotechs_Audittrack>
|
13 |
+
<version>0.1.2</version>
|
14 |
</Carotechs_Audittrack>
|
15 |
</modules>
|
16 |
<frontend>
|
app/code/local/Carotechs/Audittrack/sql/audittrack_setup/{mysql4-install-0.1.1.php → mysql4-install-0.1.2.php}
RENAMED
File without changes
|
app/design/adminhtml/default/default/layout/audittrack.xml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<layout version="0.1.
|
3 |
<audittrack_adminhtml_audittrack_index>
|
4 |
<reference name="content">
|
5 |
<block type="audittrack/adminhtml_audittrack" name="audittrack" />
|
1 |
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.2">
|
3 |
<audittrack_adminhtml_audittrack_index>
|
4 |
<reference name="content">
|
5 |
<block type="audittrack/adminhtml_audittrack" name="audittrack" />
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Carotechs_Audittrack</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -11,8 +11,8 @@
|
|
11 |
<notes>Initial Release</notes>
|
12 |
<authors><author><name>Carotechs</name><user>carotechsinc</user><email>apps@carotechs.com</email></author></authors>
|
13 |
<date>2013-07-18</date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Carotechs"><dir name="Audittrack"><dir name="Block"><file name="Aboutconfig.php" hash="59aef46dfc28403283126fedf6c37b48"/><file name="Aboutprice.php" hash="2326296050f48c8688ba02e8eae3b0da"/><dir name="Adminhtml"><dir name="Audittrack"><file name="Grid.php" hash="89088141bc7e65ed7f9e10cd6411b2df"/></dir><file name="Audittrack.php" hash="e951f4d043132c20fe27b796680ddc12"/></dir><file name="Audittrack.php" hash="9b00af50e8207c1309b2e40b2612a311"/></dir><dir name="Helper"><file name="Data.php" hash="8bda5cc47def24a8b64e7e6dd87ad7de"/></dir><dir name="Model"><file name="Audittrack.php" hash="57cc96db1fd2d1dcd6925da2f454bc35"/><dir name="Mysql4"><dir name="Audittrack"><file name="Collection.php" hash="19a55edf9900150dda6e05ad5e785646"/></dir><file name="Audittrack.php" hash="36b6b2d3c082fa116f6359ee7ae12a57"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="AudittrackController.php" hash="fc646ed73c774a280df64c8fb9ad72dc"/></dir><dir name="Catalog"><file name="CategoryController.php" hash="a8488e3d28ab0ffdfa3a34ab00a10532"/><dir name="Product"><file name="AttributeController.php" hash="49aabe7443707ae7a3606a4cf4aec13d"/><file name="SetController.php" hash="c862c562fd686a4377b4723a98c83f98"/></dir><file name="ProductController.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Carotechs_Audittrack</name>
|
4 |
+
<version>0.1.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
11 |
<notes>Initial Release</notes>
|
12 |
<authors><author><name>Carotechs</name><user>carotechsinc</user><email>apps@carotechs.com</email></author></authors>
|
13 |
<date>2013-07-18</date>
|
14 |
+
<time>05:59:57</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Carotechs"><dir name="Audittrack"><dir name="Block"><file name="Aboutconfig.php" hash="59aef46dfc28403283126fedf6c37b48"/><file name="Aboutprice.php" hash="2326296050f48c8688ba02e8eae3b0da"/><dir name="Adminhtml"><dir name="Audittrack"><file name="Grid.php" hash="89088141bc7e65ed7f9e10cd6411b2df"/></dir><file name="Audittrack.php" hash="e951f4d043132c20fe27b796680ddc12"/></dir><file name="Audittrack.php" hash="9b00af50e8207c1309b2e40b2612a311"/></dir><dir name="Helper"><file name="Data.php" hash="8bda5cc47def24a8b64e7e6dd87ad7de"/></dir><dir name="Model"><file name="Audittrack.php" hash="57cc96db1fd2d1dcd6925da2f454bc35"/><dir name="Mysql4"><dir name="Audittrack"><file name="Collection.php" hash="19a55edf9900150dda6e05ad5e785646"/></dir><file name="Audittrack.php" hash="36b6b2d3c082fa116f6359ee7ae12a57"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="AudittrackController.php" hash="fc646ed73c774a280df64c8fb9ad72dc"/></dir><dir name="Catalog"><file name="CategoryController.php" hash="a8488e3d28ab0ffdfa3a34ab00a10532"/><dir name="Product"><file name="AttributeController.php" hash="49aabe7443707ae7a3606a4cf4aec13d"/><file name="SetController.php" hash="c862c562fd686a4377b4723a98c83f98"/></dir><file name="ProductController.php" hash="01467c2f18c70ac634d124515d6881f1"/></dir><file name="CustomerController.php" hash="f0a322b2bde60283c422da58f25c4ffd"/><dir name="Promo"><file name="CatalogController.php" hash="61e30758870a13b45aa6cc46bedf40dd"/><file name="QuoteController.php" hash="e2aed1ce668a0b47517eb33b4e5084b3"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="5f6b82a7ee69ac288d76482cbaecfbbb"/><file name="config.xml" hash="ac904282d83343a781d4f57db3804828"/><file name="system.xml" hash="6c451bfa506cd6474c0ae27fb39ae566"/></dir><dir name="sql"><dir name="audittrack_setup"><file name="mysql4-install-0.1.2.php" hash="ed8af37952d290c0632666172892794b"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="audittrack.xml" hash="ffac180bb0364810f040d7dac802c8e7"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Carotechs_Audittrack.xml" hash="9f1a85ba90bd65b2bb44127e02b40331"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|