OwnedIt_Platform - Version 0.1.1

Version Notes

Integrates your store to Owned It platform

Download this release

Release Info

Developer Owned_it
Extension OwnedIt_Platform
Version 0.1.1
Comparing to
See all releases


Version 0.1.1

._app ADDED
Binary file
app/._code ADDED
Binary file
app/._design ADDED
Binary file
app/._etc ADDED
Binary file
app/code/._local ADDED
Binary file
app/code/local/._OwnedItModule ADDED
Binary file
app/code/local/OwnedItModule/._OwnedIt ADDED
Binary file
app/code/local/OwnedItModule/OwnedIt/._Block ADDED
Binary file
app/code/local/OwnedItModule/OwnedIt/._Helper ADDED
Binary file
app/code/local/OwnedItModule/OwnedIt/._etc ADDED
Binary file
app/code/local/OwnedItModule/OwnedIt/Block/._Main.php ADDED
Binary file
app/code/local/OwnedItModule/OwnedIt/Block/Main.php ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ *Product Name : Owned it Checkout Addon / Plugin
5
+ *Copyright (c) 2012 Owned it Ltd
6
+ *
7
+ * Owned it:
8
+ *
9
+ * NOTICE OF LICENSE
10
+ *
11
+ *Copyright (c) <2011> <Owned it Ltd>
12
+ *
13
+ *Permission is hereby granted, free of charge, to any person
14
+ *obtaining a copy of this software and associated
15
+ *documentation files (the "Software"),to deal in the Software
16
+ *without restriction,including without limitation the rights
17
+ *to use, copy, modify, merge, publish, distribute, sublicense,
18
+ *and/or sell copies of the Software, and to permit persons
19
+ *to whom the Software is furnished to do so, subject to the
20
+ *following conditions:
21
+ *
22
+ *The above copyright notice and this permission notice shall be
23
+ *included in all copies or substantial portions of the Software.
24
+ *
25
+ *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
26
+ *OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
27
+ *LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
29
+ *IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
30
+ *BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
31
+ *WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
32
+ *ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
33
+ *THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34
+ *
35
+ *
36
+ * @license http://www.opensource.org/licenses/mit-license.php(MIT)
37
+ * @author Owned it Ltd. (http://www.ownedit.com)
38
+ *
39
+ **/
40
+
41
+
42
+ class OwnedItModule_OwnedIt_Block_Main extends Mage_Core_Block_Template {
43
+ /**
44
+ * Prepate layout
45
+ * @return object
46
+ */
47
+ const ANCHOR_CLASS= 'buttons-set';
48
+
49
+ protected function _toHtml() {
50
+
51
+ $braggJS = '';
52
+
53
+ if ($this->getAnchorClass() && $this->getAnchorClass() != self::ANCHOR_CLASS) {
54
+ $anchorClass = $this->getAnchorClass();
55
+ $braggJS = parent::_toHtml();
56
+ } else {
57
+ $anchorClass = self::ANCHOR_CLASS;
58
+ }
59
+
60
+ if (Mage::helper('ownedit')->isActive()) {
61
+
62
+ $order = Mage::getModel('sales/order')->load(Mage::getSingleton('checkout/session')->getLastOrderId());
63
+ $email = $order->getCustomerEmail();
64
+
65
+ $arr = array();
66
+ $arr['order_id'] = $order->getRealOrderId();
67
+ $arr['customer_email'] = $email;
68
+ $arr['order_value'] = $order->getGrandTotal();
69
+ $arr['order_currency'] = $order->getOrderCurrencyCode();
70
+ $arr['store_name']=$store_name;
71
+
72
+ $store_id = Mage::helper('ownedit')->getStoreId();
73
+ $braggJS.="<script type=\"text/javascript\" src=\"https://www.ownedit.com/ownedit_js/ownedit.js?store_id=$store_id&anchor=$anchorClass\"></script>";
74
+
75
+ $itemQty = count($order->getAllVisibleItems());
76
+ $products = array();
77
+
78
+ foreach ($order->getAllVisibleItems() as $item) {
79
+ $product = Mage::getModel('catalog/product')->load($item->getProductId());
80
+
81
+ $product_id = $item->getProductId();
82
+ $product_url= $product->getProductUrl();
83
+ //$product_image_url=$this->helper('catalog/image')->init($product, 'thumbnail');
84
+ $product_image_url = $product->getImageUrl();
85
+ $product_name=$product->getName();
86
+ $store = Mage::app()->getStore();
87
+ $currency=$store->getCurrentCurrencyCode();
88
+ $store_name = $store->getName();
89
+ $price= sprintf("%.2f",$product->getPrice());
90
+ $category = $product->getCategory();
91
+ $sku = $product->getSku();
92
+ $qty = $item->getQtyToInvoice();
93
+ $cat_name = "";
94
+ if(isset($category))
95
+ {
96
+ $cat_name = $category->getName();
97
+ }
98
+ $desc = $product->getShortDescription();
99
+
100
+ $prod = array();
101
+ $prod['product_name']=$product_name;
102
+ $prod['product_url']=$product_url;
103
+ $prod['product_desc']=$desc;
104
+ $prod['product_image_url']=$product_image_url;
105
+ $prod['product_price']=$price;
106
+ $prod['currency']=$currency;
107
+ $prod['product_id']=$product_id;
108
+ $prod['product_category']=$cat_name;
109
+ $prod['product_sku']=$cat_name;
110
+ $prod['product_quantiry']=$qty;
111
+ array_push($products,$prod);
112
+ }
113
+
114
+ $arr['products']=$products;
115
+ $json = json_encode($arr);
116
+
117
+ $braggJS.="<script type=\"text/javascript\">";
118
+ $braggJS.="function post_to_owned_it(){";
119
+ $braggJS.="var details =$json;";
120
+ $braggJS.="post_it(details);}onLoadCallBack(post_to_owned_it);</script>";
121
+
122
+ }
123
+ return $braggJS;
124
+ }
125
+
126
+ protected function getAnchorClass() {
127
+ return Mage::helper('ownedit')->getAnchorClass();
128
+ }
129
+
130
+ }
app/code/local/OwnedItModule/OwnedIt/Helper/._Data.php ADDED
Binary file
app/code/local/OwnedItModule/OwnedIt/Helper/Data.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *Product Name : Owned it Checkout Addon / Plugin
4
+ *Copyright (c) 2012 Owned it Ltd
5
+ *
6
+ * Owned it:
7
+ *
8
+ * NOTICE OF LICENSE
9
+ *
10
+ *Copyright (c) <2011> <Owned it Ltd>
11
+ *
12
+ *Permission is hereby granted, free of charge, to any person
13
+ *obtaining a copy of this software and associated
14
+ *documentation files (the "Software"),to deal in the Software
15
+ *without restriction,including without limitation the rights
16
+ *to use, copy, modify, merge, publish, distribute, sublicense,
17
+ *and/or sell copies of the Software, and to permit persons
18
+ *to whom the Software is furnished to do so, subject to the
19
+ *following conditions:
20
+ *
21
+ *The above copyright notice and this permission notice shall be
22
+ *included in all copies or substantial portions of the Software.
23
+ *
24
+ *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
25
+ *OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
26
+ *LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
28
+ *IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
29
+ *BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
30
+ *WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
31
+ *ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
32
+ *THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33
+ *
34
+ *
35
+ * @license http://www.opensource.org/licenses/mit-license.php(MIT)
36
+ * @author Owned it Ltd. (http://www.ownedit.com)
37
+ *
38
+ **/
39
+ class OwnedItModule_OwnedIt_Helper_Data extends Mage_Catalog_Helper_Data {
40
+
41
+ private $configuration = null;
42
+ public function getGenConf() {
43
+ if (!$this->configuration) {
44
+ $this->configuration = new Varien_Object;
45
+ $this->configuration->setData(Mage::getStoreConfig('ownedit/general'));
46
+ }
47
+ return $this->configuration;
48
+ }
49
+
50
+ public function getStoreId() {
51
+ return $this->getGenConf()->getStoreId();
52
+ }
53
+
54
+ public function isActive() {
55
+ return ($this->getGenConf()->getEnabled() && $this->getStoreId());
56
+ }
57
+
58
+ public function getAnchorClass() {
59
+ return $this->getGenConf()->getAnchorCssClass();
60
+ }
61
+
62
+ }
app/code/local/OwnedItModule/OwnedIt/etc/._config.xml ADDED
Binary file
app/code/local/OwnedItModule/OwnedIt/etc/._system.xml ADDED
Binary file
app/code/local/OwnedItModule/OwnedIt/etc/config.xml ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ *Product Name : Owned it Checkout Addon / Plugin
5
+ *Copyright (c) 2012 Owned it Ltd
6
+ *
7
+ * Owned it:
8
+ *
9
+ * NOTICE OF LICENSE
10
+ *
11
+ *Copyright (c) <2011> <Owned it Ltd>
12
+ *
13
+ *Permission is hereby granted, free of charge, to any person
14
+ *obtaining a copy of this software and associated
15
+ *documentation files (the "Software"),to deal in the Software
16
+ *without restriction,including without limitation the rights
17
+ *to use, copy, modify, merge, publish, distribute, sublicense,
18
+ *and/or sell copies of the Software, and to permit persons
19
+ *to whom the Software is furnished to do so, subject to the
20
+ *following conditions:
21
+ *
22
+ *The above copyright notice and this permission notice shall be
23
+ *included in all copies or substantial portions of the Software.
24
+ *
25
+ *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
26
+ *OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
27
+ *LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
29
+ *IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
30
+ *BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
31
+ *WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
32
+ *ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
33
+ *THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34
+ *
35
+ *
36
+ * @license http://www.opensource.org/licenses/mit-license.php(MIT)
37
+ * @author Owned it Ltd. (http://www.ownedit.com)
38
+ *
39
+ **/
40
+ -->
41
+
42
+ <config>
43
+ <modules>
44
+ <OwnedItModule_OwnedIt>
45
+ <version>0.1.0</version>
46
+ </OwnedItModule_OwnedIt>
47
+ </modules>
48
+ <global>
49
+ <blocks>
50
+ <ownedit>
51
+ <class>OwnedItModule_OwnedIt_Block</class>
52
+ </ownedit>
53
+ </blocks>
54
+ <helpers>
55
+ <ownedit>
56
+ <class>OwnedItModule_OwnedIt_Helper</class>
57
+ </ownedit>
58
+ </helpers>
59
+ </global>
60
+ <frontend>
61
+ <layout>
62
+ <updates>
63
+ <ownedit>
64
+ <file>ownedit.xml</file>
65
+ </ownedit>
66
+ </updates>
67
+ </layout>
68
+ </frontend>
69
+ <adminhtml>
70
+ <acl>
71
+ <resources>
72
+ <admin>
73
+ <children>
74
+ <system>
75
+ <children>
76
+ <config>
77
+ <children>
78
+ <ownedit>
79
+ <title>Owned It to Magento Integration</title>
80
+ </ownedit>
81
+ </children>
82
+ </config>
83
+ </children>
84
+ </system>
85
+ </children>
86
+ </admin>
87
+ </resources>
88
+ </acl>
89
+ </adminhtml>
90
+ <default>
91
+ <ownedit>
92
+ <general>
93
+ <enabled>0</enabled>
94
+ <anchor_css_class>buttons-set</anchor_css_class>
95
+ </general>
96
+ </ownedit>
97
+ </default>
98
+ </config>
app/code/local/OwnedItModule/OwnedIt/etc/system.xml ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ *Product Name : Owned it Checkout Addon / Plugin
5
+ *Copyright (c) 2012 Owned it Ltd
6
+ *
7
+ * Owned it:
8
+ *
9
+ * NOTICE OF LICENSE
10
+ *
11
+ *Copyright (c) <2011> <Owned it Ltd>
12
+ *
13
+ *Permission is hereby granted, free of charge, to any person
14
+ *obtaining a copy of this software and associated
15
+ *documentation files (the "Software"),to deal in the Software
16
+ *without restriction,including without limitation the rights
17
+ *to use, copy, modify, merge, publish, distribute, sublicense,
18
+ *and/or sell copies of the Software, and to permit persons
19
+ *to whom the Software is furnished to do so, subject to the
20
+ *following conditions:
21
+ *
22
+ *The above copyright notice and this permission notice shall be
23
+ *included in all copies or substantial portions of the Software.
24
+ *
25
+ *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
26
+ *OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
27
+ *LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
29
+ *IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
30
+ *BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
31
+ *WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
32
+ *ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
33
+ *THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34
+ *
35
+ *
36
+ * @license http://www.opensource.org/licenses/mit-license.php(MIT)
37
+ * @author Owned it Ltd. (http://www.ownedit.com)
38
+ *
39
+ **/
40
+ -->
41
+ <config>
42
+ <sections>
43
+ <ownedit>
44
+ <label>Owned It</label>
45
+ <tab>sales</tab>
46
+ <frontend_type>text</frontend_type>
47
+ <sort_order>305</sort_order>
48
+ <show_in_default>1</show_in_default>
49
+ <show_in_website>1</show_in_website>
50
+ <show_in_store>1</show_in_store>
51
+ <groups>
52
+ <general translate="label">
53
+ <label>Owned It Settings</label>
54
+ <frontend_type>text</frontend_type>
55
+ <sort_order>100</sort_order>
56
+ <show_in_default>1</show_in_default>
57
+ <show_in_website>1</show_in_website>
58
+ <show_in_store>1</show_in_store>
59
+ <fields>
60
+ <store_id translate="label">
61
+ <label>Owned It store ID</label>
62
+ <frontend_type>text</frontend_type>
63
+ <sort_order>10</sort_order>
64
+ <show_in_default>1</show_in_default>
65
+ <show_in_website>1</show_in_website>
66
+ <show_in_store>1</show_in_store>
67
+ <comment>To enable this extension you will need a store ID from Owned It. To get your store ID click on the button below.
68
+ </comment>
69
+ </store_id>
70
+ <get_storeid translate="button_label">
71
+ <frontend_type>hidden</frontend_type>
72
+ <sort_order>20</sort_order>
73
+ <comment><![CDATA[<button id="ownedit_general_get_storeid" type="button" class="scalable" onclick="javascript:window.open('http://www.ownedit.com/', 'GetStoreId','left=100, top=100, width=1000, height=600'); return false;" ><span> Get Store ID</span></button>]]>
74
+ </comment>
75
+ <show_in_default>1</show_in_default>
76
+ <show_in_website>1</show_in_website>
77
+ <show_in_store>1</show_in_store>
78
+ </get_storeid>
79
+ <enabled translate="label">
80
+ <label>Enable Owned It</label>
81
+ <frontend_type>select</frontend_type>
82
+ <source_model>adminhtml/system_config_source_yesno</source_model>
83
+ <sort_order>30</sort_order>
84
+ <show_in_default>1</show_in_default>
85
+ <show_in_website>1</show_in_website>
86
+ <show_in_store>1</show_in_store>
87
+ </enabled>
88
+ <anchor_css_class translate="label">
89
+ <label>Anchor CSS class to position the Owned It sharing banner</label>
90
+ <frontend_type>text</frontend_type>
91
+ <sort_order>40</sort_order>
92
+ <show_in_default>1</show_in_default>
93
+ <show_in_website>1</show_in_website>
94
+ <show_in_store>1</show_in_store>
95
+ <comment><![CDATA[Provide the anchor CSS class for positioning the Owned It sharing banner on the order confirmation page. Leave this field blank to use the default value <b>('buttons-set')</b> ]]>
96
+ </comment>
97
+ </anchor_css_class>
98
+ </fields>
99
+ </general>
100
+ </groups>
101
+ </ownedit>
102
+ </sections>
103
+ </config>
app/design/._frontend ADDED
Binary file
app/design/frontend/._base ADDED
Binary file
app/design/frontend/base/._default ADDED
Binary file
app/design/frontend/base/default/._layout ADDED
Binary file
app/design/frontend/base/default/._template ADDED
Binary file
app/design/frontend/base/default/layout/._ownedit.xml ADDED
Binary file
app/design/frontend/base/default/layout/ownedit.xml ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ *Product Name : Owned it Checkout Addon / Plugin
5
+ *Copyright (c) 2012 Owned it Ltd
6
+ *
7
+ * Owned it:
8
+ *
9
+ * NOTICE OF LICENSE
10
+ *
11
+ *Copyright (c) <2011> <Owned it Ltd>
12
+ *
13
+ *Permission is hereby granted, free of charge, to any person
14
+ *obtaining a copy of this software and associated
15
+ *documentation files (the "Software"),to deal in the Software
16
+ *without restriction,including without limitation the rights
17
+ *to use, copy, modify, merge, publish, distribute, sublicense,
18
+ *and/or sell copies of the Software, and to permit persons
19
+ *to whom the Software is furnished to do so, subject to the
20
+ *following conditions:
21
+ *
22
+ *The above copyright notice and this permission notice shall be
23
+ *included in all copies or substantial portions of the Software.
24
+ *
25
+ *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
26
+ *OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
27
+ *LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
29
+ *IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
30
+ *BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
31
+ *WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
32
+ *ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
33
+ *THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34
+ *
35
+ *
36
+ * @license http://www.opensource.org/licenses/mit-license.php(MIT)
37
+ * @author Owned it Ltd. (http://www.ownedit.com)
38
+ *
39
+ **/
40
+ -->
41
+ <layout version="0.1.0">
42
+
43
+ <checkout_multishipping_success translate="label">
44
+ <reference name="content">
45
+ <block type="ownedit/main" name="ownedit_checkout" after="-">
46
+ <action method="setTemplate">
47
+ <template>ownedit/anchor.phtml</template>
48
+ </action>
49
+ </block>
50
+ </reference>
51
+ </checkout_multishipping_success>
52
+
53
+ <checkout_onepage_success translate="label">
54
+ <reference name="content">
55
+ <block type="ownedit/main" name="ownedit_checkout" after="-">
56
+ <action method="setTemplate">
57
+ <template>ownedit/anchor.phtml</template>
58
+ </action>
59
+ </block>
60
+ </reference>
61
+ </checkout_onepage_success>
62
+ </layout>
app/design/frontend/base/default/template/._ownedit ADDED
Binary file
app/design/frontend/base/default/template/ownedit/._anchor.phtml ADDED
Binary file
app/design/frontend/base/default/template/ownedit/anchor.phtml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *Product Name : Owned it Checkout Addon / Plugin
4
+ *Copyright (c) 2012 Owned it Ltd
5
+ *
6
+ * Owned it:
7
+ *
8
+ * NOTICE OF LICENSE
9
+ *
10
+ *Copyright (c) <2011> <Owned it Ltd>
11
+ *
12
+ *Permission is hereby granted, free of charge, to any person
13
+ *obtaining a copy of this software and associated
14
+ *documentation files (the "Software"),to deal in the Software
15
+ *without restriction,including without limitation the rights
16
+ *to use, copy, modify, merge, publish, distribute, sublicense,
17
+ *and/or sell copies of the Software, and to permit persons
18
+ *to whom the Software is furnished to do so, subject to the
19
+ *following conditions:
20
+ *
21
+ *The above copyright notice and this permission notice shall be
22
+ *included in all copies or substantial portions of the Software.
23
+ *
24
+ *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
25
+ *OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
26
+ *LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
28
+ *IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
29
+ *BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
30
+ *WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
31
+ *ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
32
+ *THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33
+ *
34
+ *
35
+ * @license http://www.opensource.org/licenses/mit-license.php(MIT)
36
+ * @author Owned it Ltd. (http://www.ownedit.com)
37
+ *
38
+ **/
39
+ ?>
40
+
41
+
42
+ <div class="<?php echo $this->getAnchorClass()?>" style ="clear: both; margin: 3px 0 0;padding: 6px 0 0; text-align: right;"></div>
43
+
44
+
45
+
46
+
app/etc/._modules ADDED
Binary file
app/etc/modules/._OwnedItModule_OwnedIt.xml ADDED
Binary file
app/etc/modules/OwnedItModule_OwnedIt.xml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ *Product Name : Owned it Checkout Addon / Plugin
5
+ *Copyright (c) 2012 Owned it Ltd
6
+ *
7
+ * Owned it:
8
+ *
9
+ * NOTICE OF LICENSE
10
+ *
11
+ *Copyright (c) <2011> <Owned it Ltd>
12
+ *
13
+ *Permission is hereby granted, free of charge, to any person
14
+ *obtaining a copy of this software and associated
15
+ *documentation files (the "Software"),to deal in the Software
16
+ *without restriction,including without limitation the rights
17
+ *to use, copy, modify, merge, publish, distribute, sublicense,
18
+ *and/or sell copies of the Software, and to permit persons
19
+ *to whom the Software is furnished to do so, subject to the
20
+ *following conditions:
21
+ *
22
+ *The above copyright notice and this permission notice shall be
23
+ *included in all copies or substantial portions of the Software.
24
+ *
25
+ *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
26
+ *OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
27
+ *LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
29
+ *IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
30
+ *BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
31
+ *WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
32
+ *ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
33
+ *THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34
+ *
35
+ *
36
+ * @license http://www.opensource.org/licenses/mit-license.php(MIT)
37
+ * @author Owned it Ltd. (http://www.ownedit.com)
38
+ *
39
+ **/
40
+ -->
41
+ <config>
42
+ <modules>
43
+ <OwnedItModule_OwnedIt>
44
+ <active>true</active>
45
+ <codePool>local</codePool>
46
+ </OwnedItModule_OwnedIt>
47
+ </modules>
48
+ </config>
package.xml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>OwnedIt_Platform</name>
4
+ <version>0.1.1</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://www.opensource.org/licenses/mit-license.php">MIT</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Owned it - social referrals and customer engagement apps </summary>
10
+ <description>Owned It helps you to create powerful post purchase social, referral and feedback campaigns on your Magento Store that deliver rich insights across different channels in real time. This checkout extension facilitates product sharing on different social networks such as Facebook, Twitter, Google plus and Email and encourages them to bring in new customers to your store.&#xD;
11
+ &#xD;
12
+ See more at OwnedIt.com</description>
13
+ <notes>Integrates your store to Owned It platform</notes>
14
+ <authors><author><name>Owned_it</name><user>Owned_it</user><email>support@ownedit.com</email></author></authors>
15
+ <date>2012-07-10</date>
16
+ <time>17:28:01</time>
17
+ <contents><target name="magelocal"><dir name="OwnedItModule"><dir name="OwnedIt"><dir name="Block"><file name="Main.php" hash="f4021baf10e688d20c7169c5e852354d"/></dir><dir name="Helper"><file name="Data.php" hash="3e3c71f9e0db22ef0df4384e99c56668"/></dir><dir name="etc"><file name="config.xml" hash="e78f8d0e59dc6091045a902b2af4daad"/><file name="system.xml" hash="a958fbc5d1b6b7e2ab339c14667f790e"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ownedit.xml" hash="d8db1f3de35cb7558193a1a9606dacc1"/></dir><dir name="template"><dir name="ownedit"><file name="anchor.phtml" hash="4544775f092516c68558dad197dc016d"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OwnedItModule_OwnedIt.xml" hash="269aa870657f6753f38fda69c814fce8"/></dir></target></contents>
18
+ <compatible/>
19
+ <dependencies><required><php><min>5.2.0</min><max>5.6.0</max></php></required></dependencies>
20
+ </package>