Version Notes
Minor Upgrade to support CC 3.0
Download this release
Release Info
Developer | Magento Core Team |
Extension | Exclusiveconcepts2_Conversionsondemand |
Version | 1.1.8 |
Comparing to | |
See all releases |
Code changes from version 1.1.7 to 1.1.8
- app/code/community/Conversionsondemand/Conversions360/Block/Code.php +66 -66
- app/code/community/Conversionsondemand/Conversions360/Block/Identifier.php +113 -107
- app/code/community/Conversionsondemand/Conversions360/Helper/Data.php +28 -0
- app/code/community/Conversionsondemand/Conversions360/Model/Container/Identifier.php +53 -50
- app/design/frontend/base/default/template/conversionsondemand/conversions360/code.phtml +16 -15
- package.xml +12 -10
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,108 +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, $
|
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(' . $cartSubTotal . ');'
|
59 |
-
.
|
60 |
-
.'
|
61 |
-
.'
|
62 |
-
.'
|
63 |
-
.'
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
. '
|
69 |
-
. '
|
70 |
-
.
|
71 |
-
. $
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
. '
|
77 |
-
. '
|
78 |
-
.
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
*
|
87 |
-
*
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
$cacheKeyInfo
|
93 |
-
$cacheKeyInfo['
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
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
@@ -91,4 +91,32 @@ class Conversionsondemand_Conversions360_Helper_Data extends Mage_Core_Helper_Ab
|
|
91 |
}
|
92 |
return $orderSummary;
|
93 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
}
|
91 |
}
|
92 |
return $orderSummary;
|
93 |
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Return the sub-total amount on the user's shopping cart.
|
97 |
+
*
|
98 |
+
* @return float
|
99 |
+
*/
|
100 |
+
public function getCartSubTotal()
|
101 |
+
{
|
102 |
+
$totals = Mage::getSingleton('checkout/cart')->getQuote()->getTotals();
|
103 |
+
$subTotal = $totals["subtotal"]->getValue();
|
104 |
+
return floatval($subTotal);
|
105 |
+
}
|
106 |
+
|
107 |
+
/**
|
108 |
+
* Return the sub-total amount on the user's shopping cart.
|
109 |
+
*
|
110 |
+
* @return String
|
111 |
+
*/
|
112 |
+
public function getCartItems()
|
113 |
+
{
|
114 |
+
$productName = array();
|
115 |
+
$cart = Mage::getModel('checkout/cart')->getQuote();
|
116 |
+
foreach ($cart->getAllItems() as $item) {
|
117 |
+
$product = $item->getProduct();
|
118 |
+
$productName[] = $product->getUrlModel()->getUrl($product);
|
119 |
+
}
|
120 |
+
return implode(";;",$productName);
|
121 |
+
}
|
122 |
}
|
app/code/community/Conversionsondemand/Conversions360/Model/Container/Identifier.php
CHANGED
@@ -1,51 +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 |
-
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
51 |
}
|
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/template/conversionsondemand/conversions360/code.phtml
CHANGED
@@ -1,16 +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(
|
10 |
-
var
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
16 |
?>
|
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 |
?>
|
package.xml
CHANGED
@@ -1,26 +1,28 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Exclusiveconcepts2_Conversionsondemand</name>
|
4 |
-
<version>1.1.
|
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, and
|
10 |
<description>Conversions On Demand is a comprehensive and easy to manage suite of services to improve conversion rates. 
|
11 |

|
12 |
-
|
13 |

|
14 |
-
|
15 |

|
16 |
-
The
|
|
|
|
|
17 |

|
18 |
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>
|
19 |
-
<notes>
|
20 |
-
<authors><author><name>
|
21 |
-
<date>
|
22 |
-
<time>
|
23 |
-
<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="
|
24 |
<compatible/>
|
25 |
<dependencies/>
|
26 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Exclusiveconcepts2_Conversionsondemand</name>
|
4 |
+
<version>1.1.8</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>Minor Upgrade to support CC 3.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>05:45:24</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>
|