pixlee-for-magento - Version 2.0.0.25

Version Notes

First requires configuration in System > Configuration > Pixlee Account Configuration.

Download this release

Release Info

Developer Awad Sayeed
Extension pixlee-for-magento
Version 2.0.0.25
Comparing to
See all releases


Code changes from version 2.0.0.24 to 2.0.0.25

app/code/community/Pixlee/Base/Block/Adminhtml/System/Config/Form/Demo.php CHANGED
@@ -12,7 +12,7 @@ class Pixlee_Base_Block_Adminhtml_System_Config_Form_Demo extends Mage_Adminhtml
12
  public function getButtonHtml() {
13
  $buttonData = array(
14
  'id' => 'request_demo_button',
15
- 'label' => $this->helper('adminhtml')->__('Request Demo'),
16
  'onclick' => 'javascript:requestDemo(); return false;'
17
  );
18
 
12
  public function getButtonHtml() {
13
  $buttonData = array(
14
  'id' => 'request_demo_button',
15
+ 'label' => $this->helper('adminhtml')->__('Request Access'),
16
  'onclick' => 'javascript:requestDemo(); return false;'
17
  );
18
 
app/code/community/Pixlee/Base/Model/Resource/Setup.php CHANGED
@@ -1,3 +1,34 @@
1
  <?php
2
- class Pixlee_Base_Model_Resource_Setup extends Mage_Sales_Model_Resource_Setup {
3
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
+
3
+ class Pixlee_Base_Model_Resource_Setup extends Mage_Core_Model_Resource_Setup {
4
+ public function send_to_pardot() {
5
+ Mage::log("Beginning to send lead to Pardot");
6
+ $store_name = Mage::app()->getStore()->getName();
7
+ $from_email = Mage::getStoreConfig('trans_email/ident_general/email'); //fetch sender email Admin
8
+ $from_name = Mage::getStoreConfig('trans_email/ident_general/name'); //fetch sender name Admin
9
+
10
+ if ($from_email != "owner@example.com") {
11
+ Mage::log("Lead data validated");
12
+ $data = json_encode(array(
13
+ "name" => $from_name,
14
+ "email" => $from_email,
15
+ "company" => $store_name,
16
+ "source" => "magento_1_download"
17
+ ));
18
+
19
+ $ch = curl_init();
20
+ curl_setopt($ch, CURLOPT_URL, "https://app.pixlee.com/leads/add");
21
+ curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
22
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
23
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
24
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array(
25
+ 'Content-Type: application/json',
26
+ 'Content-Length: ' . strlen($data))
27
+ );
28
+
29
+ $output = curl_exec($ch);
30
+ Mage::log("Response from CP" . $output);
31
+ curl_close($ch);
32
+ }
33
+ }
34
+ }
app/code/community/Pixlee/Base/etc/adminhtml.xml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <config>
2
+ <acl>
3
+ <resources>
4
+ <admin>
5
+ <children>
6
+ <system>
7
+ <children>
8
+ <config>
9
+ <children>
10
+ <pixlee translate="title" module="pixlee">
11
+ <title>Account Config</title>
12
+ <sort_order>10</sort_order>
13
+ </pixlee>
14
+ <request translate="title" module="pixlee">
15
+ <title>Request Access</title>
16
+ <sort_order>12</sort_order>
17
+ </request>
18
+ </children>
19
+ </config>
20
+ </children>
21
+ </system>
22
+ </children>
23
+ </admin>
24
+ </resources>
25
+ </acl>
26
+ </config>
app/code/community/Pixlee/Base/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Pixlee_Base>
5
- <version>2.0.0.24</version>
6
  </Pixlee_Base>
7
  </modules>
8
  <default>
2
  <config>
3
  <modules>
4
  <Pixlee_Base>
5
+ <version>2.0.0.25</version>
6
  </Pixlee_Base>
7
  </modules>
8
  <default>
app/code/community/Pixlee/Base/etc/config.xml.bak CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Pixlee_Base>
5
- <version>2.0.0.24</version>
6
  </Pixlee_Base>
7
  </modules>
8
  <default>
2
  <config>
3
  <modules>
4
  <Pixlee_Base>
5
+ <version>2.0.0.22</version>
6
  </Pixlee_Base>
7
  </modules>
8
  <default>
app/code/community/Pixlee/Base/etc/system.xml CHANGED
@@ -8,8 +8,8 @@
8
  </pixlee>
9
  </tabs>
10
  <sections>
11
- <pixlee translate="label" module="pixlee">
12
- <label>Pixlee Account Configuration</label>
13
  <tab>pixlee</tab>
14
  <sort_order>1000</sort_order>
15
  <show_in_default>1</show_in_default>
@@ -22,6 +22,7 @@
22
  <frontend_type>text</frontend_type>
23
  <sort_order>1</sort_order>
24
  <show_in_default>1</show_in_default>
 
25
  <show_in_website>1</show_in_website>
26
  <show_in_store>1</show_in_store>
27
  <fields>
@@ -50,7 +51,7 @@
50
  <show_in_store>1</show_in_store>
51
  </website>
52
  <request_demo translate="label">
53
- <label>Request Demo</label>
54
  <frontend_type>button</frontend_type>
55
  <frontend_model>pixlee/adminhtml_system_config_form_demo</frontend_model>
56
  <sort_order>60</sort_order>
@@ -58,9 +59,18 @@
58
  <show_in_website>1</show_in_website>
59
  <show_in_store>1</show_in_store>
60
  </request_demo>
61
-
62
  </fields>
63
  </demo>
 
 
 
 
 
 
 
 
 
 
64
  <pixlee translate="label" module="pixlee">
65
  <label>API Credentials</label>
66
  <frontend_type>text</frontend_type>
8
  </pixlee>
9
  </tabs>
10
  <sections>
11
+ <request translate="label" module="pixlee">
12
+ <label>New Downloads</label>
13
  <tab>pixlee</tab>
14
  <sort_order>1000</sort_order>
15
  <show_in_default>1</show_in_default>
22
  <frontend_type>text</frontend_type>
23
  <sort_order>1</sort_order>
24
  <show_in_default>1</show_in_default>
25
+ <expanded>1</expanded>
26
  <show_in_website>1</show_in_website>
27
  <show_in_store>1</show_in_store>
28
  <fields>
51
  <show_in_store>1</show_in_store>
52
  </website>
53
  <request_demo translate="label">
54
+ <label>Request Access</label>
55
  <frontend_type>button</frontend_type>
56
  <frontend_model>pixlee/adminhtml_system_config_form_demo</frontend_model>
57
  <sort_order>60</sort_order>
59
  <show_in_website>1</show_in_website>
60
  <show_in_store>1</show_in_store>
61
  </request_demo>
 
62
  </fields>
63
  </demo>
64
+ </groups>
65
+ </request>
66
+ <pixlee translate="label" module="pixlee">
67
+ <label>Pixlee Account Configuration</label>
68
+ <tab>pixlee</tab>
69
+ <sort_order>1100</sort_order>
70
+ <show_in_default>1</show_in_default>
71
+ <show_in_website>1</show_in_website>
72
+ <show_in_store>1</show_in_store>
73
+ <groups>
74
  <pixlee translate="label" module="pixlee">
75
  <label>API Credentials</label>
76
  <frontend_type>text</frontend_type>
app/code/community/Pixlee/Base/sql/pixlee_base_setup/mysql4-install-1.0.0.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php
2
  $installer = $this;
3
  $installer->startSetup();
 
4
 
5
  $table = $installer->getConnection()->newTable($installer->getTable('pixlee/product_album'))
6
  ->addColumn('id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
1
  <?php
2
  $installer = $this;
3
  $installer->startSetup();
4
+ $installer->send_to_pardot();
5
 
6
  $table = $installer->getConnection()->newTable($installer->getTable('pixlee/product_album'))
7
  ->addColumn('id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
app/code/community/Pixlee/Base/version.txt CHANGED
@@ -1 +1 @@
1
- 3f657125cdaf7e0a0a4fe37da260176eec674dd1
1
+ 98ebc375caef96902be89392ce8b9b773277a6c6
app/design/adminhtml/default/default/template/pixlee/system/config/demo_button.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <script type="text/javascript">
2
  //<![CDATA[
3
  function requestDemo() {
4
- var name = document.getElementById('pixlee_demo_name').value
5
- var email = document.getElementById('pixlee_demo_email').value
6
- var website = document.getElementById('pixlee_demo_website').value
7
 
8
 
9
  if (name === '') {
@@ -16,7 +16,7 @@ function requestDemo() {
16
 
17
  }
18
 
19
- var params = "?source=magento_1&name=" + name + "&email=" + email + "&website" + website;
20
 
21
  var request = new XMLHttpRequest();
22
  request.onreadystatechange = function() {
@@ -25,7 +25,7 @@ function requestDemo() {
25
  var response = JSON.parse(this.responseText);
26
  if (response && response.result === "Successful") {
27
  $('request_demo_button').addClassName('disabled');
28
- alert('Thanks for requesting a demo. We will get in touch with you shortly.');
29
  } else {
30
  alert('Opps! Something went wrong. While we are working on resolving the issue, feel free to reach us at hi@pixleeteam.com');
31
  }
1
  <script type="text/javascript">
2
  //<![CDATA[
3
  function requestDemo() {
4
+ var name = document.getElementById('request_demo_name').value
5
+ var email = document.getElementById('request_demo_email').value
6
+ var website = document.getElementById('request_demo_website').value
7
 
8
 
9
  if (name === '') {
16
 
17
  }
18
 
19
+ var params = "?source=magento_1_request_demo&name=" + name + "&email=" + email + "&website" + website;
20
 
21
  var request = new XMLHttpRequest();
22
  request.onreadystatechange = function() {
25
  var response = JSON.parse(this.responseText);
26
  if (response && response.result === "Successful") {
27
  $('request_demo_button').addClassName('disabled');
28
+ alert('Thanks for requesting access. We will get in touch with you shortly.');
29
  } else {
30
  alert('Opps! Something went wrong. While we are working on resolving the issue, feel free to reach us at hi@pixleeteam.com');
31
  }
package.xml CHANGED
@@ -1,2 +1,2 @@
1
  <?xml version="1.0"?>
2
- <package><name>pixlee-for-magento</name><version>2.0.0.24</version><stability>stable</stability><license>MIT</license><channel>community</channel><extends></extends><summary>Pixlee extension to export products and capture cart events.</summary><description>This extension updates Pixlee's albums and products automatically with products created within Magento. Also, after setup, allows tracking of cart analytics.</description><notes>First requires configuration in System &gt; Configuration &gt; Pixlee Account Configuration.</notes><authors><author><name>Awad Sayeed</name><user>Pixlee</user><email>awad@pixleeteam.com</email></author></authors><date>2017-07-05</date><time>18:41:38</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>5.7.0</max></php></required></dependencies><contents><target name="mage"><dir name="skin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="pixlee"><file name="base.css" hash="22234fd8f1606d2d8a440d9a037c7fe4"/><file name="pixlee_logo_133x24.png" hash="af22b06f1fbffc0cf9e640926e59b736"/></dir></dir></dir></dir></dir><dir name="lib"><dir name="Pixlee"><file name="Pixlee.php" hash="2b2fa758820a7ceaf5442bbfd9486e8d"/></dir><dir name="Raven"><file name="Autoloader.php" hash="a769482f6fc77b0b6fd616e2d047e7e8"/><file name="Breadcrumbs.php" hash="d5ecf6a777fec5326e28d7e29d74d390"/><file name="Client.php" hash="d80a0076509c61ba2ee55708b3ff99df"/><file name="Compat.php" hash="3bc9e7cb370d8020e788691edfc8be00"/><file name="Context.php" hash="45864b0f776665306f610b8178ec3b18"/><file name="CurlHandler.php" hash="811d7e88deff3b69d1515d7d92e00a34"/><file name="ErrorHandler.php" hash="4157b50f992f1d318325169088d6f92b"/><file name="Exception.php" hash="49bebb978db9e76b3f49451926d9e024"/><file name="Processor.php" hash="e0c10541d8cb27c0961216e73e3adce1"/><file name="ReprSerializer.php" hash="a6530e0378f8cf82f0684219cd31668a"/><file name="SanitizeDataProcessor.php" hash="e5a307fa1581515a1a36c836ac0988f9"/><file name="Serializer.php" hash="d9bf3442a79751932521d2a15f437bb0"/><file name="Stacktrace.php" hash="40206975c23c9007fcc640ece3b3963c"/><file name="Util.php" hash="217afbd25692fe3c9a9746fe9a1d866a"/><dir name="Breadcrumbs"><file name="ErrorHandler.php" hash="859b2ffe5d18bc1ff33ed64389c5d1a5"/><file name="MonologHandler.php" hash="c5880e1e9bee038bee075244a410015e"/></dir><dir name="data"><file name="cacert.pem" hash="5b7a16cb9dbb736910645c01b361baee"/></dir></dir></dir><dir name="app"><dir name="etc"><dir name="modules"><file name="Pixlee_Base.xml" hash="d61d4914e77a6f00ecad4d1c08a69c01"/></dir></dir><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="pixlee"><file name="category_gallery.phtml" hash="799358e740c3d614dcb2606d5ffce892"/><file name="gallery.phtml" hash="ecb47e5881213e9d6ba54979ab803dcf"/><file name="pixlee_tracking_pixel.phtml" hash="2c25a3b8cda12105cd24f14d4833bf0b"/></dir></dir><dir name="layout"><dir name="pixlee"><file name="gallery.xml" hash="b363f4a96e7f8f023f5c3cf2ff5c750d"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="pixlee"><dir name="system"><dir name="config"><file name="demo_button.phtml" hash="f0fff6e19aff26bde28fd7eb06043aa9"/><file name="export_button.phtml" hash="cbd180213a7c271bbf7b99ce8278764d"/></dir></dir></dir></dir><dir name="layout"><dir name="pixlee"><file name="base.xml" hash="e0fb83dce0f81138137a5d320de1dd96"/></dir></dir></dir></dir></dir></dir><dir name="code"><dir name="community"><dir name="Pixlee"><dir name="Base"><file name="version.txt" hash="43af92f6736bb39ed3b4164af69637ab"/><dir name="etc"><file name="config.xml" hash="e126ea7cbbb77fcf0dd877374495ff19"/><file name="config.xml.bak" hash="e126ea7cbbb77fcf0dd877374495ff19"/><file name="system.xml" hash="5dd6e4a4e3c939aca1368a38d27d3609"/></dir><dir name="sql"><dir name="pixlee_base_setup"><file name="mysql4-install-1.0.0.php" hash="219da3718bcbf86509c6be9609dd3ebb"/></dir></dir><dir name="Helper"><file name="Data.php" hash="948931e97d10b709b5a33c4e002ed687"/><file name="RavenAutoLoader.php" hash="a769482f6fc77b0b6fd616e2d047e7e8"/></dir><dir name="controllers"><dir name="Pixlee"><file name="ExportController.php" hash="bcb29b68a29060ef2718b67d9713a64f"/></dir></dir><dir name="Block"><file name="CategoryGallery.php" hash="d2254c06b534d4f17721165205d17769"/><file name="Gallery.php" hash="22653b8b8b340aa2c515ea8674e0af90"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Demo.php" hash="4f4d2595e2736203a430c5532a2a8f3f"/><file name="Export.php" hash="a86d00b5a2e312a5bfdd856fd9ede257"/></dir></dir></dir></dir></dir><dir name="Model"><file name="Observer.php" hash="ebe971b069800648da3911ff572bcd1d"/><dir name="Resource"><file name="Setup.php" hash="a4f0721d4b19d19290e4999ef7ad327f"/><dir name="Product"><file name="Album.php" hash="a7f1e58ac017f183a2d1620d35645342"/></dir></dir><dir name="Product"><file name="Album.php" hash="1b415ff13e6fc9403e1149b327f9acb9"/></dir></dir><dir name="Test"><file name="autoload.php" hash="05ed6c18a3ee3f523c242312de048eef"/><dir name="Helper"><file name="Data.php" hash="97b4546146d750033aed7c6855ea6327"/><dir name="fixtures"><file name="testGetUnexportedProducts.yaml" hash="9575424d3b1061d07181a8e9b2aaa6f4"/><file name="testIsActive.yaml" hash="9d0b9138d8b919f203b9534585ea83ec"/><file name="testIsInactive.yaml" hash="630d629b1482583c5e250f6eed8769af"/></dir></dir></dir></dir></dir></dir></dir></dir></target></contents></package>
1
  <?xml version="1.0"?>
2
+ <package><name>pixlee-for-magento</name><version>2.0.0.25</version><stability>stable</stability><license>MIT</license><channel>community</channel><extends></extends><summary>Pixlee extension to export products and capture cart events.</summary><description>This extension updates Pixlee's albums and products automatically with products created within Magento. Also, after setup, allows tracking of cart analytics.</description><notes>First requires configuration in System &gt; Configuration &gt; Pixlee Account Configuration.</notes><authors><author><name>Awad Sayeed</name><user>Pixlee</user><email>awad@pixleeteam.com</email></author></authors><date>2017-08-01</date><time>15:06:18</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>5.7.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Pixlee"><dir name="Base"><file name="version.txt" hash="41278286d65364755480589969f744e9"/><dir name="Block"><file name="CategoryGallery.php" hash="d2254c06b534d4f17721165205d17769"/><file name="Gallery.php" hash="22653b8b8b340aa2c515ea8674e0af90"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Demo.php" hash="46c7c4578880b98b6bb50a010bcbbb55"/><file name="Export.php" hash="a86d00b5a2e312a5bfdd856fd9ede257"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Pixlee"><file name="ExportController.php" hash="bcb29b68a29060ef2718b67d9713a64f"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="77079a5eb9c2ff524568fb6fed70b9ad"/><file name="config.xml" hash="878ce8765f93cda7d18babe706b5a6da"/><file name="config.xml.bak" hash="caef05b680daedcfa36e67cea3d3e25a"/><file name="system.xml" hash="b775d04f4920799c907f4508b02917af"/></dir><dir name="Helper"><file name="Data.php" hash="948931e97d10b709b5a33c4e002ed687"/><file name="RavenAutoLoader.php" hash="a769482f6fc77b0b6fd616e2d047e7e8"/></dir><dir name="Model"><file name="Observer.php" hash="ebe971b069800648da3911ff572bcd1d"/><dir name="Product"><file name="Album.php" hash="1b415ff13e6fc9403e1149b327f9acb9"/></dir><dir name="Resource"><file name="Setup.php" hash="29fe2b977701b3e84c5f65d40798adfa"/><dir name="Product"><file name="Album.php" hash="a7f1e58ac017f183a2d1620d35645342"/></dir></dir></dir><dir name="sql"><dir name="pixlee_base_setup"><file name="mysql4-install-1.0.0.php" hash="8105101c1f97f42628d41676481007c8"/></dir></dir><dir name="Test"><file name="autoload.php" hash="05ed6c18a3ee3f523c242312de048eef"/><dir name="Helper"><file name="Data.php" hash="97b4546146d750033aed7c6855ea6327"/><dir name="fixtures"><file name="testGetUnexportedProducts.yaml" hash="9575424d3b1061d07181a8e9b2aaa6f4"/><file name="testIsActive.yaml" hash="9d0b9138d8b919f203b9534585ea83ec"/><file name="testIsInactive.yaml" hash="630d629b1482583c5e250f6eed8769af"/></dir></dir></dir></dir></dir></dir></dir><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="pixlee"><file name="base.xml" hash="e0fb83dce0f81138137a5d320de1dd96"/></dir></dir><dir name="template"><dir name="pixlee"><dir name="system"><dir name="config"><file name="demo_button.phtml" hash="90ee232f0807f7dda7b09b0ba4d332a9"/><file name="export_button.phtml" hash="cbd180213a7c271bbf7b99ce8278764d"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="pixlee"><file name="gallery.xml" hash="b363f4a96e7f8f023f5c3cf2ff5c750d"/></dir></dir><dir name="template"><dir name="pixlee"><file name="category_gallery.phtml" hash="799358e740c3d614dcb2606d5ffce892"/><file name="gallery.phtml" hash="ecb47e5881213e9d6ba54979ab803dcf"/><file name="pixlee_tracking_pixel.phtml" hash="2c25a3b8cda12105cd24f14d4833bf0b"/></dir></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Pixlee_Base.xml" hash="d61d4914e77a6f00ecad4d1c08a69c01"/></dir></dir></dir><dir name="lib"><dir name="Pixlee"><file name="Pixlee.php" hash="2b2fa758820a7ceaf5442bbfd9486e8d"/></dir><dir name="Raven"><file name="Autoloader.php" hash="a769482f6fc77b0b6fd616e2d047e7e8"/><file name="Breadcrumbs.php" hash="d5ecf6a777fec5326e28d7e29d74d390"/><file name="Client.php" hash="d80a0076509c61ba2ee55708b3ff99df"/><file name="Compat.php" hash="3bc9e7cb370d8020e788691edfc8be00"/><file name="Context.php" hash="45864b0f776665306f610b8178ec3b18"/><file name="CurlHandler.php" hash="811d7e88deff3b69d1515d7d92e00a34"/><file name="ErrorHandler.php" hash="4157b50f992f1d318325169088d6f92b"/><file name="Exception.php" hash="49bebb978db9e76b3f49451926d9e024"/><file name="Processor.php" hash="e0c10541d8cb27c0961216e73e3adce1"/><file name="ReprSerializer.php" hash="a6530e0378f8cf82f0684219cd31668a"/><file name="SanitizeDataProcessor.php" hash="e5a307fa1581515a1a36c836ac0988f9"/><file name="Serializer.php" hash="d9bf3442a79751932521d2a15f437bb0"/><file name="Stacktrace.php" hash="40206975c23c9007fcc640ece3b3963c"/><file name="Util.php" hash="217afbd25692fe3c9a9746fe9a1d866a"/><dir name="Breadcrumbs"><file name="ErrorHandler.php" hash="859b2ffe5d18bc1ff33ed64389c5d1a5"/><file name="MonologHandler.php" hash="c5880e1e9bee038bee075244a410015e"/></dir><dir name="data"><file name="cacert.pem" hash="5b7a16cb9dbb736910645c01b361baee"/></dir></dir></dir><dir name="skin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="pixlee"><file name="base.css" hash="22234fd8f1606d2d8a440d9a037c7fe4"/><file name="pixlee_logo_133x24.png" hash="af22b06f1fbffc0cf9e640926e59b736"/></dir></dir></dir></dir></dir></target></contents></package>