Betaout - Version 1.0.9

Version Notes

Helping Ecommerce Companies drive more sales and customer happiness.

Download this release

Release Info

Developer jitendra
Extension Betaout
Version 1.0.9
Comparing to
See all releases


Code changes from version 1.0.8 to 1.0.9

app/code/community/Betaout/Amplify/Model/Amplify.php CHANGED
@@ -35,6 +35,7 @@
35
  * amplify.to API
36
  */
37
  require_once('app/Mage.php');
 
38
  class Amplify {
39
  /*
40
  * the amplify ApiKey
@@ -133,7 +134,8 @@ class Amplify {
133
  'product_edit' => 'product/edit/',
134
  'product_delete' => 'product/remove/',
135
  'customer_action' => 'user/customer_activity/',
136
- 'order_update' => 'product/updateorder/'
 
137
  );
138
 
139
  /**
@@ -425,9 +427,9 @@ class Amplify {
425
  }
426
 
427
  public static $CURL_OPTS = array(
428
- CURLOPT_CONNECTTIMEOUT_MS => 2000,
429
  CURLOPT_RETURNTRANSFER => true,
430
- CURLOPT_TIMEOUT_MS => 2000,
431
  CURLOPT_USERAGENT => 'amplify-php-1.0',
432
  );
433
 
@@ -506,7 +508,6 @@ class Amplify {
506
 
507
  public function setOtt() {
508
  $this->ott = Mage::getModel('core/cookie')->get('amplifyUid');
509
- // print "\ottt = " . $this->ott. "\n";
510
  }
511
 
512
  public function getOtt() {
@@ -648,7 +649,6 @@ class Amplify {
648
  $argumentsArray = array('email' => $email, 'name' => $name, 'url' => $url, 'referer' => $referer);
649
  $response = $this->http_call('identify', $argumentsArray);
650
  if ($response['responseCode'] == '200') {
651
-
652
  Mage::getModel('core/cookie')->set('amplifyUid', $response['amplifySession'], time() + 604800, '/');
653
  // if (!isset($_COOKIE['amplifysid']))
654
  // setcookie('amplifysid', $response['amplifySession'], time() + 604800, '/');
@@ -709,8 +709,6 @@ class Amplify {
709
 
710
  public function update($email, $propetyArray) {
711
  $argumentsArray = array('email' => $email, 'properties' => $propetyArray);
712
- // print_r($argumentsArray);
713
- // print "\$argumentsArray = " . $argumentsArray . "\n";
714
 
715
  return $this->http_call('update', $argumentsArray);
716
  }
@@ -723,7 +721,7 @@ class Amplify {
723
  public function add($email, $propetyArray, $text = 0) {
724
  $argumentsArray = array('email' => $email, 'properties' => $propetyArray);
725
  if ($text)
726
- $argumentsArray = array('email' => $email, 'properties' => $propetyArray, 'property_force_data_type' => 'text');// if string
727
 
728
  return $this->http_call('add', $argumentsArray);
729
  }
@@ -798,6 +796,11 @@ class Amplify {
798
  return $currentURL;
799
  }
800
 
 
 
 
 
 
801
  }
802
 
803
  ?>
35
  * amplify.to API
36
  */
37
  require_once('app/Mage.php');
38
+
39
  class Amplify {
40
  /*
41
  * the amplify ApiKey
134
  'product_edit' => 'product/edit/',
135
  'product_delete' => 'product/remove/',
136
  'customer_action' => 'user/customer_activity/',
137
+ 'order_update' => 'product/updateorder/',
138
+ 'send_old_order' => 'user/send_old_order/'
139
  );
140
 
141
  /**
427
  }
428
 
429
  public static $CURL_OPTS = array(
430
+ CURLOPT_CONNECTTIMEOUT_MS => 3000,
431
  CURLOPT_RETURNTRANSFER => true,
432
+ CURLOPT_TIMEOUT_MS => 3000,
433
  CURLOPT_USERAGENT => 'amplify-php-1.0',
434
  );
435
 
508
 
509
  public function setOtt() {
510
  $this->ott = Mage::getModel('core/cookie')->get('amplifyUid');
 
511
  }
512
 
513
  public function getOtt() {
649
  $argumentsArray = array('email' => $email, 'name' => $name, 'url' => $url, 'referer' => $referer);
650
  $response = $this->http_call('identify', $argumentsArray);
651
  if ($response['responseCode'] == '200') {
 
652
  Mage::getModel('core/cookie')->set('amplifyUid', $response['amplifySession'], time() + 604800, '/');
653
  // if (!isset($_COOKIE['amplifysid']))
654
  // setcookie('amplifysid', $response['amplifySession'], time() + 604800, '/');
709
 
710
  public function update($email, $propetyArray) {
711
  $argumentsArray = array('email' => $email, 'properties' => $propetyArray);
 
 
712
 
713
  return $this->http_call('update', $argumentsArray);
714
  }
721
  public function add($email, $propetyArray, $text = 0) {
722
  $argumentsArray = array('email' => $email, 'properties' => $propetyArray);
723
  if ($text)
724
+ $argumentsArray = array('email' => $email, 'properties' => $propetyArray, 'property_force_data_type' => 'text'); // if string
725
 
726
  return $this->http_call('add', $argumentsArray);
727
  }
796
  return $currentURL;
797
  }
798
 
799
+ public function send_old_order($actionDescription) {
800
+ $argumentsArray = $actionDescription;
801
+ return $this->http_call('send_old_order', $argumentsArray);
802
+ }
803
+
804
  }
805
 
806
  ?>
app/code/community/Betaout/Amplify/Model/CronStatus.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Betaout_Amplify_Model_CronStatus
3
+ {
4
+
5
+ /**
6
+ * Options getter
7
+ *
8
+ * @return array
9
+ */
10
+ public function toOptionArray()
11
+ {
12
+ return array(
13
+ array('value' => false, 'label'=>Mage::helper('adminhtml')->__('NO')),
14
+ array('value' => true, 'label'=>Mage::helper('adminhtml')->__('YES')),
15
+ );
16
+ }
17
+
18
+ }
19
+
app/code/community/Betaout/Amplify/Model/Key.php CHANGED
@@ -3,6 +3,8 @@
3
  require_once 'Amplify.php';
4
  require_once('app/Mage.php');
5
 
 
 
6
  class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
7
  /* @var $this Betaout_Amplify_Model_Key */
8
 
@@ -15,12 +17,20 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
15
  public $allitems;
16
  public $checkstring;
17
  public $email = '';
 
 
 
18
 
19
  const XML_PATH_KEY = 'betaout_amplify_options/settings/amplify_key';
20
  const XML_PATH_SECRET = 'betaout_amplify_options/settings/amplify_secret';
21
  const XML_PATH_PROJECTID = 'betaout_amplify_options/settings/amplify_projectId';
 
22
  const MAIL_TO = 'raijiballia@gmail.com';
23
  const MAIL_SUB = 'Magento Error Reporter';
 
 
 
 
24
 
25
  public function __construct($key_string) {
26
  try {
@@ -29,7 +39,7 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
29
  $this->projectId = Mage::getStoreConfig(self::XML_PATH_PROJECTID);
30
  $this->verified = Mage::getStoreConfig('betaout_amplify_options/settings/amplify_verified');
31
  $this->amplify = new Amplify($this->key, $this->secret, $this->projectId);
32
- $this->amplify->identify($this->getCustomerIdentity());
33
  } catch (Exception $ex) {
34
 
35
  }
@@ -94,10 +104,15 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
94
  }
95
  $result = $this->amplify->verify();
96
  if ($result['responseCode'] == 200) {
 
 
 
 
 
97
  Mage::getModel('core/config')->saveConfig('betaout_amplify_options/settings/amplify_verified', TRUE);
98
  } else {
99
  Mage::getModel('core/config')->saveConfig('betaout_amplify_options/settings/amplify_verified', false);
100
- throw new Mage_Core_Exception("Configuration could not be saved. Check your key and secret.");
101
  }
102
  }
103
 
@@ -282,7 +297,11 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
282
  try {
283
  if ($this->verified) {
284
 
285
-
 
 
 
 
286
  try {
287
  $this->amplify->identify($this->getCustomerIdentity(), $custName);
288
  } catch (Exception $ex) {
@@ -292,33 +311,35 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
292
  'unique_id' => $this->getCustomerIdentity()));
293
 
294
 
295
- $c = Mage::getSingleton('customer/session')->getCustomer();
296
- $customer = Mage::getModel('customer/customer')->load($c->getId());
297
  $person = array();
298
- $person['WebId'] = $customer->getWebsiteId();
299
  $person['storeId'] = $customer->getStoreId();
300
- $email = $customer->getEmail();
301
- $custome = $customer->getAddresses();
302
-
303
- if (is_array($custome)) {
304
- foreach ($custome as $customer) {
305
-
306
- if (is_object($customer)) {
307
- $person['firstname'] = $customer->getFirstname();
308
- $person['lastname'] = $customer->getLastname();
309
-
310
- $person['postcode'] = $customer->getPostcode();
311
- $person['telephone'] = $customer->getTelephone();
312
- $person['fax'] = $customer->getfax();
313
- $person['customerId'] = $customer->getCustomerId();
314
- $person['company'] = $customer->getCompany();
315
- $person['region'] = $customer->getRegion();
316
- $person['street'] = $customer->getStreetFull();
317
- }
318
- }
 
 
319
  }
320
  $person = array_filter($person);
321
- $res = $this->amplify->add($email, $person, 1);
 
322
  //$customerAddressId = Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping();
323
  // if ($customerAddressId){
324
  // $address = Mage::getModel('customer/address')->load($customerAddressId);
@@ -358,10 +379,12 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
358
  $customer = Mage::getModel('customer/customer')->load($c->getId());
359
 
360
 
361
- return $customer->getEmail();
362
  } else {
363
- return Mage::getModel('core/cookie')->get('amplify_email');
364
  }
 
 
365
  } catch (Exception $ex) {
366
 
367
  }
@@ -370,10 +393,11 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
370
  public function getAmplifyEventOrder($evnt) {
371
  try {
372
  if ($this->verified) {
373
-
 
374
  $order = $evnt->getEvent()->getOrder();
375
  $quote = $order->getQuote();
376
-
377
  $customer_id = $order->getCustomerId();
378
  $customer = Mage::getModel('customer/customer')->load($customer_id);
379
  $customer_email = $customer->getEmail();
@@ -389,7 +413,6 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
389
 
390
  $skus[] = $product->getSku();
391
  }
392
-
393
  $order_date = $quote->getUpdatedAt();
394
  $order_date = str_replace(' ', 'T', $order_date);
395
 
@@ -397,41 +420,17 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
397
 
398
  $person = array();
399
  $person = $this->getCustomereventInfo($customer);
400
-
401
  $additional = array();
402
  $additional['lastOrder'] = $order_date;
403
  $additional['skus'] = $skus;
404
- // $this->eventPerson($person, $additional);
405
- // $this->event_revenue($customer_email, $revenue);
406
-
407
  $this->event('place_order_clicked', array('skus' => $skus,
408
- 'order_date' => $order_date,
409
- 'order_total' => $revenue,
410
- 'unique_id' => $this->getCustomerIdentity()));
411
-
412
- //
413
- // $c = Mage::getSingleton('customer/session')->getCustomer();
414
- // $customer = Mage::getModel('customer/customer')->load($c->getId());
415
- //
416
- // $email = $customer->getEmail();
417
- // $customer = $customer->getAddresses();
418
- //
419
- // if (is_array($customer)) {
420
- // $ekey = array_keys($customer);
421
- // $customer = $customer[$ekey[0]];
422
- // }
423
- // $person['firstname'] = $customer->getFirstname();
424
- // $person['lastname'] = $customer->getLastname();
425
- //
426
- // $person['postcode'] = $customer->getPostcode();
427
- // $person['telephone'] = $customer->getTelephone();
428
- // $person['fax'] = $customer->getfax();
429
- // $person['regionId'] = $customer->getRegionId();
430
- // $street = $customer->getStreet();
431
- // $person['street'] = $street[0];
432
- // $person['customerId'] = $customer->getCustomerId();
433
- // $person = array_filter($person);
434
- // $res = $this->amplify->update($email, $person);
435
  }
436
  } catch (Exception $ex) {
437
 
@@ -440,26 +439,27 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
440
 
441
  public function getamplifyEventCustomerSave($evnt) {
442
  try {
 
443
  if ($this->verified) {
444
- // $c = Mage::getSingleton('customer/session')->getCustomer();
445
- // $customer = Mage::getModel('customer/customer')->load($c->getId());
446
- // $customer = $customer->getAddresses();
447
- //
448
- // if (is_array($customer)) {
449
- // $ekey = array_keys($customer);
450
- // $customer = $customer[$ekey[0]];
451
- // }
452
- // $person['firstname'] = $customer->getFirstname();
453
- // $person['lastname'] = $customer->getLastname();
454
- //
455
- // $person['postcode'] = $customer->getPostcode();
456
- // $person['telephone'] = $customer->getTelephone();
457
- // $person['fax'] = $customer->getfax();
458
- // $person['regionId'] = $customer->getRegionId();
459
- // $street = $customer->getStreet();
460
- // $person['street'] = $street[0];
461
- // $person['customer_id'] = $customer->getCustomer_id();
462
- // $res = $this->amplify->update($customer->getEmail(), $person);
463
  }
464
  } catch (Exception $ex) {
465
 
@@ -698,36 +698,47 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
698
  public function getAmplifyOrderSuccessPageView(Varien_Event_Observer $evnt) {
699
  try {
700
  if ($this->verified) {
701
- $c = Mage::getSingleton('customer/session')->getCustomer();
702
- if (is_object($c)) {
703
- $customer = Mage::getModel('customer/customer')->load($c->getId());
704
- if (is_object($c)) {
705
- $email = $customer->getEmail();
706
- $customer = $customer->getAddresses();
707
-
708
- if (is_array($customer)) {
709
- $ekey = array_keys($customer);
710
- $customer = $customer[$ekey[0]];
711
- }
712
- if (is_object($customer)) {
713
- $person['firstname'] = $customer->getFirstname();
714
- $person['lastname'] = $customer->getLastname();
715
- $person['postcode'] = $customer->getPostcode();
716
- $person['telephone'] = $customer->getTelephone();
717
- $person['fax'] = $customer->getfax();
718
- $person['regionId'] = $customer->getRegionId();
719
- $street = $customer->getStreet();
720
- $person['street'] = $street[0];
721
- $person['customerId'] = $customer->getCustomerId();
722
- $res = $this->amplify->update($email, $person);
723
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
724
  }
725
  }
726
 
727
 
728
- $order_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
729
- $order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
730
- // $items = $order->getAllItems();
731
  $items = $order->getAllVisibleItems();
732
  $itemcount = count($items);
733
  $name = array();
@@ -808,17 +819,15 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
808
  public function getAmplify_checkout_allow_guest($evnt) {
809
  try {
810
  if ($this->verified) {
 
 
811
 
812
- $mageObj = Mage::getSingleton('customer/session')->isLoggedIn();
813
- $mageObj = Mage::getSingleton('core/session');
814
- $visitor_data = $mageObj->visitor_data;
815
  $getquote = $evnt->getQuote();
 
816
  $data = array_filter($getquote->getData());
817
  Mage::getModel('core/cookie')->set('amplify_email', $data['customer_email']);
818
-
819
-
820
  $person = array();
821
- $person['WebId'] = Mage::app()->getWebsite()->getId();
822
  $person['storeId'] = Mage::app()->getStore()->getId();
823
  $person = array_filter($person);
824
  $this->amplify->identify($data['customer_email'], $data['customer_firstname']);
@@ -914,8 +923,10 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
914
 
915
  public function getAmplifyCatalogProductView(Varien_Event_Observer $evnt) {
916
  try {
 
917
  if ($this->verified) {
918
 
 
919
  $product = $evnt->getEvent()->getProduct();
920
  $catCollection = $product->getCategoryCollection();
921
  $categs = $catCollection->exportToArray();
@@ -1173,4 +1184,275 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
1173
  return $this;
1174
  }
1175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1176
  }
 
 
3
  require_once 'Amplify.php';
4
  require_once('app/Mage.php');
5
 
6
+ //30 8 * * 6 home/path/to/command/the_command.sh >/dev/null
7
+ //curl -s -o /dev/null http://www.YOURDOMAIN.com/PATH_TO_MAGENTO/cron.php > /dev/null
8
  class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
9
  /* @var $this Betaout_Amplify_Model_Key */
10
 
17
  public $allitems;
18
  public $checkstring;
19
  public $email = '';
20
+ public $installDate;
21
+ public $_process_date;
22
+ public $_schedule = '0 0 0 1 12 4090';
23
 
24
  const XML_PATH_KEY = 'betaout_amplify_options/settings/amplify_key';
25
  const XML_PATH_SECRET = 'betaout_amplify_options/settings/amplify_secret';
26
  const XML_PATH_PROJECTID = 'betaout_amplify_options/settings/amplify_projectId';
27
+ const XML_PATH_SEND_ORDER_STATUS = 'betaout_amplify_options/order/status1';
28
  const MAIL_TO = 'raijiballia@gmail.com';
29
  const MAIL_SUB = 'Magento Error Reporter';
30
+ const XML_PATH_MAX_RUNNING_TIME = 'system/cron/max_running_time';
31
+ const XML_PATH_EMAIL_TEMPLATE = 'system/cron/error_email_template';
32
+ const XML_PATH_EMAIL_IDENTITY = 'system/cron/error_email_identity';
33
+ const XML_PATH_EMAIL_RECIPIENT = 'system/cron/error_email';
34
 
35
  public function __construct($key_string) {
36
  try {
39
  $this->projectId = Mage::getStoreConfig(self::XML_PATH_PROJECTID);
40
  $this->verified = Mage::getStoreConfig('betaout_amplify_options/settings/amplify_verified');
41
  $this->amplify = new Amplify($this->key, $this->secret, $this->projectId);
42
+ // $this->_process_date = Mage::getStoreConfig('betaout_amplify_options/settings/_process_date');
43
  } catch (Exception $ex) {
44
 
45
  }
104
  }
105
  $result = $this->amplify->verify();
106
  if ($result['responseCode'] == 200) {
107
+ if (!Mage::getStoreConfig('betaout_amplify_options/settings/beta_start_date')) {
108
+ Mage::getModel('core/config')->saveConfig('betaout_amplify_options/settings/beta_start_date', gmdate('Y-m-d H:i:s'));
109
+ Mage::getModel('core/config')->saveConfig('betaout_amplify_options/order/cron_setting', '*/5 * * * *');
110
+ Mage::getModel('core/config')->saveConfig('betaout_amplify_options/settings/_process_date', gmdate('Y-m-d H:i:s'));
111
+ }
112
  Mage::getModel('core/config')->saveConfig('betaout_amplify_options/settings/amplify_verified', TRUE);
113
  } else {
114
  Mage::getModel('core/config')->saveConfig('betaout_amplify_options/settings/amplify_verified', false);
115
+ throw new Mage_Core_Exception("Configuration could not be saved. Check your key and secret.$result");
116
  }
117
  }
118
 
297
  try {
298
  if ($this->verified) {
299
 
300
+ $c = Mage::getSingleton('customer/session')->getCustomer();
301
+ $customer = Mage::getModel('customer/customer')->load($c->getId());
302
+ $email = $customer->getEmail();
303
+ $custName = $customer->getFirstname();
304
+ $custName = $custName . " " . $customer->getLastname();
305
  try {
306
  $this->amplify->identify($this->getCustomerIdentity(), $custName);
307
  } catch (Exception $ex) {
311
  'unique_id' => $this->getCustomerIdentity()));
312
 
313
 
314
+
 
315
  $person = array();
316
+ $person['webId'] = $customer->getWebsiteId();
317
  $person['storeId'] = $customer->getStoreId();
318
+ $person['groupId]'] = $customer->getGroupId();
319
+ $res = $this->amplify->add($email, $person, 1);
320
+ $person = array();
321
+ $customerAddressId = $c->getDefaultShipping();
322
+ if ($customerAddressId) {
323
+ $customer = Mage::getModel('customer/address')->load($customerAddressId);
324
+ }
325
+
326
+
327
+
328
+ if (is_object($customer)) {
329
+ $person['firstname'] = $customer->getFirstname();
330
+ $person['lastname'] = $customer->getLastname();
331
+
332
+ $person['postcode'] = $customer->getPostcode();
333
+ $person['telephone'] = $customer->getTelephone();
334
+ $person['fax'] = $customer->getfax();
335
+ $person['customerId'] = $customer->getCustomerId();
336
+ $person['company'] = $customer->getCompany();
337
+ // $person['region'] = $customer->getRegion();
338
+ $person['street'] = $customer->getStreetFull();
339
  }
340
  $person = array_filter($person);
341
+ $res = $this->amplify->update($email, $person);
342
+
343
  //$customerAddressId = Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping();
344
  // if ($customerAddressId){
345
  // $address = Mage::getModel('customer/address')->load($customerAddressId);
379
  $customer = Mage::getModel('customer/customer')->load($c->getId());
380
 
381
 
382
+ $email = $customer->getEmail();
383
  } else {
384
+ $email = Mage::getModel('core/cookie')->get('amplify_email');
385
  }
386
+ $this->amplify->identify($email);
387
+ return $email;
388
  } catch (Exception $ex) {
389
 
390
  }
393
  public function getAmplifyEventOrder($evnt) {
394
  try {
395
  if ($this->verified) {
396
+ $this->event('place_order_clicked');
397
+ return 1;
398
  $order = $evnt->getEvent()->getOrder();
399
  $quote = $order->getQuote();
400
+ //
401
  $customer_id = $order->getCustomerId();
402
  $customer = Mage::getModel('customer/customer')->load($customer_id);
403
  $customer_email = $customer->getEmail();
413
 
414
  $skus[] = $product->getSku();
415
  }
 
416
  $order_date = $quote->getUpdatedAt();
417
  $order_date = str_replace(' ', 'T', $order_date);
418
 
420
 
421
  $person = array();
422
  $person = $this->getCustomereventInfo($customer);
 
423
  $additional = array();
424
  $additional['lastOrder'] = $order_date;
425
  $additional['skus'] = $skus;
426
+ $this->eventPerson($person, $additional);
427
+ $this->event_revenue($customer_email, $revenue);
428
+ $skus = 0;
429
  $this->event('place_order_clicked', array('skus' => $skus,
430
+ // 'order_date' => $order_date,
431
+ // 'order_total' => $revenue,
432
+ // 'unique_id' => $this->getCustomerIdentity()
433
+ ));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
434
  }
435
  } catch (Exception $ex) {
436
 
439
 
440
  public function getamplifyEventCustomerSave($evnt) {
441
  try {
442
+ return 1;
443
  if ($this->verified) {
444
+ $c = Mage::getSingleton('customer/session')->getCustomer();
445
+ $customer = Mage::getModel('customer/customer')->load($c->getId());
446
+ $customer = $customer->getAddresses();
447
+
448
+ if (is_array($customer)) {
449
+ $ekey = array_keys($customer);
450
+ $customer = $customer[$ekey[0]];
451
+ }
452
+ $person['firstname'] = $customer->getFirstname();
453
+ $person['lastname'] = $customer->getLastname();
454
+
455
+ $person['postcode'] = $customer->getPostcode();
456
+ $person['telephone'] = $customer->getTelephone();
457
+ $person['fax'] = $customer->getfax();
458
+ $person['regionId'] = $customer->getRegionId();
459
+ $street = $customer->getStreet();
460
+ $person['street'] = $street[0];
461
+ $person['customer_id'] = $customer->getCustomer_id();
462
+ $res = $this->amplify->update($customer->getEmail(), $person);
463
  }
464
  } catch (Exception $ex) {
465
 
698
  public function getAmplifyOrderSuccessPageView(Varien_Event_Observer $evnt) {
699
  try {
700
  if ($this->verified) {
701
+
702
+ $order_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
703
+ $order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
704
+
705
+
706
+ $customerAddressId = Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping();
707
+ if ($customerAddressId) {
708
+ $customer = Mage::getModel('customer/address')->load($customerAddressId);
709
+
710
+ if (is_object($customer)) {
711
+ $person['firstname'] = $customer->getFirstname();
712
+ $person['lastname'] = $customer->getLastname();
713
+
714
+ $person['postcode'] = $customer->getPostcode();
715
+ $person['telephone'] = $customer->getTelephone();
716
+ $person['fax'] = $customer->getfax();
717
+ $person['customerId'] = $customer->getCustomerId();
718
+ $person['company'] = $customer->getCompany();
719
+ // $person['region'] = $customer->getRegion();
720
+ $person['street'] = $customer->getStreetFull();
721
+ }
722
+ $person = array_filter($person);
723
+ $res = $this->amplify->update($email, $person);
724
+ } else {
725
+ $customer = $order->getShippingAddress();
726
+ if (is_object($customer)) {
727
+ $person['firstname'] = $customer->getFirstname();
728
+ $person['lastname'] = $customer->getLastname();
729
+
730
+ $person['postcode'] = $customer->getPostcode();
731
+ $person['telephone'] = $customer->getTelephone();
732
+ $person['fax'] = $customer->getfax();
733
+ $person['customerId'] = $customer->getCustomerId();
734
+ $person['company'] = $customer->getCompany();
735
+ // $person['region'] = $customer->getRegion();
736
+ $person['street'] = $customer->getStreetFull();
737
  }
738
  }
739
 
740
 
741
+
 
 
742
  $items = $order->getAllVisibleItems();
743
  $itemcount = count($items);
744
  $name = array();
819
  public function getAmplify_checkout_allow_guest($evnt) {
820
  try {
821
  if ($this->verified) {
822
+ // $mageObj = Mage::getSingleton('core/session');
823
+ // $visitor_data = $mageObj->visitor_data;
824
 
 
 
 
825
  $getquote = $evnt->getQuote();
826
+ // $checkout = Mage::getSingleton('checkout/type_onepage');
827
  $data = array_filter($getquote->getData());
828
  Mage::getModel('core/cookie')->set('amplify_email', $data['customer_email']);
 
 
829
  $person = array();
830
+ $person['webId'] = Mage::app()->getWebsite()->getId();
831
  $person['storeId'] = Mage::app()->getStore()->getId();
832
  $person = array_filter($person);
833
  $this->amplify->identify($data['customer_email'], $data['customer_firstname']);
923
 
924
  public function getAmplifyCatalogProductView(Varien_Event_Observer $evnt) {
925
  try {
926
+
927
  if ($this->verified) {
928
 
929
+
930
  $product = $evnt->getEvent()->getProduct();
931
  $catCollection = $product->getCategoryCollection();
932
  $categs = $catCollection->exportToArray();
1184
  return $this;
1185
  }
1186
 
1187
+ public function sendData() {
1188
+ Mage::app()->getCacheInstance()->cleanType('config');
1189
+ $sendOrderFlag = Mage::getStoreConfig(self::XML_PATH_SEND_ORDER_STATUS);
1190
+ if ($sendOrderFlag && $this->verified) {
1191
+ // $startTime = microtime(true);
1192
+ $processDate = Mage::getStoreConfig('betaout_amplify_options/settings/_process_date');
1193
+ $orders = Mage::getModel('sales/order')->getCollection()
1194
+ // ->addAttributeToSelect(array('increment_id',base_grand_total))
1195
+ ->addAttributeToSelect('customer_email')
1196
+ ->addAttributeToSelect('customer_firstname')
1197
+ ->addAttributeToSelect('customer_lastname')
1198
+ ->addAttributeToSelect('shipping_description')
1199
+ ->addAttributeToSelect('order_currency_code')
1200
+ ->addAttributeToSelect('increment_id')->
1201
+ addAttributeToSelect('grand_total')->
1202
+ addAttributeToSelect('subtotal')->
1203
+ addAttributeToSelect('remote_ip')->
1204
+ addAttributeToSelect('store_id')->
1205
+ addAttributeToSelect('discount_amount')->
1206
+ addAttributeToSelect('coupon_code')->
1207
+ // addAttributeToSelect('total_qty_ordered')->
1208
+ addAttributeToSelect('shipping_address_id')->
1209
+ addAttributeToSelect('billing_address_id')->
1210
+ addAttributeToSelect('created_at')->
1211
+ addAttributeToSelect('shipping_incl_tax')->
1212
+ addAttributeToSelect('created_at')
1213
+ ->addAttributeToSelect('status')
1214
+ ->addAttributeToSort('created_at', 'DESC')
1215
+ ->addAttributeToFilter('created_at', array('lt' => $processDate, 'date' => true))
1216
+ ->addAttributeToFilter('status', array('eq' => Mage_Sales_Model_Order::STATE_COMPLETE))
1217
+ // ->addAttributeToFilter('created_at', array('from' => $fromDate, 'to' => $toDate))
1218
+ ->setPageSize(10);
1219
+
1220
+ // $pages = $orders->getLastPageNumber();
1221
+ $currentPage = 1;
1222
+ // if ($currentPage >= $pages) {
1223
+ // $processDate = gmdate('Y-m-d H:i:s', strtotime($processDate, '-1 days'));
1224
+ // }
1225
+ // do {
1226
+ $orders->setCurPage($currentPage);
1227
+ $orders->load();
1228
+
1229
+ $count = count($orders);
1230
+ if ($count <= 0)
1231
+ Mage::getModel('core/config')->saveConfig('betaout_amplify_options/order/cron_setting', $this->_schedule);
1232
+
1233
+
1234
+ foreach ($orders as $order) {
1235
+ $order_id = $order->getIncrementId();
1236
+ $order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
1237
+ $items = $order->getAllVisibleItems();
1238
+ $itemcount = count($items);
1239
+ $name = array();
1240
+ $unitPrice = array();
1241
+ $sku = array();
1242
+ $ids = array();
1243
+ $qty = array();
1244
+ $i = 0;
1245
+ $actionData = array();
1246
+
1247
+ foreach ($items as $itemId => $item) {
1248
+
1249
+ $product = $item;
1250
+
1251
+ $product = Mage::getModel('catalog/product')->load($product->getProductId());
1252
+ $categoryIds = $product->getCategoryIds();
1253
+ $cateHolder = array();
1254
+ foreach ($categoryIds as $cat) {
1255
+ $cateName = Mage::getModel('catalog/category')->load($cat)->getName();
1256
+ $cateHolder[] = $cateName;
1257
+ }
1258
+ $categoryName = implode(",", $cateHolder);
1259
+ $actionData[$i]['productId'] = $product->getId();
1260
+ $actionData[$i]['productTitle'] = $product->getName();
1261
+ $actionData[$i]['sku'] = $product->getSku();
1262
+ $actionData[$i]['price'] = $product->getPrice();
1263
+ $actionData[$i]['currency'] = Mage::app()->getStore()->getBaseCurrencyCode();
1264
+ $actionData[$i]['specialPrice'] = $product->getFinalPrice();
1265
+ $actionData[$i]['status'] = $product->getStatus();
1266
+ $actionData[$i]['productPictureUrl'] = $product->getImageUrl();
1267
+ $actionData[$i]['pageUrl'] = $product->getProductUrl();
1268
+ $actionData[$i]['weight'] = $product->getWeight();
1269
+ $actionData[$i]['stockAvailability'] = $stock_data ? $stock_data : 2;
1270
+ $actionData[$i]['size'] = $product->getResource()->getAttribute('size') ? $product->getAttributeText('size') : false;
1271
+ $actionData[$i]['color'] = $product->getResource()->getAttribute('color') ? $product->getAttributeText('color') : false;
1272
+ $actionData[$i]['brandName'] = $product->getResource()->getAttribute('manufacturer') ? $product->getAttributeText('manufacturer') : false;
1273
+ $actionData[$i]['qty'] = (int) $item->getQtyOrdered();
1274
+ $actionData[$i]['category'] = $categoryName;
1275
+ // $actionData[$i]['couponCode'] = Mage::getSingleton('checkout/session')->getQuote()->getCouponCode() ;
1276
+ $actionData[$i]['discount'] = $item->getDiscountAmount();
1277
+ // $actionData[$i]['discount'] = $item->getBaseDiscountAmount();
1278
+ $i++;
1279
+ }
1280
+
1281
+ $cart = Mage::getSingleton('checkout/cart');
1282
+ $TotalPrice = $order->getGrandTotal();
1283
+ $totalShippingPrice = $order->getShippingAmount();
1284
+ $subTotalPrice = $TotalPrice - $totalShippingPrice;
1285
+ $subTotalPrice = $order->getSubtotal();
1286
+ $orderInfo["subtotalPrice"] = $subTotalPrice;
1287
+ $orderInfo["totalPrice"] = $TotalPrice;
1288
+ $orderInfo["totalShippingPrice"] = $totalShippingPrice;
1289
+ $orderInfo['orderId'] = $order_id;
1290
+ $orderInfo['ip'] = $order->getRemoteIp();
1291
+ $orderInfo['createdTime'] = $processDate = $order->getCreatedAt();
1292
+ $orderInfo['promocode'] = $order->getCouponCode();
1293
+ $orderInfo['totalDiscount'] = abs($order->getDiscountAmount());
1294
+ // $orderInfo['DiscountPer'] = abs($order->getDiscountPercent());
1295
+ // $orderInfo['DiscountDesc'] = $order->getDiscountDescription();
1296
+ $orderInfo['currency'] = $order->getOrderCurrencyCode();
1297
+ // $orderInfo['abandonedCheckoutUrl'] = Mage::getUrl('checkout/cart');
1298
+ $orderInfo['totalTaxes'] = $order->getShippingTaxAmount();
1299
+ $orderInfo['ordStatus'] = $order->getStatus();
1300
+
1301
+ // $orderInfo['totalQty'] = $order->totalQty();
1302
+
1303
+ $actionDescription = array(
1304
+ 'action' => 'purchased',
1305
+ 'email' => $order->getCustomerEmail(),
1306
+ 'cartInfo' => array_filter($orderInfo),
1307
+ 'products' => array_filter($actionData)
1308
+ );
1309
+ $res = $this->amplify->send_old_order($actionDescription);
1310
+ }
1311
+ Mage::getConfig()->saveConfig('betaout_amplify_options/settings/_process_date', $processDate)->cleanCache();
1312
+ Mage::app()->reinitStores();
1313
+ Mage::getModel('core/config')->saveConfig('betaout_amplify_options/settings/_process_date', $processDate);
1314
+ // Mage::getModel('core/variable')->loadByCode('myproject_next_api_id');
1315
+ // $endTime = microtime(true);
1316
+ // $currentPage++;
1317
+ // //clear collection and free memory
1318
+ // $orders->clear();
1319
+ // } while ($currentPage <= $pages);
1320
+ //
1321
+ }
1322
+ }
1323
+
1324
+ public function disableModuless($moduleName = "Betaout_Amplify") {
1325
+ // Disable the module itself
1326
+ $nodePath = "modules/$moduleName/active";
1327
+ if (Mage::helper('core/data')->isModuleEnabled($moduleName)) {
1328
+ Mage::getConfig()->setNode($nodePath, 'false', true);
1329
+ }
1330
+
1331
+ // Disable its output as well (which was already loaded)
1332
+ $outputPath = "advanced/modules_disable_output/$moduleName";
1333
+ if (!Mage::getStoreConfig($outputPath)) {
1334
+ Mage::app()->getStore()->setConfig($outputPath, true);
1335
+ }
1336
+ // ->addAttributeToSort('order', 'ASC')
1337
+ // $customerCollection = Mage::getModel('customer/customer')->getCollection();
1338
+ // $customerCollection->setPageSize($limit);
1339
+ // $customerCollection->setCurPage(1);
1340
+ }
1341
+
1342
+ public function getCustomerssss() {
1343
+ $customerCollection = Mage::getModel('customer/customer')->getCollection(); //Fetch all Customers from magento
1344
+ $defaultData = array();
1345
+ $finalData = array();
1346
+ foreach ($customerCollection as $cust) {
1347
+ $data = array();
1348
+ $customer = Mage::getModel('customer/customer')->load($cust->getId()); // Get Customer info from Customer Id
1349
+ $defaultData = $customer->getData(); //Get Customer data
1350
+
1351
+ if (array_key_exists('default_billing', $defaultData)) {
1352
+ $billingAddress = Mage::getModel('customer/address')->load($defaultData['default_billing']);
1353
+ $data['default_billing'] = $billingAddress->getData();
1354
+ }
1355
+
1356
+ if (array_key_exists('default_shipping', $defaultData)) {
1357
+ $shippingAddress = Mage::getModel('customer/address')->load($defaultData['default_shipping']);
1358
+ $data['default_shipping'] = $shippingAddress->getData();
1359
+ }
1360
+
1361
+ $finalData[] = array_merge($customer->getData(), $data);
1362
+ }
1363
+ return $finalData;
1364
+ }
1365
+
1366
+ public function updateIndexss() {
1367
+ $productsCollection = Mage::getModel('catalog/product')->getCollection()
1368
+ ->addAttributeToSelect(array('name', 'image', 'url_key', 'price', 'visibility'));
1369
+
1370
+ $productsCollection->setPageSize(100);
1371
+
1372
+ $pages = $productsCollection->getLastPageNumber();
1373
+ $currentPage = 1;
1374
+
1375
+ do {
1376
+ $productsCollection->setCurPage($currentPage);
1377
+ $productsCollection->load();
1378
+
1379
+ foreach ($productsCollection as $_product) {
1380
+
1381
+ $insertData = array(
1382
+ 'entity_id' => $_product->getId(),
1383
+ 'title' => $_product->getName(),
1384
+ 'image' => $_product->getImage(),
1385
+ 'url' => $_product->getUrlKey(),
1386
+ 'price' => $_product->getFinalPrice(),
1387
+ );
1388
+ //
1389
+ // $this->_getWriteAdapter()->insertOnDuplicate(
1390
+ // $this->getTable('atwix_sonar/suggestions'), $insertData, array('title', 'image', 'url', 'price')
1391
+ // );
1392
+ }
1393
+
1394
+ $currentPage++;
1395
+ //clear collection and free memory
1396
+ $productsCollection->clear();
1397
+ } while ($currentPage <= $pages);
1398
+
1399
+
1400
+
1401
+
1402
+ /**
1403
+ * $pages = $productsCollection->getLastPageNumber();
1404
+ for($currentPage = 1; $currentPage <= $pages; $currentPage++ {
1405
+ __ $productsCollection->setCurPage($currentPage);
1406
+ __ foreach ($productsCollection as $_product) {
1407
+ ____ // do things
1408
+ __ }
1409
+ __ $productsCollection->clear();
1410
+ }
1411
+ */
1412
+ /*
1413
+ * fech cart info
1414
+ * $collection = Mage::getResourceModel('reports/quote_collection');
1415
+ $collection->prepareForAbandonedReport();
1416
+ $output = $collection->load()->toArray();
1417
+
1418
+ */
1419
+ }
1420
+
1421
+ protected function _prepareCollectionssss() {
1422
+ $customer = Mage::registry('current_customer');
1423
+ $storeIds = Mage::app()->getWebsite($this->getWebsiteId())->getStoreIds();
1424
+
1425
+ $quote = Mage::getModel('sales/quote')
1426
+ ->setSharedStoreIds($storeIds)
1427
+ ->loadByCustomer($customer);
1428
+
1429
+ if ($quote) {
1430
+ $collection = $quote->getItemsCollection(false);
1431
+ } else {
1432
+ $collection = new Varien_Data_Collection();
1433
+ }
1434
+
1435
+ $collection->addFieldToFilter('parent_item_id', array('null' => true));
1436
+
1437
+ $this->setCollection($collection);
1438
+
1439
+ return parent::_prepareCollection();
1440
+ }
1441
+
1442
+ function getAllStoreIdsss() {
1443
+
1444
+ //How to get all Store Ids in Magento
1445
+ $allStores = Mage::app()->getStores();
1446
+ foreach ($allStores as $_eachStoreId => $val) {
1447
+ $_storeCode = Mage::app()->getStore($_eachStoreId)->getCode();
1448
+ $_storeName = Mage::app()->getStore($_eachStoreId)->getName();
1449
+ $_storeId = Mage::app()->getStore($_eachStoreId)->getId();
1450
+ echo $_storeId;
1451
+ echo $_storeCode;
1452
+ echo $_storeName;
1453
+ }
1454
+ }
1455
+
1456
  }
1457
+ ?>
1458
+
app/code/community/Betaout/Amplify/Model/magentoGetOrderByUserId.php ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * To change this license header, choose License Headers in Project Properties.
5
+ * To change this template file, choose Tools | Templates
6
+ * and open the template in the editor.
7
+ */
8
+ chdir(dirname(__FILE__));
9
+ echo "running";
10
+ echo "111111111111111111111111111";
11
+ require 'app/Mage.php';
12
+ echo "433333333333333333333";
13
+ if (!Mage::isInstalled()) {
14
+ echo "Application is not installed yet, please complete install wizard first.";
15
+ exit;
16
+ }
17
+
18
+
19
+ umask( 0 );
20
+ Mage :: app( "default" );
21
+ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
22
+
23
+ /* Get the customer data */
24
+ $customer = Mage::getSingleton('customer/session')->getCustomer();
25
+ /* Get the customer's email address */
26
+ $customer_email = $customer->getEmail();
27
+
28
+ }
29
+
30
+ $customer_email='raviraz@gmail.com';
31
+
32
+ $collection = Mage::getModel('sales/order')
33
+ ->getCollection()
34
+ ->addAttributeToFilter('customer_email',array('like'=>$customer_email));
35
+
36
+ foreach($collection as $order){
37
+ //do something
38
+ $order_id = $order->getId();
39
+
40
+
41
+
42
+ $order = Mage::getModel("sales/order")->load($order_id); //load order by order id
43
+
44
+ $ordered_items = $order->getAllItems();
45
+
46
+ foreach($ordered_items as $item){ //item detail
47
+
48
+ echo $item->getItemId(); //product id
49
+
50
+ echo $item->getSku();
51
+ echo $item->getQtyOrdered(); //ordered qty of item
52
+
53
+ echo $item->getName();
54
+
55
+ }
56
+ }
57
+
58
+
59
+
60
+ //require_once('app/Mage.php');
61
+ //Mage::app();
62
+ //
63
+ //$orders = Mage::getModel('sales/order')->getCollection()
64
+ // ->addFieldToFilter('status', 'complete')
65
+ // ->addAttributeToSelect('customer_email')
66
+ // ;
67
+ //foreach ($orders as $order) {
68
+ // $email = $order->getCustomerEmail();
69
+ // echo $email . "\n";
70
+ //}
71
+
72
+
73
+
74
+
75
+ /* Format our dates */
76
+ $fromDate = date('Y-m-d H:i:s', strtotime($fromDate));
77
+ $toDate = date('Y-m-d H:i:s', strtotime($toDate));
78
+
79
+ /* Get the collection */
80
+ $orders = Mage::getModel('sales/order')->getCollection()
81
+ ->addAttributeToFilter('created_at', array('from'=>$fromDate, 'to'=>$toDate))
82
+ ->addAttributeToFilter('status', array('eq' => Mage_Sales_Model_Order::STATE_COMPLETE));
app/code/community/Betaout/Amplify/etc/config.xml CHANGED
@@ -31,7 +31,7 @@
31
  </helpers>
32
 
33
  <events>
34
- <checkout_cart_add_product_complete>
35
  <observers>
36
  <amplify_add_to_cart>
37
  <type>singleton</type>
@@ -173,7 +173,7 @@
173
  </sales_quote_remove_item>
174
  </observers>
175
  </sales_quote_remove_item>
176
- <!-- <checkout_cart_save_after>
177
  <observers>
178
  <checkout_cart_save_after>
179
  <type>singleton</type>
@@ -182,7 +182,7 @@
182
  </checkout_cart_save_after>
183
  </observers>
184
  </checkout_cart_save_after>-->
185
- <!-- <checkout_cart_update_items_before>
186
  <observers>
187
  <wishlist>
188
  <class>Betaout_Amplify_Model_Key</class>
@@ -229,7 +229,7 @@
229
  </sales_order_place_after>
230
 
231
 
232
- <!-- <sales_order_place_before>
233
  <observers>
234
  <amplify_customer_register_from_checkout>
235
  <type>singleton</type>
@@ -247,7 +247,7 @@
247
  </amplify_customer_register_success>
248
  </observers>
249
  </customer_register_success>
250
- <!-- <checkout_cart_add_product_complete>
251
  <observers>
252
  <amplify_add_to_cart>
253
  <type>singleton</type>
@@ -336,7 +336,7 @@
336
  </amplify_sales_quote_save_after>
337
  </observers>
338
  </sales_quote_save_after>
339
- <!-- <sales_quote_save_before>
340
  <observers>
341
  <amplify_sales_quote_save_before>
342
  <type>singleton</type>
@@ -440,4 +440,35 @@
440
  </catalog_product_edit_action>
441
  </events>
442
  </adminhtml>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
443
  </config>
31
  </helpers>
32
 
33
  <events>
34
+ <checkout_cart_add_product_complete>
35
  <observers>
36
  <amplify_add_to_cart>
37
  <type>singleton</type>
173
  </sales_quote_remove_item>
174
  </observers>
175
  </sales_quote_remove_item>
176
+ <!-- <checkout_cart_save_after>
177
  <observers>
178
  <checkout_cart_save_after>
179
  <type>singleton</type>
182
  </checkout_cart_save_after>
183
  </observers>
184
  </checkout_cart_save_after>-->
185
+ <!-- <checkout_cart_update_items_before>
186
  <observers>
187
  <wishlist>
188
  <class>Betaout_Amplify_Model_Key</class>
229
  </sales_order_place_after>
230
 
231
 
232
+ <!-- <sales_order_place_before>
233
  <observers>
234
  <amplify_customer_register_from_checkout>
235
  <type>singleton</type>
247
  </amplify_customer_register_success>
248
  </observers>
249
  </customer_register_success>
250
+ <!-- <checkout_cart_add_product_complete>
251
  <observers>
252
  <amplify_add_to_cart>
253
  <type>singleton</type>
336
  </amplify_sales_quote_save_after>
337
  </observers>
338
  </sales_quote_save_after>
339
+ <!-- <sales_quote_save_before>
340
  <observers>
341
  <amplify_sales_quote_save_before>
342
  <type>singleton</type>
440
  </catalog_product_edit_action>
441
  </events>
442
  </adminhtml>
443
+ <default>
444
+ <betaout_amplify_options>
445
+ <order>
446
+ <cron_setting>*/1 * * * *</cron_setting>
447
+ </order>
448
+ </betaout_amplify_options>
449
+ </default>
450
+ <crontab>
451
+ <jobs>
452
+ <betaout_export_send_order>
453
+ <schedule>
454
+ <config_path>betaout_amplify_options/order/cron_setting</config_path>
455
+ </schedule>
456
+ <run>
457
+ <model>betaout_amplify/Key::sendData</model>
458
+ </run>
459
+ </betaout_export_send_order>
460
+ </jobs>
461
+ <!-- <events>
462
+ <checkout_cart_add_product_complete>
463
+ <observers>
464
+ <amplify_add_to_cart>
465
+ <type>singleton</type>
466
+ <class>Betaout_Amplify_Model_Key</class>
467
+ <method>getAmplifyEventAddToCart</method>
468
+ </amplify_add_to_cart>
469
+ </observers>
470
+ </checkout_cart_add_product_complete>
471
+ </events>-->
472
+ </crontab>
473
+
474
  </config>
app/code/community/Betaout/Amplify/etc/system.xml CHANGED
@@ -123,7 +123,32 @@
123
  </check_conflicts>
124
  </fields>
125
  </conflictchecker>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  </groups>
127
  </betaout_amplify_options>
 
128
  </sections>
129
  </config>
123
  </check_conflicts>
124
  </fields>
125
  </conflictchecker>
126
+ <order translate="label">
127
+ <label>What's about previous data</label>
128
+ <frontend_type>text</frontend_type>
129
+ <sort_order>2</sort_order>
130
+ <show_in_default>1</show_in_default>
131
+ <fields>
132
+ <status1>
133
+ <label>Wanna send</label>
134
+ <frontend_type>select</frontend_type>
135
+ <source_model>Betaout_Amplify_Model_CronStatus</source_model>
136
+ <sort_order>39</sort_order>
137
+ <show_in_default>1</show_in_default>
138
+ <show_in_website>1</show_in_website>
139
+ <show_in_store>1</show_in_store>
140
+ </status1>
141
+ <cron_setting>
142
+ <label>How often do you want too send data?</label>
143
+ <frontend_type>text</frontend_type>
144
+ <sort_order>40</sort_order>
145
+ <comment>Use Crontab Format (Eg. "*/5 * * * *" for every 5 minutes)</comment>
146
+ <show_in_default>1</show_in_default>
147
+ </cron_setting>
148
+ </fields>
149
+ </order>
150
  </groups>
151
  </betaout_amplify_options>
152
+
153
  </sections>
154
  </config>
app/design/frontend/base/default/layout/betaout_amplify.xml CHANGED
File without changes
app/design/frontend/base/default/template/betaout_amplify/head.phtml CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  //$startTime = microtime(true);
3
  try {
4
- $model = Mage::getModel('betaout_amplify/key');
5
  if (Mage::getSingleton('customer/session')->isLoggedIn()) {
6
 
7
  $c = Mage::getSingleton('customer/session')->getCustomer();
@@ -36,7 +36,7 @@ try {
36
  };
37
  }
38
  _amplify("//d3oa6jk77hlbow.cloudfront.net/tejas.min.js");
39
- // _amplify("//1.amplify.to/tejasv2/testerNew.js?v=47");
40
  window.amplifyInit = function () {
41
 
42
  Amplify.identify({
1
  <?php
2
  //$startTime = microtime(true);
3
  try {
4
+ // $model = Mage::getModel('betaout_amplify/key');
5
  if (Mage::getSingleton('customer/session')->isLoggedIn()) {
6
 
7
  $c = Mage::getSingleton('customer/session')->getCustomer();
36
  };
37
  }
38
  _amplify("//d3oa6jk77hlbow.cloudfront.net/tejas.min.js");
39
+ // _amplify("//1.amplify.to/tejasv2/testerNew.js?v=47");
40
  window.amplifyInit = function () {
41
 
42
  Amplify.identify({
app/design/frontend/base/default/template/betaout_amplify/order.phtml CHANGED
File without changes
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Betaout</name>
4
- <version>1.0.8</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Betaout - Marketing Personalisation Software and Engagement Platform</description>
11
  <notes>Helping Ecommerce Companies drive more sales and customer happiness.</notes>
12
  <authors><author><name>Jitendra Bhadouria</name><user>Jitendra</user><email>jitendra@getamplify.com</email></author><author><name>Dharmendra Rai</name><user>Dharmendra</user><email>dharmendra@getamplify.com</email></author></authors>
13
- <date>2014-11-28</date>
14
- <time>16:09:21</time>
15
- <contents><target name="magecommunity"><dir name="Betaout"><dir name="Amplify"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="About.php" hash="5d714a88c93aa83a3cdfed81712a1611"/><dir name="Form"><dir name="Field"><file name="Conflict.php" hash="6f91b2528452ee1a96440d3a9da43962"/></dir></dir><file name="Logo.php" hash="40f74b3fab0f1bed08315ae83abb4d42"/></dir></dir><dir name="Widget"><dir name="Button"><file name="Conflict.php" hash="903c3c00124ae86bde48f7ce2ad2f066"/></dir></dir></dir><file name="Conflictprinter.php" hash="ce0256621be50bfe02bf01a80ac11b20"/></dir><dir name="Helper"><file name="Conflictchecker.php" hash="a03e8cff4427d5a7ed28f06530f75838"/><file name="Data.php" hash="ab8d5234d07dd762f516169f3be73fe8"/></dir><dir name="Model"><file name="Amplify.php" hash="24c8023272feb559a692374067bf3214"/><file name="Amplifyconnectwidget.php" hash="904cedccd8685cb3f4e801b81802ec6d"/><dir name="Config"><file name="Blocks.php" hash="d32094f94f70ddc75f4ecb4ea90bdc16"/><file name="Checker.php" hash="b2b4fc113e7511f23360dc01ca3dc7e3"/><file name="ConfigAbstract.php" hash="b19f0f25177fbea91c817758886d6373"/><file name="ConfigInterface.php" hash="85c1b11953b73728feb498ae81711c29"/><file name="Datastore.php" hash="f8a8c60c2f4e1801941c334ebe45cc1a"/><file name="Helpers.php" hash="f337bdceb3fb867f7e2aa8ad90b1216e"/><file name="Models.php" hash="500a145c160beb6797f7450d03069637"/><file name="Printer.php" hash="577801efaeb6bc6dd8bd096875fda08b"/><file name="Resources.php" hash="1f14e467d10ba2afbd2354f78c0047e7"/></dir><dir name="Core"><dir name="Config"><file name="Base.php" hash="7bccfac5cac9b19f1073bb97568958f8"/><file name="Element.php" hash="d2ce6a9a5840dbe335514b7455c60688"/></dir><file name="Config.php" hash="4222a35a2c71b3702199efbfddbee701"/></dir><file name="Key.php" hash="a700d46f5205979afd1b4d006ddb6a93"/><dir name="Lib"><dir name="Varien"><dir name="Simplexml"><file name="Config.php" hash="eba1dfcc303065cf5b3c9067d87dd35a"/><file name="Element.php" hash="24cb3b7db31ae8e2c813485a6b6ef749"/></dir></dir></dir><dir name="Mysql4"><dir name="Core"><file name="Config.php" hash="c0a59f8ff1f747224655de39b217abde"/></dir></dir><file name="Order.php" hash="5a0f2583fa8eb6d943d3e700a88bd59d"/><dir name="Path"><dir name="Locator"><file name="Array.php" hash="722f4125eb1cbd5fbc2be05facd44cd4"/><file name="Factory.php" hash="5a57006974d9870affbcbafa6ed00175"/><file name="IteratorAbstract.php" hash="adba5c801c91efdbc5afa493d353224a"/><file name="LocatorInterface.php" hash="30571ef5c7ebf942870a0ddd2ab341cb"/><file name="Stack.php" hash="73a27e38db4768019613c99407205771"/></dir></dir><dir name="Resource"><dir name="Core"><file name="Config.php" hash="14736455e9f006a69dc638e4b93f7e6e"/></dir><dir name="Db"><file name="Abstract.php" hash="3874d4c5cc4b1af30a550cc792bbe22f"/></dir></dir><file name="Sharetracking.php" hash="05f4fe212dfd53027525bae6321ea641"/><file name="Urltracking.php" hash="d4e7e48cbb8168c2baab17e1edde1eac"/><file name="Verify.php" hash="3e385480fdfdfb3b1219ba48c1ef1644"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ConflictcheckerController.php" hash="28bf9f8cca4f3e63ea90c575c424deb0"/></dir><file name="indexController.php" hash="ca84b19b9ee9ea2678ba6ef5a6d23afa"/></dir><dir name="etc"><file name="config.xml" hash="613d1b20fcf0061f8fa40c3eb11e1fce"/><file name="system.xml" hash="c40ed90081519fc9a52184cb4971e308"/></dir><dir name="log"><file name="log.log" hash="be8a8d092fd7ba1381cfbe23eda18c2e"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="betaout_amplify"><file name="amplify.phtml" hash="85e5918735770c07615fcb482ec8a59d"/><file name="conflict.phtml" hash="43277d57972e4f750d8b65e0bfb5bcb8"/><file name="logo.phtml" hash="e3ba04dadaa851b305fc2c4aca3aff96"/></dir></dir><dir name="layout"><file name="betaout_amplify.xml" hash="3f6dc67340bd11b6708541d4abd2a3c6"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="betaout_amplify"><file name="account.phtml" hash="01cd3a0360e0311084892e6aa91670f6"/><file name="account_edit.phtml" hash="0f05ae8838cef60cfa6939d8f7b8e99e"/><file name="cart.phtml" hash="a27a29bd64a8829b535149364bcf8ce3"/><file name="checkout.phtml" hash="4724eb870c615572497e21aa6264252f"/><file name="create.phtml" hash="bbfa7ecefe6c7aee482e475b594ea048"/><file name="head.phtml" hash="3a4df8f7a0503334c24450a82be1fe22"/><file name="homepage.phtml" hash="26aad4234a7f50da95e584801fefec30"/><file name="login.phtml" hash="c9cd89dc9f30747a294b4dce3f85c53b"/><file name="order.phtml" hash="f11096e4017ab423882431f7e09d7a4d"/><file name="sales_history.phtml" hash="2fdb5b83f9f15b6c7a678968ecac807c"/><file name="search.phtml" hash="0131538e90e885e74247e89fa3708995"/><file name="wishlist.phtml" hash="7576e63e137c2b02dea575f55c919b5d"/></dir></dir><dir name="layout"><file name="betaout_amplify.xml" hash="1eb8d9b65c631de462f96b6410155450"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="amplify"><dir name="images"><file name="Users.png" hash="96e906660b1fbd8a17831bd3049dbcfa"/><file name="Users_1.png" hash="96e906660b1fbd8a17831bd3049dbcfa"/><file name="ajax-loader-tr.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="ajax-loader-tr_1.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="ajax-loader.gif" hash="e2a38f1e23288e315af3c55416bc1ce7"/><file name="ajax-loader_1.gif" hash="e2a38f1e23288e315af3c55416bc1ce7"/><file name="amp-connect.png" hash="0cea8d77700915725b17b59b6d2dcfcc"/><file name="amp-connect_1.png" hash="0cea8d77700915725b17b59b6d2dcfcc"/><file name="amplify.png" hash="1b4adb0d54bb79680fd8108f4a17e898"/><file name="amplify_1.png" hash="1b4adb0d54bb79680fd8108f4a17e898"/><file name="btn.png" hash="769b6736cb1bb8cb91ad7526ce9d9db8"/><file name="btn_1.png" hash="769b6736cb1bb8cb91ad7526ce9d9db8"/><file name="check.png" hash="252fd93a83e2a412ecd3b6eac01500b7"/><file name="check_1.png" hash="252fd93a83e2a412ecd3b6eac01500b7"/><file name="com-app.png" hash="1f241f552bdbe1f86763981c79c8d85f"/><file name="com-app_1.png" hash="1f241f552bdbe1f86763981c79c8d85f"/><file name="db-1.png" hash="840d96bd5679bf4fa2d6a9577f7d3539"/><file name="db-1_1.png" hash="840d96bd5679bf4fa2d6a9577f7d3539"/><file name="engage-app.png" hash="888cde6a10a3dd9abcfccd1a5f0c8fde"/><file name="engage-app_1.png" hash="888cde6a10a3dd9abcfccd1a5f0c8fde"/><file name="icon.png" hash="22ea725b0bee73cb03f63b063b02469f"/><file name="icon_1.png" hash="22ea725b0bee73cb03f63b063b02469f"/><file name="large_bracket.png" hash="d2e8da8266e513bd5f15b0c9855be058"/><file name="large_bracket_1.png" hash="d2e8da8266e513bd5f15b0c9855be058"/><file name="mini_bracket.png" hash="e844112e5e5173f64b3385a4a140bdeb"/><file name="mini_bracket_1.png" hash="e844112e5e5173f64b3385a4a140bdeb"/><file name="plugin-logo.png" hash="cdbe958c79bb55fd615d5c3918ad3831"/><file name="plugin-logo_1.png" hash="cdbe958c79bb55fd615d5c3918ad3831"/><file name="socialicon.png" hash="f1145a7105620196bd23ed65d3b3f468"/><file name="socialicon_1.png" hash="f1145a7105620196bd23ed65d3b3f468"/><file name="u111_normal.png" hash="fae6b2993bb6b055547280b5090764a0"/><file name="u111_normal_1.png" hash="fae6b2993bb6b055547280b5090764a0"/><file name="u151_normal.png" hash="5bc3388cb53aa21aad192b72a3b51c8c"/><file name="u151_normal_1.png" hash="5bc3388cb53aa21aad192b72a3b51c8c"/><file name="u185_normal.png" hash="34d1b35c670f1465ef270ef32c6daaff"/><file name="u185_normal_1.png" hash="34d1b35c670f1465ef270ef32c6daaff"/><file name="u187_normal.png" hash="8a40e2eafc78055efee2daf50d4705d5"/><file name="u187_normal_1.png" hash="8a40e2eafc78055efee2daf50d4705d5"/><file name="u189_normal.png" hash="8035feedcfdd96da5c4755c8f38318ff"/><file name="u189_normal_1.png" hash="8035feedcfdd96da5c4755c8f38318ff"/><file name="u192_normal.png" hash="4b043b0d2c32a3804a189f9383fd83f2"/><file name="u192_normal_1.png" hash="4b043b0d2c32a3804a189f9383fd83f2"/><file name="u204_normal.png" hash="2d8347498231f64c3cfe055c13599544"/><file name="u204_normal_1.png" hash="2d8347498231f64c3cfe055c13599544"/><file name="u206_normal.png" hash="1113a57fe91593ff5e239bcf4dee100a"/><file name="u206_normal_1.png" hash="1113a57fe91593ff5e239bcf4dee100a"/><file name="u3_normal.png" hash="769b6736cb1bb8cb91ad7526ce9d9db8"/><file name="u3_normal_1.png" hash="769b6736cb1bb8cb91ad7526ce9d9db8"/><file name="u74_normal.png" hash="7dc03403001cb96e1247243bd0e73391"/><file name="u74_normal_1.png" hash="7dc03403001cb96e1247243bd0e73391"/><file name="u89_normal.png" hash="abd8a60573df3db36ae9908a81d0b197"/><file name="u89_normal_1.png" hash="abd8a60573df3db36ae9908a81d0b197"/><file name="u93_normal.png" hash="66fd0ba981b8407cbe630607ecbe0223"/><file name="u93_normal_1.png" hash="66fd0ba981b8407cbe630607ecbe0223"/><file name="u96_normal.png" hash="6e91f7aa2454ab6cb06fcb01cd77bb26"/><file name="u96_normal_1.png" hash="6e91f7aa2454ab6cb06fcb01cd77bb26"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="amplify"><file name="ajax-loader-tr.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="ajax-loader-tr_1.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="ajax-loader.gif" hash="e2a38f1e23288e315af3c55416bc1ce7"/><file name="ajax-loader_1.gif" hash="e2a38f1e23288e315af3c55416bc1ce7"/><file name="amp-n-logo.png" hash="2f63b2187049acfd7be9bcc515abf4eb"/><file name="amp-n-logo_1.png" hash="2f63b2187049acfd7be9bcc515abf4eb"/><file name="amplify.gif" hash="82085013e11db77a7164dbd7faeb427b"/><file name="amplify_1.gif" hash="82085013e11db77a7164dbd7faeb427b"/><file name="logo-amp.png" hash="8719f9859bfb5497ecbf05962f15b8c6"/><file name="logo-amp_1.png" hash="8719f9859bfb5497ecbf05962f15b8c6"/><file name="small_amp.png" hash="7245bb50b46c0689dd76d41fd8e5efe8"/><file name="small_amp_1.png" hash="7245bb50b46c0689dd76d41fd8e5efe8"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Betaout_Amplify.xml" hash="a8228fbbf2d0a09dc90cd7c80b4692f0"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>4.0.0</min><max>5.5.3</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min/><max/></package></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Betaout</name>
4
+ <version>1.0.9</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
10
  <description>Betaout - Marketing Personalisation Software and Engagement Platform</description>
11
  <notes>Helping Ecommerce Companies drive more sales and customer happiness.</notes>
12
  <authors><author><name>Jitendra Bhadouria</name><user>Jitendra</user><email>jitendra@getamplify.com</email></author><author><name>Dharmendra Rai</name><user>Dharmendra</user><email>dharmendra@getamplify.com</email></author></authors>
13
+ <date>2014-12-09</date>
14
+ <time>11:11:03</time>
15
+ <contents><target name="magecommunity"><dir name="Betaout"><dir name="Amplify"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="About.php" hash="5d714a88c93aa83a3cdfed81712a1611"/><dir name="Form"><dir name="Field"><file name="Conflict.php" hash="6f91b2528452ee1a96440d3a9da43962"/></dir></dir><file name="Logo.php" hash="40f74b3fab0f1bed08315ae83abb4d42"/></dir></dir><dir name="Widget"><dir name="Button"><file name="Conflict.php" hash="903c3c00124ae86bde48f7ce2ad2f066"/></dir></dir></dir><file name="Conflictprinter.php" hash="ce0256621be50bfe02bf01a80ac11b20"/></dir><dir name="Helper"><file name="Conflictchecker.php" hash="a03e8cff4427d5a7ed28f06530f75838"/><file name="Data.php" hash="ab8d5234d07dd762f516169f3be73fe8"/></dir><dir name="Model"><file name="Amplify.php" hash="9a10213a33cabc3a48c90d57bd47f8a3"/><file name="Amplifyconnectwidget.php" hash="904cedccd8685cb3f4e801b81802ec6d"/><dir name="Config"><file name="Blocks.php" hash="d32094f94f70ddc75f4ecb4ea90bdc16"/><file name="Checker.php" hash="b2b4fc113e7511f23360dc01ca3dc7e3"/><file name="ConfigAbstract.php" hash="b19f0f25177fbea91c817758886d6373"/><file name="ConfigInterface.php" hash="85c1b11953b73728feb498ae81711c29"/><file name="Datastore.php" hash="f8a8c60c2f4e1801941c334ebe45cc1a"/><file name="Helpers.php" hash="f337bdceb3fb867f7e2aa8ad90b1216e"/><file name="Models.php" hash="500a145c160beb6797f7450d03069637"/><file name="Printer.php" hash="577801efaeb6bc6dd8bd096875fda08b"/><file name="Resources.php" hash="1f14e467d10ba2afbd2354f78c0047e7"/></dir><dir name="Core"><dir name="Config"><file name="Base.php" hash="7bccfac5cac9b19f1073bb97568958f8"/><file name="Element.php" hash="d2ce6a9a5840dbe335514b7455c60688"/></dir><file name="Config.php" hash="4222a35a2c71b3702199efbfddbee701"/></dir><file name="CronStatus.php" hash="298e6e428249ed7020c27e3c8abc52a2"/><file name="Key.php" hash="72d4bcced6024fe663396315d618af71"/><dir name="Lib"><dir name="Varien"><dir name="Simplexml"><file name="Config.php" hash="eba1dfcc303065cf5b3c9067d87dd35a"/><file name="Element.php" hash="24cb3b7db31ae8e2c813485a6b6ef749"/></dir></dir></dir><dir name="Mysql4"><dir name="Core"><file name="Config.php" hash="c0a59f8ff1f747224655de39b217abde"/></dir></dir><file name="Order.php" hash="5a0f2583fa8eb6d943d3e700a88bd59d"/><dir name="Path"><dir name="Locator"><file name="Array.php" hash="722f4125eb1cbd5fbc2be05facd44cd4"/><file name="Factory.php" hash="5a57006974d9870affbcbafa6ed00175"/><file name="IteratorAbstract.php" hash="adba5c801c91efdbc5afa493d353224a"/><file name="LocatorInterface.php" hash="30571ef5c7ebf942870a0ddd2ab341cb"/><file name="Stack.php" hash="73a27e38db4768019613c99407205771"/></dir></dir><dir name="Resource"><dir name="Core"><file name="Config.php" hash="14736455e9f006a69dc638e4b93f7e6e"/></dir><dir name="Db"><file name="Abstract.php" hash="3874d4c5cc4b1af30a550cc792bbe22f"/></dir></dir><file name="Sharetracking.php" hash="05f4fe212dfd53027525bae6321ea641"/><file name="Urltracking.php" hash="d4e7e48cbb8168c2baab17e1edde1eac"/><file name="Verify.php" hash="3e385480fdfdfb3b1219ba48c1ef1644"/><file name="magentoGetOrderByUserId.php" hash="d7090c9353f3bf989d88cff4e4063998"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ConflictcheckerController.php" hash="28bf9f8cca4f3e63ea90c575c424deb0"/></dir><file name="indexController.php" hash="ca84b19b9ee9ea2678ba6ef5a6d23afa"/></dir><dir name="etc"><file name="config.xml" hash="e4d6d889afac6baab05f1edd43a7f593"/><file name="system.xml" hash="b0209ad686f8a15ccef20a92c62028ba"/></dir><dir name="log"><file name="log.log" hash="be8a8d092fd7ba1381cfbe23eda18c2e"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="betaout_amplify"><file name="amplify.phtml" hash="85e5918735770c07615fcb482ec8a59d"/><file name="conflict.phtml" hash="43277d57972e4f750d8b65e0bfb5bcb8"/><file name="logo.phtml" hash="e3ba04dadaa851b305fc2c4aca3aff96"/></dir></dir><dir name="layout"><file name="betaout_amplify.xml" hash="3f6dc67340bd11b6708541d4abd2a3c6"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="betaout_amplify"><file name="account.phtml" hash="01cd3a0360e0311084892e6aa91670f6"/><file name="account_edit.phtml" hash="0f05ae8838cef60cfa6939d8f7b8e99e"/><file name="cart.phtml" hash="a27a29bd64a8829b535149364bcf8ce3"/><file name="checkout.phtml" hash="4724eb870c615572497e21aa6264252f"/><file name="create.phtml" hash="bbfa7ecefe6c7aee482e475b594ea048"/><file name="head.phtml" hash="53c429f5f933ff123f30c41fcbc854b4"/><file name="homepage.phtml" hash="26aad4234a7f50da95e584801fefec30"/><file name="login.phtml" hash="c9cd89dc9f30747a294b4dce3f85c53b"/><file name="order.phtml" hash="c069a455e83c9132a84cf41e26fbc1d0"/><file name="sales_history.phtml" hash="2fdb5b83f9f15b6c7a678968ecac807c"/><file name="search.phtml" hash="0131538e90e885e74247e89fa3708995"/><file name="wishlist.phtml" hash="7576e63e137c2b02dea575f55c919b5d"/></dir></dir><dir name="layout"><file name="betaout_amplify.xml" hash="6636dd0293f6edde04b08e5f07457ed9"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="amplify"><dir name="images"><file name="Users.png" hash="96e906660b1fbd8a17831bd3049dbcfa"/><file name="Users_1.png" hash="96e906660b1fbd8a17831bd3049dbcfa"/><file name="ajax-loader-tr.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="ajax-loader-tr_1.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="ajax-loader.gif" hash="e2a38f1e23288e315af3c55416bc1ce7"/><file name="ajax-loader_1.gif" hash="e2a38f1e23288e315af3c55416bc1ce7"/><file name="amp-connect.png" hash="0cea8d77700915725b17b59b6d2dcfcc"/><file name="amp-connect_1.png" hash="0cea8d77700915725b17b59b6d2dcfcc"/><file name="amplify.png" hash="1b4adb0d54bb79680fd8108f4a17e898"/><file name="amplify_1.png" hash="1b4adb0d54bb79680fd8108f4a17e898"/><file name="btn.png" hash="769b6736cb1bb8cb91ad7526ce9d9db8"/><file name="btn_1.png" hash="769b6736cb1bb8cb91ad7526ce9d9db8"/><file name="check.png" hash="252fd93a83e2a412ecd3b6eac01500b7"/><file name="check_1.png" hash="252fd93a83e2a412ecd3b6eac01500b7"/><file name="com-app.png" hash="1f241f552bdbe1f86763981c79c8d85f"/><file name="com-app_1.png" hash="1f241f552bdbe1f86763981c79c8d85f"/><file name="db-1.png" hash="840d96bd5679bf4fa2d6a9577f7d3539"/><file name="db-1_1.png" hash="840d96bd5679bf4fa2d6a9577f7d3539"/><file name="engage-app.png" hash="888cde6a10a3dd9abcfccd1a5f0c8fde"/><file name="engage-app_1.png" hash="888cde6a10a3dd9abcfccd1a5f0c8fde"/><file name="icon.png" hash="22ea725b0bee73cb03f63b063b02469f"/><file name="icon_1.png" hash="22ea725b0bee73cb03f63b063b02469f"/><file name="large_bracket.png" hash="d2e8da8266e513bd5f15b0c9855be058"/><file name="large_bracket_1.png" hash="d2e8da8266e513bd5f15b0c9855be058"/><file name="mini_bracket.png" hash="e844112e5e5173f64b3385a4a140bdeb"/><file name="mini_bracket_1.png" hash="e844112e5e5173f64b3385a4a140bdeb"/><file name="plugin-logo.png" hash="cdbe958c79bb55fd615d5c3918ad3831"/><file name="plugin-logo_1.png" hash="cdbe958c79bb55fd615d5c3918ad3831"/><file name="socialicon.png" hash="f1145a7105620196bd23ed65d3b3f468"/><file name="socialicon_1.png" hash="f1145a7105620196bd23ed65d3b3f468"/><file name="u111_normal.png" hash="fae6b2993bb6b055547280b5090764a0"/><file name="u111_normal_1.png" hash="fae6b2993bb6b055547280b5090764a0"/><file name="u151_normal.png" hash="5bc3388cb53aa21aad192b72a3b51c8c"/><file name="u151_normal_1.png" hash="5bc3388cb53aa21aad192b72a3b51c8c"/><file name="u185_normal.png" hash="34d1b35c670f1465ef270ef32c6daaff"/><file name="u185_normal_1.png" hash="34d1b35c670f1465ef270ef32c6daaff"/><file name="u187_normal.png" hash="8a40e2eafc78055efee2daf50d4705d5"/><file name="u187_normal_1.png" hash="8a40e2eafc78055efee2daf50d4705d5"/><file name="u189_normal.png" hash="8035feedcfdd96da5c4755c8f38318ff"/><file name="u189_normal_1.png" hash="8035feedcfdd96da5c4755c8f38318ff"/><file name="u192_normal.png" hash="4b043b0d2c32a3804a189f9383fd83f2"/><file name="u192_normal_1.png" hash="4b043b0d2c32a3804a189f9383fd83f2"/><file name="u204_normal.png" hash="2d8347498231f64c3cfe055c13599544"/><file name="u204_normal_1.png" hash="2d8347498231f64c3cfe055c13599544"/><file name="u206_normal.png" hash="1113a57fe91593ff5e239bcf4dee100a"/><file name="u206_normal_1.png" hash="1113a57fe91593ff5e239bcf4dee100a"/><file name="u3_normal.png" hash="769b6736cb1bb8cb91ad7526ce9d9db8"/><file name="u3_normal_1.png" hash="769b6736cb1bb8cb91ad7526ce9d9db8"/><file name="u74_normal.png" hash="7dc03403001cb96e1247243bd0e73391"/><file name="u74_normal_1.png" hash="7dc03403001cb96e1247243bd0e73391"/><file name="u89_normal.png" hash="abd8a60573df3db36ae9908a81d0b197"/><file name="u89_normal_1.png" hash="abd8a60573df3db36ae9908a81d0b197"/><file name="u93_normal.png" hash="66fd0ba981b8407cbe630607ecbe0223"/><file name="u93_normal_1.png" hash="66fd0ba981b8407cbe630607ecbe0223"/><file name="u96_normal.png" hash="6e91f7aa2454ab6cb06fcb01cd77bb26"/><file name="u96_normal_1.png" hash="6e91f7aa2454ab6cb06fcb01cd77bb26"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="amplify"><file name="ajax-loader-tr.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="ajax-loader-tr_1.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="ajax-loader.gif" hash="e2a38f1e23288e315af3c55416bc1ce7"/><file name="ajax-loader_1.gif" hash="e2a38f1e23288e315af3c55416bc1ce7"/><file name="amp-n-logo.png" hash="2f63b2187049acfd7be9bcc515abf4eb"/><file name="amp-n-logo_1.png" hash="2f63b2187049acfd7be9bcc515abf4eb"/><file name="amplify.gif" hash="82085013e11db77a7164dbd7faeb427b"/><file name="amplify_1.gif" hash="82085013e11db77a7164dbd7faeb427b"/><file name="logo-amp.png" hash="8719f9859bfb5497ecbf05962f15b8c6"/><file name="logo-amp_1.png" hash="8719f9859bfb5497ecbf05962f15b8c6"/><file name="small_amp.png" hash="7245bb50b46c0689dd76d41fd8e5efe8"/><file name="small_amp_1.png" hash="7245bb50b46c0689dd76d41fd8e5efe8"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Betaout_Amplify.xml" hash="a8228fbbf2d0a09dc90cd7c80b4692f0"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>4.0.0</min><max>5.5.3</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min/><max/></package></required></dependencies>
18
  </package>