Smartify_Smartify - Version 1.0.3

Version Notes

April 9, 2015

Download this release

Release Info

Developer Thomas Pouncy
Extension Smartify_Smartify
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/code/local/Smartify/Smartify/Model/Observer.php CHANGED
@@ -7,6 +7,7 @@ class Smartify_Smartify_Model_Observer extends Mage_Core_Model_Abstract
7
  const SMARTIFY_API_VERSION = 1;
8
  const SMARTIFY_MAGENTO_PATH = "/api/v1/retail/orders/";
9
  const SMARTIFY_OAUTH_TOKEN_PATH = "/oauth/token";
 
10
 
11
 
12
  function domain_name(){
@@ -78,6 +79,7 @@ class Smartify_Smartify_Model_Observer extends Mage_Core_Model_Abstract
78
  function quoteData($quote){
79
  $cart_data = array();
80
  $cart_data['id'] = $quote->getId();
 
81
  $cart_data['total_price_before_discounts'] = $quote->getBaseSubtotal();
82
  $cart_data['total_price_after_discounts'] = $quote->getBaseSubtotalWithDiscount();
83
  $cart_data['currency'] = $quote->getBaseCurrencyCode();
@@ -132,7 +134,7 @@ class Smartify_Smartify_Model_Observer extends Mage_Core_Model_Abstract
132
 
133
  function generalData(){
134
  $gen_data = array();
135
- $gen_data['smartify_config_id'] = Mage::getStoreConfig('smartify_options/setup/config_id');
136
  $gen_data['time'] = time();
137
  $gen_data['smartify_extension_version'] = self::SMARTIFY_EXTENSION_VERSION;
138
  $gen_data['smartify_extension_platform'] = self::SMARTIFY_EXTENSION_STORE;
7
  const SMARTIFY_API_VERSION = 1;
8
  const SMARTIFY_MAGENTO_PATH = "/api/v1/retail/orders/";
9
  const SMARTIFY_OAUTH_TOKEN_PATH = "/oauth/token";
10
+ const SMARTIFY_MAGENTO = "magento";
11
 
12
 
13
  function domain_name(){
79
  function quoteData($quote){
80
  $cart_data = array();
81
  $cart_data['id'] = $quote->getId();
82
+ $cart_data['ecommerce_integration_type'] = self::SMARTIFY_MAGENTO;
83
  $cart_data['total_price_before_discounts'] = $quote->getBaseSubtotal();
84
  $cart_data['total_price_after_discounts'] = $quote->getBaseSubtotalWithDiscount();
85
  $cart_data['currency'] = $quote->getBaseCurrencyCode();
134
 
135
  function generalData(){
136
  $gen_data = array();
137
+ $gen_data['smartify_product_id'] = Mage::getStoreConfig('smartify_options/setup/product_id');
138
  $gen_data['time'] = time();
139
  $gen_data['smartify_extension_version'] = self::SMARTIFY_EXTENSION_VERSION;
140
  $gen_data['smartify_extension_platform'] = self::SMARTIFY_EXTENSION_STORE;
app/code/local/Smartify/Smartify/etc/system.xml CHANGED
@@ -41,8 +41,8 @@
41
  <show_in_website>1</show_in_website>
42
  <show_in_store>1</show_in_store>
43
  </endpoint>
44
- <config_id>
45
- <label>Smartify Config ID</label>
46
  <comment>
47
  <![CDATA[You should be given this value from your Smartify Contact.]]>
48
  </comment>
@@ -51,7 +51,7 @@
51
  <show_in_default>1</show_in_default>
52
  <show_in_website>1</show_in_website>
53
  <show_in_store>1</show_in_store>
54
- </config_id>
55
 
56
  <oauth_access_key>
57
  <label>Smartify OAuth Access Key</label>
41
  <show_in_website>1</show_in_website>
42
  <show_in_store>1</show_in_store>
43
  </endpoint>
44
+ <product_id>
45
+ <label>Smartify Product ID</label>
46
  <comment>
47
  <![CDATA[You should be given this value from your Smartify Contact.]]>
48
  </comment>
51
  <show_in_default>1</show_in_default>
52
  <show_in_website>1</show_in_website>
53
  <show_in_store>1</show_in_store>
54
+ </product_id>
55
 
56
  <oauth_access_key>
57
  <label>Smartify OAuth Access Key</label>
app/design/frontend/base/default/template/smartify/smartify/widget.phtml CHANGED
@@ -1,8 +1,8 @@
1
  <?php if(Mage::getStoreConfig('smartify_options/setup/enabled') == true){ ?>
2
 
3
  <?php if(Mage::getStoreConfig('smartify_options/setup/endpoint') == null){ ?>
4
- <script type="text/javascript" src="https://widget.getsmartify.com/widget/<?php echo Mage::getStoreConfig('smartify_options/setup/config_id'); ?>/<?php echo Mage::getSingleton('checkout/session')->getSessionId(); ?>/shareandtell_widget.js?referer_page_url=<?php echo $this->helper('core/url')->getCurrentUrl() ?>" id="shareandtell_script_1"></script>
5
  <?php } else { ?>
6
- <script type="text/javascript" src="<?php echo Mage::getStoreConfig('smartify_options/setup/endpoint'); ?>/widget/<?php echo Mage::getStoreConfig('smartify_options/setup/config_id'); ?>/<?php echo Mage::getSingleton('checkout/session')->getSessionId(); ?>/shareandtell_widget.js?referer_page_url=<?php echo $this->helper('core/url')->getCurrentUrl() ?>" id="shareandtell_script_1"></script>
7
  <?php } ?>
8
  <?php } ?>
1
  <?php if(Mage::getStoreConfig('smartify_options/setup/enabled') == true){ ?>
2
 
3
  <?php if(Mage::getStoreConfig('smartify_options/setup/endpoint') == null){ ?>
4
+ <script type="text/javascript" src="https://widget.getsmartify.com/widget/<?php echo Mage::getStoreConfig('smartify_options/setup/product_id'); ?>/<?php echo Mage::getSingleton('checkout/session')->getSessionId(); ?>/shareandtell_widget.js?referer_page_url=<?php echo $this->helper('core/url')->getCurrentUrl() ?>" id="shareandtell_script_1"></script>
5
  <?php } else { ?>
6
+ <script type="text/javascript" src="<?php echo Mage::getStoreConfig('smartify_options/setup/endpoint'); ?>/widget/<?php echo Mage::getStoreConfig('smartify_options/setup/product_id'); ?>/<?php echo Mage::getSingleton('checkout/session')->getSessionId(); ?>/shareandtell_widget.js?referer_page_url=<?php echo $this->helper('core/url')->getCurrentUrl() ?>" id="shareandtell_script_1"></script>
7
  <?php } ?>
8
  <?php } ?>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Smartify_Smartify</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This plugin installs and integrates the Smartify widget into your ecommerce site, which helps you to maximize the efficiency of your ad-spend</summary>
10
- <description>Smartify provides a technology platform to help clients maximize the efficiency of their digital marketing spend by identifying key e-commerce goals, testing various online user experiences and discovering which customer interactions help move our client towards their stated goals. We can help answer questions like "when and how should we interact with our customers to increase their likelihood of purchase?", "can we improve sales of key items without relying on price reductions?", and "which elements of our online shopping experience lead to higher average lifetime value among our specific customer demographic?", just to give a few examples. We build our user experiences by designing and executing complete incentivized campaigns with our specially built tools and years of industry experience. </description>
11
- <notes>http -&gt; https script tag</notes>
12
  <authors><author><name>Thomas Pouncy</name><user>smartify</user><email>thomas@getsmartify.com</email></author></authors>
13
- <date>2015-02-10</date>
14
- <time>00:51:28</time>
15
- <contents><target name="magelocal"><dir name="Smartify"><dir name="Smartify"><dir name="Helper"><file name="Data.php" hash="2e9d5e12ac8b3fd06f369c9f15bd4b58"/></dir><dir name="Model"><file name="Config.php" hash="b89512d295c9519dbadb43d81e4eeb55"/><file name="Observer.php" hash="a56ebcce596004927ad22e0bd7d02db3"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f9ba98b92c3008a9dc39d007de7ad3ef"/><file name="config.xml" hash="02475487a61431cab42fbcb924481530"/><file name="system.xml" hash="a7294710f0c83051a52397933a01a51d"/></dir></dir><file name=".DS_Store" hash="0be08eb12e189cb860893cbd2b5dcfa1"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="smartify"><dir name="smartify"><file name="widget.phtml" hash="be066a3044c385161efd06218b51ad17"/></dir></dir></dir><dir name="layout"><file name="smartify.xml" hash="f31117b5e8260b08b161a7e27209adf9"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Smartify_Smartify.xml" hash="9998550331270e6248f202bc747ef8fc"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.4.0</min><max>5.6.4</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Smartify_Smartify</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This plugin installs and integrates the Smartify widget into your ecommerce site, which helps you to maximize the efficiency of your ad-spend</summary>
10
+ <description>Smartify provides a technology platform to help clients maximize the efficiency of their digital marketing spend by identifying key e-commerce goals, testing various online user experiences and discovering which customer interactions help move our client towards their stated goals. We can help answer questions like "when and how should we interact with our customers to increase their likelihood of purchase?", "can we improve sales of key items without relying on price reductions?", and "which elements of our online shopping experience lead to higher average lifetime value among our specific customer demographic?", just to give a few examples. We build our user experiences by designing and executing complete incentivized campaigns with our specially built tools and years of industry experience.</description>
11
+ <notes>April 9, 2015</notes>
12
  <authors><author><name>Thomas Pouncy</name><user>smartify</user><email>thomas@getsmartify.com</email></author></authors>
13
+ <date>2015-04-09</date>
14
+ <time>20:10:08</time>
15
+ <contents><target name="magelocal"><dir name="Smartify"><dir name="Smartify"><dir name="Helper"><file name="Data.php" hash="2e9d5e12ac8b3fd06f369c9f15bd4b58"/></dir><dir name="Model"><file name="Config.php" hash="b89512d295c9519dbadb43d81e4eeb55"/><file name="Observer.php" hash="847ac0162bdfea7f5a4940a3f4cebf50"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f9ba98b92c3008a9dc39d007de7ad3ef"/><file name="config.xml" hash="02475487a61431cab42fbcb924481530"/><file name="system.xml" hash="e4a9bc0e756a2a09f9fc4db1661758a3"/></dir></dir><file name=".DS_Store" hash="0be08eb12e189cb860893cbd2b5dcfa1"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="smartify"><dir name="smartify"><file name="widget.phtml" hash="15aa51dad2c7eb9fda5c95d8554d0128"/></dir></dir></dir><dir name="layout"><file name="smartify.xml" hash="f31117b5e8260b08b161a7e27209adf9"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Smartify_Smartify.xml" hash="9998550331270e6248f202bc747ef8fc"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.4.0</min><max>5.6.4</max></php></required></dependencies>
18
  </package>