Version Notes
Extension upgraded to support CC 3.0
Download this release
Release Info
Developer | Magento Core Team |
Extension | Exclusiveconcepts_Conversionsondemand |
Version | 1.1.7 |
Comparing to | |
See all releases |
Code changes from version 1.1.6 to 1.1.7
- 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/layout/conversionsondemand/conversions360/conversions360.xml +107 -107
- app/design/frontend/base/default/template/conversionsondemand/conversions360/code.phtml +16 -15
- package.xml +6 -6
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/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,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,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Exclusiveconcepts_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>
|
@@ -32,11 +32,11 @@ Time2Buy is patent-pending technology that monitors the browsing 
|
|
32 |
behavior of shoppers on your site, and displays hyper time-sensitive 
|
33 |
offers to motivate shoppers to immediately buy from you. You can control
|
34 |
the time, trigger behavior and offer value.</description>
|
35 |
-
<notes>Extension upgraded to support
|
36 |
-
<authors><author><name>
|
37 |
-
<date>
|
38 |
-
<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="
|
40 |
<compatible/>
|
41 |
<dependencies/>
|
42 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Exclusiveconcepts_Conversionsondemand</name>
|
4 |
+
<version>1.1.7</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>
|
32 |
behavior of shoppers on your site, and displays hyper time-sensitive 
|
33 |
offers to motivate shoppers to immediately buy from you. You can control
|
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-07</date>
|
38 |
+
<time>09:35:43</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="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>
|
40 |
<compatible/>
|
41 |
<dependencies/>
|
42 |
</package>
|