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.
|
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
|
10 |
-
On Demand is
|
11 |
-
making a purchase. Years of testing and data analysis power each 
|
12 |
-
application we make available through Conversions On Demand. The 
|
13 |
-
Conversions On Demand Suite includes a The Daily Deal Bar, The Cart 
|
14 |
-
Closer, and Time2Buy. All 3 are available separately or in combination 
|
15 |
-
to improve your store's conversion rate.</summary>
|
16 |
-
<description>Conversions
|
17 |
-
On Demand is a comprehensive and easy to manage suite of services to 
|
18 |
-
improve conversion rates. 
|
19 |

|
20 |
-
|
21 |
-
before completing a sale. The Cart Closer displays a customizable offer 
|
22 |
-
to the shopper as they are exiting the cart to incent them to stay and 
|
23 |
-
complete a sale. 
|
24 |

|
25 |
-
|
26 |
-
months in advance. After uploading your promotions (including single-use
|
27 |
-
coupon), you can forget about them and trust the Daily Deal Bar to 
|
28 |
-
automatically update your site and Twitter on the days and times that 
|
29 |
-
you've preconfigured. 
|
30 |

|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<
|
37 |
-
<
|
38 |
-
<
|
39 |
-
<
|
|
|
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. 
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |

|
12 |
+
Email Booster helps you build the number of shoppers you can target ultimately increasing your sales.
|
|
|
|
|
|
|
13 |

|
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.
|
|
|
|
|
|
|
|
|
15 |

|
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.
|
17 |
+

|
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.
|
19 |
+

|
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>
|