Exclusiveconcepts_Conversionsondemand - Version 1.2.3

Version Notes

Released with new extension key

Download this release

Release Info

Developer Frank Kjaersgaard
Extension Exclusiveconcepts_Conversionsondemand
Version 1.2.3
Comparing to
See all releases


Code changes from version 1.2.2 to 1.2.3

app/code/community/Conversionsondemand/Conversions360/Helper/Data.php CHANGED
@@ -39,7 +39,7 @@ class Conversionsondemand_Conversions360_Helper_Data extends Mage_Core_Helper_Ab
39
  public function getOrderSummary($orders)
40
  {
41
  $orderSummary = array('orderids'=>array(),'numitems'=>array(),'subtotals'=>array(),
42
- 'discounts'=>array(), 'totals'=>array(),
43
  'itemids'=>array(),'itemcodes'=>array(),'itemqty'=>array(),
44
  'itemnames'=>array(),'itemprices'=>array()
45
  );
@@ -58,6 +58,13 @@ class Conversionsondemand_Conversions360_Helper_Data extends Mage_Core_Helper_Ab
58
  $orderSummary['subtotals'][] = floatval($order->getData('subtotal'));
59
  $orderSummary['discounts'][] = abs($order->getData('discount_amount'));
60
  $orderSummary['totals'][] = $order->getData('grand_total');
 
 
 
 
 
 
 
61
 
62
  $orderedItems = $order->getAllVisibleItems();
63
  $orderedItemSummary = array('itemcode'=>array());
39
  public function getOrderSummary($orders)
40
  {
41
  $orderSummary = array('orderids'=>array(),'numitems'=>array(),'subtotals'=>array(),
42
+ 'discounts'=>array(), 'totals'=>array(), 'emails'=>array(),
43
  'itemids'=>array(),'itemcodes'=>array(),'itemqty'=>array(),
44
  'itemnames'=>array(),'itemprices'=>array()
45
  );
58
  $orderSummary['subtotals'][] = floatval($order->getData('subtotal'));
59
  $orderSummary['discounts'][] = abs($order->getData('discount_amount'));
60
  $orderSummary['totals'][] = $order->getData('grand_total');
61
+
62
+ if($order->getCustomerId()){
63
+ $orderSummary['emails'][] = $order->getCustomerEmail(); //logged in customer
64
+ }
65
+ else{
66
+ $orderSummary['emails'][] = $order->getBillingAddress()->getEmail(); //not logged in customer
67
+ }
68
 
69
  $orderedItems = $order->getAllVisibleItems();
70
  $orderedItemSummary = array('itemcode'=>array());
app/design/frontend/base/default/template/conversionsondemand/conversions360/success.phtml CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- $orderSummary = $this->getOrderDetail();
3
- ?>
4
- <script language=javascript>
5
- var cod_page_guid = 'SUCCESS';
6
- var cod_ab_orderSubTotal = [<?php echo implode($orderSummary['subtotals'],',') ?>];
7
- var cod_ab_orderTotal = [<?php echo implode($orderSummary['totals'],',') ?>];
8
- var cod_ab_orderNum=[<?php echo implode($orderSummary['orderids'],',') ?>];
9
- var cod_ab_numOfItems=[<?php echo implode($orderSummary['numitems'],',') ?>];
10
- var cod_ab_orderSubTotalDiscounted = [<?php echo implode($orderSummary['discounts'],',') ?>];
11
- <?php if(count($orderSummary['itemnames']) > 0): ?>
12
- var cod_ab_product_items=[<?php echo "[". implode($orderSummary['itemnames'],'],[') . "]"; ?>];
13
- <?php else: ?>
14
- var cod_ab_product_items=[];
15
- <?php endif;?>
16
- <?php if(count($orderSummary['itemids']) > 0): ?>
17
- var cod_ab_product_ids=[<?php echo "[". implode($orderSummary['itemids'],'],[') . "]"; ?>];
18
- <?php else: ?>
19
- var cod_ab_product_ids=[];
20
- <?php endif;?>
21
- <?php if(count($orderSummary['itemcodes']) > 0): ?>
22
- var cod_ab_product_codes=[<?php echo "[". implode($orderSummary['itemcodes'],'],[') . "]"; ?>];
23
- <?php else: ?>
24
- var cod_ab_product_codes=[];
25
- <?php endif;?>
26
- <?php if(count($orderSummary['itemqty']) > 0): ?>
27
- var cod_ab_product_qtys=[<?php echo "[". implode($orderSummary['itemqty'],'],[') . "]"; ?>];
28
- <?php else: ?>
29
- var cod_ab_product_qtys=[];
30
- <?php endif;?>
31
- <?php if(count($orderSummary['itemprices']) > 0): ?>
32
- var cod_ab_product_price=[<?php echo "[". implode($orderSummary['itemprices'],'],[') . "]"; ?>];
33
- <?php else: ?>
34
- var cod_ab_product_price=[];
35
- <?php endif;?>
36
  </script>
1
+ <?php
2
+ $orderSummary = $this->getOrderDetail();
3
+ ?>
4
+ <script language=javascript>
5
+ var cod_page_guid = 'SUCCESS';
6
+ var cod_ab_orderSubTotal = [<?php echo implode($orderSummary['subtotals'],',') ?>];
7
+ var cod_ab_orderTotal = [<?php echo implode($orderSummary['totals'],',') ?>];
8
+ var cod_ab_orderNum=[<?php echo implode($orderSummary['orderids'],',') ?>];
9
+ var cod_ab_numOfItems=[<?php echo implode($orderSummary['numitems'],',') ?>];
10
+ var cod_ab_orderSubTotalDiscounted = [<?php echo implode($orderSummary['discounts'],',') ?>];var cod_ab_orderEmail = ['<?php echo implode($orderSummary['emails'],"','") ?>'];
11
+ <?php if(count($orderSummary['itemnames']) > 0): ?>
12
+ var cod_ab_product_items=[<?php echo "[". implode($orderSummary['itemnames'],'],[') . "]"; ?>];
13
+ <?php else: ?>
14
+ var cod_ab_product_items=[];
15
+ <?php endif;?>
16
+ <?php if(count($orderSummary['itemids']) > 0): ?>
17
+ var cod_ab_product_ids=[<?php echo "[". implode($orderSummary['itemids'],'],[') . "]"; ?>];
18
+ <?php else: ?>
19
+ var cod_ab_product_ids=[];
20
+ <?php endif;?>
21
+ <?php if(count($orderSummary['itemcodes']) > 0): ?>
22
+ var cod_ab_product_codes=[<?php echo "[". implode($orderSummary['itemcodes'],'],[') . "]"; ?>];
23
+ <?php else: ?>
24
+ var cod_ab_product_codes=[];
25
+ <?php endif;?>
26
+ <?php if(count($orderSummary['itemqty']) > 0): ?>
27
+ var cod_ab_product_qtys=[<?php echo "[". implode($orderSummary['itemqty'],'],[') . "]"; ?>];
28
+ <?php else: ?>
29
+ var cod_ab_product_qtys=[];
30
+ <?php endif;?>
31
+ <?php if(count($orderSummary['itemprices']) > 0): ?>
32
+ var cod_ab_product_price=[<?php echo "[". implode($orderSummary['itemprices'],'],[') . "]"; ?>];
33
+ <?php else: ?>
34
+ var cod_ab_product_price=[];
35
+ <?php endif;?>
36
  </script>
package.xml CHANGED
@@ -1,42 +1,28 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Exclusiveconcepts_Conversionsondemand</name>
4
- <version>1.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="https://www.conversionsondemand.com/codadmin2/files/COD-Master-Agreement.pdf">Conversions On Demand Terms Of Service</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Conversions&#xD;
10
- On Demand is designed to prevent shoppers from leaving your site before&#xD;
11
- making a purchase. Years of testing and data analysis power each &#xD;
12
- application we make available through Conversions On Demand. The &#xD;
13
- Conversions On Demand Suite includes a The Daily Deal Bar, The Cart &#xD;
14
- Closer, and Time2Buy. All 3 are available separately or in combination &#xD;
15
- to improve your store's conversion rate.</summary>
16
- <description>Conversions&#xD;
17
- On Demand is a comprehensive and easy to manage suite of services to &#xD;
18
- improve conversion rates. &#xD;
19
  &#xD;
20
- The Cart Closer is designed to convert shoppers that abandon the cart &#xD;
21
- before completing a sale. The Cart Closer displays a customizable offer &#xD;
22
- to the shopper as they are exiting the cart to incent them to stay and &#xD;
23
- complete a sale. &#xD;
24
  &#xD;
25
- The Daily Deal Bar enables you to schedule promotions days, weeks or &#xD;
26
- months in advance. After uploading your promotions (including single-use&#xD;
27
- coupon), you can forget about them and trust the Daily Deal Bar to &#xD;
28
- automatically update your site and Twitter on the days and times that &#xD;
29
- you've preconfigured. &#xD;
30
  &#xD;
31
- Time2Buy is patent-pending technology that monitors the browsing &#xD;
32
- behavior of shoppers on your site, and displays hyper time-sensitive &#xD;
33
- offers to motivate shoppers to immediately buy from you. You can control&#xD;
34
- the time, trigger behavior and offer value.</description>
35
- <notes>Extension upgraded to support CC 3.0</notes>
36
- <authors><author><name>Frank Kjaersgaard</name><user>auto-converted</user><email>fkjaersgaard@exclusiveconcepts.com</email></author></authors>
37
- <date>2015-08-10</date>
38
- <time>08:28:04</time>
39
- <contents><target name="magecommunity"><dir name="Conversionsondemand"><dir name="Conversions360"><dir name="Block"><dir name="Multishipping"><file name="Success.php" hash="91f894fed9c4b94ccb3cfcd346627f92"/></dir><file name="Code.php" hash="4b50ac8fcba20d977cf510921ea9d13c"/><file name="Identifier.php" hash="a2f728dc9ef7894dda2a746d6ed3705c"/><file name="Success.php" hash="0544e1889e339aef0c3953fd00450684"/></dir><dir name="Helper"><file name="Data.php" hash="447fbbfff8eb1b4288c52170a5a8a92d"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Edition.php" hash="a7268f311f457305189ca2906f2a7c41"/></dir></dir><dir name="Container"><file name="Code.php" hash="90e9cba3004db39fe2443c467fa0577d"/><file name="Identifier.php" hash="5d6e615ccca83484e014c55f8ec60f60"/></dir><file name="Observer.php" hash="ebcbe407157dd30e71366dc5620ce1d7"/></dir><dir name="controllers"><file name="IndexController.php" hash="60d63f5bf5b208193567a72682475b02"/></dir><dir name="etc"><file name="cache.xml" hash="5f5c7e42e915f9607ee710d5b31bad5d"/><file name="config.xml" hash="75707d44e6b8296b68c37e624db1d409"/><file name="system.xml" hash="ab64016b6349164727277e4d075d6164"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Conversionsondemand_Conversions360.xml" hash="2ba3e087b9bf8d769741b89481dee559"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="conversionsondemand"><dir name="conversions360"><file name="conversions360.xml" hash="335ce03fe21e63ed1de64e2f4219998c"/></dir></dir></dir><dir name="template"><dir name="conversionsondemand"><dir name="conversions360"><file name="code.phtml" hash="69fb2203680aaca1ce1c7c46f9013842"/><file name="success.phtml" hash="0f4f25812b1484d69e8b6285213ef616"/></dir></dir></dir></dir></dir></dir></target></contents>
 
40
  <compatible/>
41
- <dependencies/>
42
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Exclusiveconcepts_Conversionsondemand</name>
4
+ <version>1.2.3</version>
5
  <stability>stable</stability>
6
  <license uri="https://www.conversionsondemand.com/codadmin2/files/COD-Master-Agreement.pdf">Conversions On Demand Terms Of Service</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Conversions On Demand is designed to prevent shoppers from leaving your site before making a purchase. Years of testing and data analysis power each application we make available through Conversions On Demand. The Conversions On Demand Suite includes a The Daily Deal Bar, The Cart Closer, Time2Buy, Cart Reminder, and Email Booster. All 5 are available separately or in combination to improve your store's conversion rate.</summary>
10
+ <description>Conversions On Demand is a comprehensive and easy to manage suite of services to improve conversion rates. &#xD;
 
 
 
 
 
 
 
 
11
  &#xD;
12
+ Email Booster helps you build the number of shoppers you can target ultimately increasing your sales.&#xD;
 
 
 
13
  &#xD;
14
+ Cart Reminder reminds shoppers they left something in their cart and see your profits increase. It will display the reminder the first time the shopper returns to your store on any page the shopper enters on.&#xD;
 
 
 
 
15
  &#xD;
16
+ The Cart Closer is designed to convert shoppers that abandon the cart before completing a sale. The Cart Closer displays a customizable offer to the shopper as they are exiting the cart to incent them to stay and complete a sale.&#xD;
17
+ &#xD;
18
+ The Daily Deal Bar enables you to schedule promotions days, weeks or months in advance. After uploading your promotions (including single-use coupon), you can forget about them and trust the Daily Deal Bar to automatically update your site and Twitter on the days and times that you've preconfigured.&#xD;
19
+ &#xD;
20
+ Time2Buy is patent-pending technology that monitors the browsing behavior of shoppers on your site, and displays hyper time-sensitive offers to motivate shoppers to immediately buy from you. You can control the time, trigger behavior and offer value.</description>
21
+ <notes>Released with new extension key</notes>
22
+ <authors><author><name>Frank Kjaersgaard</name><user>dtheirlexc</user><email>fkjaersgaard@exclusiveconcepts.com</email></author></authors>
23
+ <date>2017-02-27</date>
24
+ <time>08:15:24</time>
25
+ <contents><target name="magecommunity"><dir name="Conversionsondemand"><dir name="Conversions360"><dir name="Block"><file name="Code.php" hash="4b50ac8fcba20d977cf510921ea9d13c"/><file name="Identifier.php" hash="a2f728dc9ef7894dda2a746d6ed3705c"/><dir name="Multishipping"><file name="Success.php" hash="91f894fed9c4b94ccb3cfcd346627f92"/></dir><file name="Success.php" hash="0544e1889e339aef0c3953fd00450684"/></dir><dir name="Helper"><file name="Data.php" hash="eef34e52d5ecd7c3baca4821bcffd0fe"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Edition.php" hash="a7268f311f457305189ca2906f2a7c41"/></dir></dir><dir name="Container"><file name="Code.php" hash="90e9cba3004db39fe2443c467fa0577d"/><file name="Identifier.php" hash="5d6e615ccca83484e014c55f8ec60f60"/></dir><file name="Observer.php" hash="ebcbe407157dd30e71366dc5620ce1d7"/></dir><dir name="controllers"><file name="IndexController.php" hash="60d63f5bf5b208193567a72682475b02"/></dir><dir name="etc"><file name="cache.xml" hash="5f5c7e42e915f9607ee710d5b31bad5d"/><file name="config.xml" hash="75707d44e6b8296b68c37e624db1d409"/><file name="system.xml" hash="ab64016b6349164727277e4d075d6164"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Conversionsondemand_Conversions360.xml" hash="2ba3e087b9bf8d769741b89481dee559"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="conversionsondemand"><dir name="conversions360"><file name="conversions360.xml" hash="335ce03fe21e63ed1de64e2f4219998c"/></dir></dir></dir><dir name="template"><dir name="conversionsondemand"><dir name="conversions360"><file name="code.phtml" hash="69fb2203680aaca1ce1c7c46f9013842"/><file name="success.phtml" hash="75759d37e96e3eade41236af9d5c157d"/></dir></dir></dir></dir></dir></dir></target></contents>
26
  <compatible/>
27
+ <dependencies><required><php><min>5.1.1</min><max>7.0.0</max></php></required></dependencies>
28
  </package>