Exclusiveconcepts4_Conversionsondemand - Version 1.0.1

Version Notes

Released with new extension key

Download this release

Release Info

Developer Frank Kjaersgaard
Extension Exclusiveconcepts4_Conversionsondemand
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/Conversionsondemand/Conversions360/Block/Code.php CHANGED
@@ -1,67 +1,67 @@
1
- <?php
2
- /**
3
- * @category Conversionsondemand
4
- * @package Conversionsondemand_Conversions360
5
- * @copyright Copyright (c) 2012 Exclusive Concepts (http://www.exclusiveconcepts.com)
6
- */
7
-
8
- class Conversionsondemand_Conversions360_Block_Code extends Mage_Checkout_Block_Cart_Abstract
9
- {
10
-
11
- public $codConfig;
12
-
13
- public function __construct()
14
- {
15
- $this->codConfig = Mage::helper('conversionsondemand_conversions360')->getCodConfig();
16
- }
17
- /**
18
- * Retrieve the store identifier of the current magento store.
19
- *
20
- * @return string
21
- */
22
- public function getStoreIdentifier()
23
- {
24
- return trim($this->codConfig['storeIdentifier']);
25
- }
26
- /**
27
- * Return the conversionsondemand.com service URL
28
- *
29
- * @return string
30
- */
31
- public function getCodServiceUrl()
32
- {
33
- return trim($this->codConfig['serviceUrl']);
34
- }
35
- /**
36
- * Check if the COD code snippet is enabled on the backend.
37
- *
38
- * @return boolean
39
- */
40
- public function codSnippetEnabled()
41
- {
42
- $codeEnabled = intval($this->codConfig['snippetEnabled']);
43
- return ($codeEnabled === 1) ? true: false;
44
- }
45
-
46
- /**
47
- * Return the sub-total amount on the user's shopping cart.
48
- *
49
- * @return float
50
- */
51
- /*public function getCartSubTotal()
52
- {
53
- $totals = Mage::getSingleton('checkout/cart')->getQuote()->getTotals();
54
- $subTotal = $totals["subtotal"]->getValue();
55
- return floatval($subTotal);
56
- }*/
57
-
58
- /**
59
- * Retrieve the platform of the Magento store as per backend configuration.
60
- *
61
- * @return string
62
- */
63
- public function getStorePlatform()
64
- {
65
- return trim($this->codConfig['magentoEdition']);
66
- }
67
  }
1
+ <?php
2
+ /**
3
+ * @category Conversionsondemand
4
+ * @package Conversionsondemand_Conversions360
5
+ * @copyright Copyright (c) 2012 Exclusive Concepts (http://www.exclusiveconcepts.com)
6
+ */
7
+
8
+ class Conversionsondemand_Conversions360_Block_Code extends Mage_Checkout_Block_Cart_Abstract
9
+ {
10
+
11
+ public $codConfig;
12
+
13
+ public function __construct()
14
+ {
15
+ $this->codConfig = Mage::helper('conversionsondemand_conversions360')->getCodConfig();
16
+ }
17
+ /**
18
+ * Retrieve the store identifier of the current magento store.
19
+ *
20
+ * @return string
21
+ */
22
+ public function getStoreIdentifier()
23
+ {
24
+ return trim($this->codConfig['storeIdentifier']);
25
+ }
26
+ /**
27
+ * Return the conversionsondemand.com service URL
28
+ *
29
+ * @return string
30
+ */
31
+ public function getCodServiceUrl()
32
+ {
33
+ return trim($this->codConfig['serviceUrl']);
34
+ }
35
+ /**
36
+ * Check if the COD code snippet is enabled on the backend.
37
+ *
38
+ * @return boolean
39
+ */
40
+ public function codSnippetEnabled()
41
+ {
42
+ $codeEnabled = intval($this->codConfig['snippetEnabled']);
43
+ return ($codeEnabled === 1) ? true: false;
44
+ }
45
+
46
+ /**
47
+ * Return the sub-total amount on the user's shopping cart.
48
+ *
49
+ * @return float
50
+ */
51
+ /*public function getCartSubTotal()
52
+ {
53
+ $totals = Mage::getSingleton('checkout/cart')->getQuote()->getTotals();
54
+ $subTotal = $totals["subtotal"]->getValue();
55
+ return floatval($subTotal);
56
+ }*/
57
+
58
+ /**
59
+ * Retrieve the platform of the Magento store as per backend configuration.
60
+ *
61
+ * @return string
62
+ */
63
+ public function getStorePlatform()
64
+ {
65
+ return trim($this->codConfig['magentoEdition']);
66
+ }
67
  }
app/code/community/Conversionsondemand/Conversions360/Block/Identifier.php CHANGED
@@ -1,114 +1,114 @@
1
- <?php
2
- /**
3
- * @category Conversionsondemand
4
- * @package Conversionsondemand_Conversions360
5
- * @copyright Copyright (c) 2012 Exclusive Concepts (http://www.exclusiveconcepts.com)
6
- *
7
- */
8
-
9
- class Conversionsondemand_Conversions360_Block_Identifier extends Mage_Core_Block_Text
10
- {
11
- /**
12
- *
13
- * The page identifier that checks the current page type.
14
- * @var string
15
- * @example PRODUCT, CART etc.
16
- */
17
- public $pageIdentifier;
18
- /**
19
- * Set the page identifier of the currently viewed page.
20
- * Called on the layout file conversionsondemand.xml
21
- *
22
- * @param string $identifier
23
- *
24
- */
25
- public function setCodIdentifier( $identifier )
26
- {
27
- $this->pageIdentifier = $identifier;
28
- }
29
-
30
- /**
31
- * Generate the JS codebase required for the conversionsondemand snippet to identify the current page type.
32
- *
33
- * @param string $identifier
34
- * @param string $cartSubTotal
35
- *
36
- * @return string
37
- */
38
- public function codIdentifierHtml ($identifier, $cod_cartDetails)
39
- {
40
- $codConfig = Mage::helper('conversionsondemand_conversions360')->getCodConfig();
41
- $validIdentifiers = array('PRODUCT','CART','CHECKOUT','SUCCESS');
42
- $codIdentifierHtml = '';
43
-
44
- if(strlen($codConfig['storeIdentifier']) === 0) {
45
- return $codIdentifierHtml;
46
- }
47
-
48
- if($codConfig['snippetEnabled'] == 0) {
49
- return $codIdentifierHtml;
50
- }
51
-
52
- $commentTag = '<!--- Conversions On Demand script, more info at www.conversionsondemand.com - Do Not Remove or Replace -->';
53
- $autoDiscounterScript = '';
54
-
55
- if(in_array($identifier,$validIdentifiers)){
56
- if($identifier == 'CART'){
57
- $autoDiscounterScript = '<script language=javascript>'
58
- .'var cod_cartSubtotalAmt = parseFloat(' . $cod_cartDetails["cartSubTotal"] . ');'
59
- .'var cod_cartItems = "' . $cod_cartDetails["cartItems"] . '";'
60
- . 'var COD_CONFIG= {"platform": "' . $codConfig['magentoEdition'] . '","stoken":"' . $codConfig['storeIdentifier'] . '"};'
61
- .'</script>'
62
- .'<script language="javascript" '
63
- .'src="'. $codConfig['serviceUrl'] .'core/couponHandler.php'
64
- .'?p='.$codConfig['magentoEdition'].'&d='.$codConfig['storeIdentifier'].'"></script>';
65
- }
66
-
67
- $codIdentifierHtml = $commentTag
68
- . '<script language="javascript">'
69
- . 'var cod_page_guid = "' . $identifier . '";'
70
- . '</script>'
71
- . $autoDiscounterScript
72
- . $commentTag;
73
-
74
- } else {
75
- $codIdentifierHtml = $commentTag
76
- . '<script language=javascript>'
77
- . 'var cod_page_guid = "NON-PRODUCT";'
78
- . '</script>'
79
- . $commentTag;
80
- }
81
-
82
- return $codIdentifierHtml;
83
- }
84
-
85
- /**
86
- * Return additional data required for Magento Full Page Caching.
87
- *
88
- * @return array
89
- */
90
- public function getCacheKeyInfo()
91
- {
92
- $cacheKeyInfo = parent::getCacheKeyInfo();
93
- $cacheKeyInfo['pageIdentifier'] = $this->pageIdentifier;
94
- $cacheKeyInfo['cartSubTotal'] = Mage::helper('conversionsondemand_conversions360')->getCartSubTotal();
95
- $cacheKeyInfo['cartItems'] = Mage::helper('conversionsondemand_conversions360')->getCartItems();
96
-
97
-
98
- return $cacheKeyInfo;
99
- }
100
-
101
- /**
102
- * Returns the javascript code that is used to identify the currently viewed page type on the store.
103
- *
104
- * @return string
105
- */
106
- protected function _toHtml()
107
- {
108
- $cod_cartDetails = array();
109
- //$cartSubTotal = Mage::helper('conversionsondemand_conversions360')->getCartSubTotal();
110
- $cod_cartDetails['cartSubTotal'] = Mage::helper('conversionsondemand_conversions360')->getCartSubTotal();
111
- $cod_cartDetails['cartItems'] = Mage::helper('conversionsondemand_conversions360')->getCartItems();
112
- return $this->codIdentifierHtml($this->pageIdentifier, $cod_cartDetails);
113
- }
114
  }
1
+ <?php
2
+ /**
3
+ * @category Conversionsondemand
4
+ * @package Conversionsondemand_Conversions360
5
+ * @copyright Copyright (c) 2012 Exclusive Concepts (http://www.exclusiveconcepts.com)
6
+ *
7
+ */
8
+
9
+ class Conversionsondemand_Conversions360_Block_Identifier extends Mage_Core_Block_Text
10
+ {
11
+ /**
12
+ *
13
+ * The page identifier that checks the current page type.
14
+ * @var string
15
+ * @example PRODUCT, CART etc.
16
+ */
17
+ public $pageIdentifier;
18
+ /**
19
+ * Set the page identifier of the currently viewed page.
20
+ * Called on the layout file conversionsondemand.xml
21
+ *
22
+ * @param string $identifier
23
+ *
24
+ */
25
+ public function setCodIdentifier( $identifier )
26
+ {
27
+ $this->pageIdentifier = $identifier;
28
+ }
29
+
30
+ /**
31
+ * Generate the JS codebase required for the conversionsondemand snippet to identify the current page type.
32
+ *
33
+ * @param string $identifier
34
+ * @param string $cartSubTotal
35
+ *
36
+ * @return string
37
+ */
38
+ public function codIdentifierHtml ($identifier, $cod_cartDetails)
39
+ {
40
+ $codConfig = Mage::helper('conversionsondemand_conversions360')->getCodConfig();
41
+ $validIdentifiers = array('PRODUCT','CART','CHECKOUT','SUCCESS');
42
+ $codIdentifierHtml = '';
43
+
44
+ if(strlen($codConfig['storeIdentifier']) === 0) {
45
+ return $codIdentifierHtml;
46
+ }
47
+
48
+ if($codConfig['snippetEnabled'] == 0) {
49
+ return $codIdentifierHtml;
50
+ }
51
+
52
+ $commentTag = '<!--- Conversions On Demand script, more info at www.conversionsondemand.com - Do Not Remove or Replace -->';
53
+ $autoDiscounterScript = '';
54
+
55
+ if(in_array($identifier,$validIdentifiers)){
56
+ if($identifier == 'CART'){
57
+ $autoDiscounterScript = '<script language=javascript>'
58
+ .'var cod_cartSubtotalAmt = parseFloat(' . $cod_cartDetails["cartSubTotal"] . ');'
59
+ .'var cod_cartItems = "' . $cod_cartDetails["cartItems"] . '";'
60
+ . 'var COD_CONFIG= {"platform": "' . $codConfig['magentoEdition'] . '","stoken":"' . $codConfig['storeIdentifier'] . '"};'
61
+ .'</script>'
62
+ .'<script language="javascript" '
63
+ .'src="'. $codConfig['serviceUrl'] .'core/couponHandler.php'
64
+ .'?p='.$codConfig['magentoEdition'].'&d='.$codConfig['storeIdentifier'].'"></script>';
65
+ }
66
+
67
+ $codIdentifierHtml = $commentTag
68
+ . '<script language="javascript">'
69
+ . 'var cod_page_guid = "' . $identifier . '";'
70
+ . '</script>'
71
+ . $autoDiscounterScript
72
+ . $commentTag;
73
+
74
+ } else {
75
+ $codIdentifierHtml = $commentTag
76
+ . '<script language=javascript>'
77
+ . 'var cod_page_guid = "NON-PRODUCT";'
78
+ . '</script>'
79
+ . $commentTag;
80
+ }
81
+
82
+ return $codIdentifierHtml;
83
+ }
84
+
85
+ /**
86
+ * Return additional data required for Magento Full Page Caching.
87
+ *
88
+ * @return array
89
+ */
90
+ public function getCacheKeyInfo()
91
+ {
92
+ $cacheKeyInfo = parent::getCacheKeyInfo();
93
+ $cacheKeyInfo['pageIdentifier'] = $this->pageIdentifier;
94
+ $cacheKeyInfo['cartSubTotal'] = Mage::helper('conversionsondemand_conversions360')->getCartSubTotal();
95
+ $cacheKeyInfo['cartItems'] = Mage::helper('conversionsondemand_conversions360')->getCartItems();
96
+
97
+
98
+ return $cacheKeyInfo;
99
+ }
100
+
101
+ /**
102
+ * Returns the javascript code that is used to identify the currently viewed page type on the store.
103
+ *
104
+ * @return string
105
+ */
106
+ protected function _toHtml()
107
+ {
108
+ $cod_cartDetails = array();
109
+ //$cartSubTotal = Mage::helper('conversionsondemand_conversions360')->getCartSubTotal();
110
+ $cod_cartDetails['cartSubTotal'] = Mage::helper('conversionsondemand_conversions360')->getCartSubTotal();
111
+ $cod_cartDetails['cartItems'] = Mage::helper('conversionsondemand_conversions360')->getCartItems();
112
+ return $this->codIdentifierHtml($this->pageIdentifier, $cod_cartDetails);
113
+ }
114
  }
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/code/community/Conversionsondemand/Conversions360/Model/Container/Identifier.php CHANGED
@@ -1,54 +1,54 @@
1
- <?php
2
- /**
3
- * Placeholder container for the identifiers related to page type.
4
- *
5
- * @category Conversionsondemand
6
- * @package Conversionsondemand_Conversions360
7
- * @copyright Copyright (c) 2012 Exclusive Concepts (http://www.exclusiveconcepts.com)
8
- */
9
- class Conversionsondemand_Conversions360_Model_Container_Identifier extends Enterprise_PageCache_Model_Container_Abstract
10
- {
11
-
12
- /**
13
- * Get customer identifier from cookies
14
- *
15
- * @return string
16
- */
17
- protected function _getIdentifier()
18
- {
19
- return md5(strtotime('now'));
20
- }
21
-
22
- /**
23
- * Get cache identifier
24
- *
25
- * @return string
26
- */
27
- protected function _getCacheId()
28
- {
29
- return 'CONVERSIONSONDEMAND_CONVERSIONS360_IDENTIFIER' . md5($this->_placeholder->getAttribute('cache_id') . $this->_getIdentifier());
30
- }
31
-
32
- /**
33
- * Render block content
34
- *
35
- * @return string
36
- */
37
- protected function _renderBlock()
38
- {
39
- $block = $this->_placeholder->getAttribute('block');
40
- $template = $this->_placeholder->getAttribute('template');
41
-
42
- $block = new $block;
43
- $block->setTemplate($template);
44
-
45
- $block->setLayout(Mage::app()->getLayout());
46
- $pageIdentifier = $this->_placeholder->getAttribute('pageIdentifier');
47
- $cartSubTotal = $this->_placeholder->getAttribute('cartSubTotal');
48
- $cartItems = $this->_placeholder->getAttribute('cartItems');
49
- $cod_cartDetails['cartSubTotal'] = $cartSubTotal;
50
- $cod_cartDetails['cartItems'] = $cartItems;
51
-
52
- return $block->codIdentifierHtml($pageIdentifier , $cod_cartDetails);
53
- }
54
  }
1
+ <?php
2
+ /**
3
+ * Placeholder container for the identifiers related to page type.
4
+ *
5
+ * @category Conversionsondemand
6
+ * @package Conversionsondemand_Conversions360
7
+ * @copyright Copyright (c) 2012 Exclusive Concepts (http://www.exclusiveconcepts.com)
8
+ */
9
+ class Conversionsondemand_Conversions360_Model_Container_Identifier extends Enterprise_PageCache_Model_Container_Abstract
10
+ {
11
+
12
+ /**
13
+ * Get customer identifier from cookies
14
+ *
15
+ * @return string
16
+ */
17
+ protected function _getIdentifier()
18
+ {
19
+ return md5(strtotime('now'));
20
+ }
21
+
22
+ /**
23
+ * Get cache identifier
24
+ *
25
+ * @return string
26
+ */
27
+ protected function _getCacheId()
28
+ {
29
+ return 'CONVERSIONSONDEMAND_CONVERSIONS360_IDENTIFIER' . md5($this->_placeholder->getAttribute('cache_id') . $this->_getIdentifier());
30
+ }
31
+
32
+ /**
33
+ * Render block content
34
+ *
35
+ * @return string
36
+ */
37
+ protected function _renderBlock()
38
+ {
39
+ $block = $this->_placeholder->getAttribute('block');
40
+ $template = $this->_placeholder->getAttribute('template');
41
+
42
+ $block = new $block;
43
+ $block->setTemplate($template);
44
+
45
+ $block->setLayout(Mage::app()->getLayout());
46
+ $pageIdentifier = $this->_placeholder->getAttribute('pageIdentifier');
47
+ $cartSubTotal = $this->_placeholder->getAttribute('cartSubTotal');
48
+ $cartItems = $this->_placeholder->getAttribute('cartItems');
49
+ $cod_cartDetails['cartSubTotal'] = $cartSubTotal;
50
+ $cod_cartDetails['cartItems'] = $cartItems;
51
+
52
+ return $block->codIdentifierHtml($pageIdentifier , $cod_cartDetails);
53
+ }
54
  }
app/design/frontend/base/default/layout/conversionsondemand/conversions360/conversions360.xml CHANGED
@@ -1,107 +1,107 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <layout version="0.1.0">
3
- <default>
4
- <reference name="before_body_end">
5
- <block type="conversions360/code" name="conversionsondemand_conversions360" template="conversionsondemand/conversions360/code.phtml" as="conversionsondemand_conversions360" />
6
- </reference>
7
- </default>
8
- <catalog_product_view>
9
- <reference name="head">
10
- <block type="conversions360/identifier" name="conversions360.identifier.product">
11
- <action method="setCodIdentifier">
12
- <value>PRODUCT</value>
13
- </action>
14
- </block>
15
- </reference>
16
- </catalog_product_view>
17
- <checkout_cart_index>
18
- <reference name="head">
19
- <block type="conversions360/identifier" name="conversions360.identifier.cart">
20
- <action method="setCodIdentifier">
21
- <value>CART</value>
22
- </action>
23
- </block>
24
- </reference>
25
- </checkout_cart_index>
26
- <checkout_onepage_index>
27
- <reference name="head">
28
- <block type="conversions360/identifier" name="conversions360.identifier.checkout">
29
- <action method="setCodIdentifier">
30
- <value>CHECKOUT</value>
31
- </action>
32
- </block>
33
- </reference>
34
- </checkout_onepage_index>
35
- <checkout_onepage_success translate="label">
36
- <reference name="head">
37
- <block type="conversions360/success" name="conversions360.success.onepage" template="conversionsondemand/conversions360/success.phtml">
38
- <action method="setCodIdentifier">
39
- <value>SUCCESS</value>
40
- </action>
41
- </block>
42
- </reference>
43
- </checkout_onepage_success>
44
- <checkout_multishipping_login>
45
- <reference name="head">
46
- <block type="conversions360/identifier" name="conversions360.identifier.checkout.multishipping.login">
47
- <action method="setCodIdentifier">
48
- <value>CHECKOUT</value>
49
- </action>
50
- </block>
51
- </reference>
52
- </checkout_multishipping_login>
53
- <checkout_multishipping_register>
54
- <reference name="head">
55
- <block type="conversions360/identifier" name="conversions360.identifier.checkout.multishipping.register">
56
- <action method="setCodIdentifier">
57
- <value>CHECKOUT</value>
58
- </action>
59
- </block>
60
- </reference>
61
- </checkout_multishipping_register>
62
- <checkout_multishipping_addresses>
63
- <reference name="head">
64
- <block type="conversions360/identifier" name="conversions360.identifier.checkout.multishipping.addresses">
65
- <action method="setCodIdentifier">
66
- <value>CHECKOUT</value>
67
- </action>
68
- </block>
69
- </reference>
70
- </checkout_multishipping_addresses>
71
- <checkout_multishipping_shipping>
72
- <reference name="head">
73
- <block type="conversions360/identifier" name="conversions360.identifier.checkout.multishipping.shipping">
74
- <action method="setCodIdentifier">
75
- <value>CHECKOUT</value>
76
- </action>
77
- </block>
78
- </reference>
79
- </checkout_multishipping_shipping>
80
- <checkout_multishipping_billing>
81
- <reference name="head">
82
- <block type="conversions360/identifier" name="conversions360.identifier.checkout.multishipping.billing">
83
- <action method="setCodIdentifier">
84
- <value>CHECKOUT</value>
85
- </action>
86
- </block>
87
- </reference>
88
- </checkout_multishipping_billing>
89
- <checkout_multishipping_overview>
90
- <reference name="head">
91
- <block type="conversions360/identifier" name="conversions360.identifier.checkout.multishipping.overview">
92
- <action method="setCodIdentifier">
93
- <value>CHECKOUT</value>
94
- </action>
95
- </block>
96
- </reference>
97
- </checkout_multishipping_overview>
98
- <checkout_multishipping_success translate="label">
99
- <reference name="head">
100
- <block type="conversions360/multishipping_success" name="conversions360.success.multishipping" template="conversionsondemand/conversions360/success.phtml">
101
- <action method="setCodIdentifier">
102
- <value>SUCCESS</value>
103
- </action>
104
- </block>
105
- </reference>
106
- </checkout_multishipping_success>
107
- </layout>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="before_body_end">
5
+ <block type="conversions360/code" name="conversionsondemand_conversions360" template="conversionsondemand/conversions360/code.phtml" as="conversionsondemand_conversions360" />
6
+ </reference>
7
+ </default>
8
+ <catalog_product_view>
9
+ <reference name="head">
10
+ <block type="conversions360/identifier" name="conversions360.identifier.product">
11
+ <action method="setCodIdentifier">
12
+ <value>PRODUCT</value>
13
+ </action>
14
+ </block>
15
+ </reference>
16
+ </catalog_product_view>
17
+ <checkout_cart_index>
18
+ <reference name="head">
19
+ <block type="conversions360/identifier" name="conversions360.identifier.cart">
20
+ <action method="setCodIdentifier">
21
+ <value>CART</value>
22
+ </action>
23
+ </block>
24
+ </reference>
25
+ </checkout_cart_index>
26
+ <checkout_onepage_index>
27
+ <reference name="head">
28
+ <block type="conversions360/identifier" name="conversions360.identifier.checkout">
29
+ <action method="setCodIdentifier">
30
+ <value>CHECKOUT</value>
31
+ </action>
32
+ </block>
33
+ </reference>
34
+ </checkout_onepage_index>
35
+ <checkout_onepage_success translate="label">
36
+ <reference name="head">
37
+ <block type="conversions360/success" name="conversions360.success.onepage" template="conversionsondemand/conversions360/success.phtml">
38
+ <action method="setCodIdentifier">
39
+ <value>SUCCESS</value>
40
+ </action>
41
+ </block>
42
+ </reference>
43
+ </checkout_onepage_success>
44
+ <checkout_multishipping_login>
45
+ <reference name="head">
46
+ <block type="conversions360/identifier" name="conversions360.identifier.checkout.multishipping.login">
47
+ <action method="setCodIdentifier">
48
+ <value>CHECKOUT</value>
49
+ </action>
50
+ </block>
51
+ </reference>
52
+ </checkout_multishipping_login>
53
+ <checkout_multishipping_register>
54
+ <reference name="head">
55
+ <block type="conversions360/identifier" name="conversions360.identifier.checkout.multishipping.register">
56
+ <action method="setCodIdentifier">
57
+ <value>CHECKOUT</value>
58
+ </action>
59
+ </block>
60
+ </reference>
61
+ </checkout_multishipping_register>
62
+ <checkout_multishipping_addresses>
63
+ <reference name="head">
64
+ <block type="conversions360/identifier" name="conversions360.identifier.checkout.multishipping.addresses">
65
+ <action method="setCodIdentifier">
66
+ <value>CHECKOUT</value>
67
+ </action>
68
+ </block>
69
+ </reference>
70
+ </checkout_multishipping_addresses>
71
+ <checkout_multishipping_shipping>
72
+ <reference name="head">
73
+ <block type="conversions360/identifier" name="conversions360.identifier.checkout.multishipping.shipping">
74
+ <action method="setCodIdentifier">
75
+ <value>CHECKOUT</value>
76
+ </action>
77
+ </block>
78
+ </reference>
79
+ </checkout_multishipping_shipping>
80
+ <checkout_multishipping_billing>
81
+ <reference name="head">
82
+ <block type="conversions360/identifier" name="conversions360.identifier.checkout.multishipping.billing">
83
+ <action method="setCodIdentifier">
84
+ <value>CHECKOUT</value>
85
+ </action>
86
+ </block>
87
+ </reference>
88
+ </checkout_multishipping_billing>
89
+ <checkout_multishipping_overview>
90
+ <reference name="head">
91
+ <block type="conversions360/identifier" name="conversions360.identifier.checkout.multishipping.overview">
92
+ <action method="setCodIdentifier">
93
+ <value>CHECKOUT</value>
94
+ </action>
95
+ </block>
96
+ </reference>
97
+ </checkout_multishipping_overview>
98
+ <checkout_multishipping_success translate="label">
99
+ <reference name="head">
100
+ <block type="conversions360/multishipping_success" name="conversions360.success.multishipping" template="conversionsondemand/conversions360/success.phtml">
101
+ <action method="setCodIdentifier">
102
+ <value>SUCCESS</value>
103
+ </action>
104
+ </block>
105
+ </reference>
106
+ </checkout_multishipping_success>
107
+ </layout>
app/design/frontend/base/default/template/conversionsondemand/conversions360/code.phtml CHANGED
@@ -1,17 +1,17 @@
1
- <?php
2
- if($this->codSnippetEnabled() && strlen($this->getStoreIdentifier()) > 0):
3
- $storeIdentifier = strip_tags($this->getStoreIdentifier());
4
- $storePlatform = strip_tags($this->getStorePlatform());
5
- $codServiceUrl = $this->getCodServiceUrl() . 'magento-loader.php?d=' . $storeIdentifier . '&p=' . $storePlatform ;
6
- ?>
7
- <!--- Conversions On Demand script, more info at www.conversionsondemand.com - Do Not Remove or Replace -->
8
- <script language="javascript">
9
- var cod_cartSubtotalAmt = parseFloat(<?php echo floatval(Mage::helper('conversionsondemand_conversions360')->getCartSubTotal()); ?>);
10
- var cod_cartItems = "<?php echo Mage::helper('conversionsondemand_conversions360')->getCartItems(); ?>";
11
- var COD_CONFIG= {'platform': '<?php echo $storePlatform; ?>','stoken':'<?php echo $storeIdentifier; ?>'};
12
- </script>
13
- <script language=javascript src="<?php echo $codServiceUrl; ?>"></script>
14
- <!--- Conversions On Demand script, more info at www.conversionsondemand.com - Do Not Remove or Replace -->
15
- <?php
16
- endif;
17
  ?>
1
+ <?php
2
+ if($this->codSnippetEnabled() && strlen($this->getStoreIdentifier()) > 0):
3
+ $storeIdentifier = strip_tags($this->getStoreIdentifier());
4
+ $storePlatform = strip_tags($this->getStorePlatform());
5
+ $codServiceUrl = $this->getCodServiceUrl() . 'magento-loader.php?d=' . $storeIdentifier . '&p=' . $storePlatform ;
6
+ ?>
7
+ <!--- Conversions On Demand script, more info at www.conversionsondemand.com - Do Not Remove or Replace -->
8
+ <script language="javascript">
9
+ var cod_cartSubtotalAmt = parseFloat(<?php echo floatval(Mage::helper('conversionsondemand_conversions360')->getCartSubTotal()); ?>);
10
+ var cod_cartItems = "<?php echo Mage::helper('conversionsondemand_conversions360')->getCartItems(); ?>";
11
+ var COD_CONFIG= {'platform': '<?php echo $storePlatform; ?>','stoken':'<?php echo $storeIdentifier; ?>'};
12
+ </script>
13
+ <script language=javascript src="<?php echo $codServiceUrl; ?>"></script>
14
+ <!--- Conversions On Demand script, more info at www.conversionsondemand.com - Do Not Remove or Replace -->
15
+ <?php
16
+ endif;
17
  ?>
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,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Exclusiveconcepts4_Conversionsondemand</name>
4
- <version>1.0.0</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>
@@ -18,11 +18,11 @@ The Cart Closer is designed to convert shoppers that abandon the cart before com
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>Email Booster Release 1.0.0</notes>
22
- <authors><author><name>Frank Kjaersgaard</name><user>auto-converted</user><email>fkjaersgaard@exclusiveconcepts.com</email></author></authors>
23
- <date>2015-08-17</date>
24
- <time>10:47:45</time>
25
- <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="55ebe5ae23049e1af8c1a3e782203407"/><file name="Identifier.php" hash="e13d08c9fb0dbae88cf3f024796741f0"/><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="e84921a03b4e986e69da129d0a39b4d7"/></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="3698c3553a37b1799afe2899a9937a96"/></dir></dir></dir><dir name="template"><dir name="conversionsondemand"><dir name="conversions360"><file name="code.phtml" hash="521f808238bfc4d32d9d9e845511319b"/><file name="success.phtml" hash="0f4f25812b1484d69e8b6285213ef616"/></dir></dir></dir></dir></dir></dir></target></contents>
26
  <compatible/>
27
- <dependencies/>
28
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Exclusiveconcepts4_Conversionsondemand</name>
4
+ <version>1.0.1</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>
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>09:53:27</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>