Version Notes
Separate out basic integration code
Download this release
Release Info
Developer | Magento Core Team |
Extension | Shopalizes_Product_Sharing_Widget |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- app/code/community/Shopalize/Basic/Block/Sa.php +0 -41
- app/code/community/Shopalize/Basic/Block/System/Config/Info.php +0 -30
- app/code/community/Shopalize/Basic/Block/System/Config/Info/About.php +0 -32
- app/code/community/Shopalize/Basic/etc/adminhtml.xml +0 -25
- app/code/community/Shopalize/Basic/etc/config.xml +0 -62
- app/code/community/Shopalize/{Productsharingwidget → Productsharing}/Block/Button.php +38 -7
- app/code/community/Shopalize/{Productsharingwidget → Productsharing}/Block/System/Config/Info.php +1 -1
- app/code/community/Shopalize/{Productsharingwidget → Productsharing}/Block/System/Config/Info/About.php +1 -1
- app/code/community/Shopalize/{Basic → Productsharing}/Helper/Data.php +3 -2
- app/code/community/Shopalize/{Productsharingwidget → Productsharing}/etc/adminhtml.xml +24 -24
- app/code/community/Shopalize/{Productsharingwidget → Productsharing}/etc/config.xml +25 -32
- app/code/community/Shopalize/{Basic → Productsharing}/etc/system.xml +10 -10
- app/code/community/Shopalize/Productsharingwidget/Helper/Data.php +0 -10
- app/code/community/Shopalize/Productsharingwidget/etc/system.xml +0 -65
- app/design/frontend/default/default/layout/sbasic.xml +0 -25
- app/design/frontend/default/default/layout/{productsharingwidget.xml → shopalizeproductsharing.xml} +7 -2
- app/design/frontend/default/default/template/{basic/sa.phtml → shopalizeproductsharing/basic_integration.phtml} +2 -2
- app/design/frontend/default/default/template/{productsharingwidget/button.phtml → shopalizeproductsharing/product_integration.phtml} +0 -0
- app/etc/modules/{Shopalize_Basic.xml → Shopalize_Productsharing.xml} +2 -2
- app/etc/modules/Shopalize_Productsharingwidget.xml +0 -9
- package.xml +5 -5
app/code/community/Shopalize/Basic/Block/Sa.php
DELETED
@@ -1,41 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* @company Bytes Technolab<www.bytestechnolab.com>
|
4 |
-
* @author Bytes Technolab<info@bytestechnolab.com>
|
5 |
-
*/
|
6 |
-
|
7 |
-
class Shopalize_Basic_Block_Sa extends Mage_Core_Block_Template
|
8 |
-
{
|
9 |
-
/**
|
10 |
-
* Product Shopalized Merchant Id
|
11 |
-
*/
|
12 |
-
public function getShopalizeMerchantId(){
|
13 |
-
return $this->getConfig('merchant_id', 'settings');
|
14 |
-
}
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Product Shopalized Store Id
|
18 |
-
*/
|
19 |
-
public function getShopalizeStoreId(){
|
20 |
-
return $this->getConfig('store_id', 'settings');
|
21 |
-
}
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Shopalized Product Sharing Enabled
|
25 |
-
*/
|
26 |
-
public function isEnabled(){
|
27 |
-
return $this->getConfig('active', 'settings');
|
28 |
-
}
|
29 |
-
|
30 |
-
/**
|
31 |
-
* Get Config of Product Sharing Extension
|
32 |
-
*/
|
33 |
-
public function getConfig($field, $group = 'settings', $default = null){
|
34 |
-
$value = Mage::getStoreConfig('sbasic/'.$group.'/'.$field);
|
35 |
-
if(!isset($value) or trim($value) == ''){
|
36 |
-
return $default;
|
37 |
-
}else{
|
38 |
-
return $value;
|
39 |
-
}
|
40 |
-
}
|
41 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Basic/Block/System/Config/Info.php
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* @company Bytes Technolab<www.bytestechnolab.com>
|
4 |
-
* @author Bytes Technolab<info@bytestechnolab.com>
|
5 |
-
*/
|
6 |
-
class Shopalize_Basic_Block_System_Config_Info
|
7 |
-
extends Mage_Adminhtml_Block_Abstract
|
8 |
-
implements Varien_Data_Form_Element_Renderer_Interface{
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Render fieldset html
|
12 |
-
*
|
13 |
-
* @param Varien_Data_Form_Element_Abstract $element
|
14 |
-
* @return string
|
15 |
-
*/
|
16 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
17 |
-
{
|
18 |
-
$html = '<div style="background:url(\'http://www.shopalize.com/images/shopalize_icon.png\') no-repeat scroll 15px center #EAF0EE;border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 5px 5px 200px;">
|
19 |
-
<h4>About Shopalize</h4>
|
20 |
-
<p>Shopalize provides a comprehensive Social Commerce platform for online retailers to help increase social sharing and customer referrals from Social Media to their eCommerce stores.<br />Shopalize´s Post Purchase Sharing Plugin appears on your store´s order confirmation page i.e. after checkout is complete. After every purchase is complete, shoppers are prompted and rewarded for sharing their purchase or your store with their friends on Facebook or Twitter. Shopalize also provide an A/B Testing platform to experiment with various campaigns and social analytics suite to measure ROI and track influential customers.<br />
|
21 |
-
<h4>Contact Us</h4>
|
22 |
-
Website: <a href="http://www.shopalize.com" target="_blank">www.shopalize.com</a><br />
|
23 |
-
Email: <a href="mailto:help@shopalize.com">help@shopalize.com</a><br />
|
24 |
-
Skype: adikot<br />
|
25 |
-
</p>
|
26 |
-
</div>';
|
27 |
-
|
28 |
-
return $html;
|
29 |
-
}
|
30 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Basic/Block/System/Config/Info/About.php
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* @company Bytes Technolab<www.bytestechnolab.com>
|
4 |
-
* @author Bytes Technolab<info@bytestechnolab.com>
|
5 |
-
*/
|
6 |
-
|
7 |
-
class Shopalize_Basic_Block_System_Config_Info_About
|
8 |
-
extends Mage_Adminhtml_Block_Abstract
|
9 |
-
implements Varien_Data_Form_Element_Renderer_Interface{
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Render fieldset html
|
13 |
-
*
|
14 |
-
* @param Varien_Data_Form_Element_Abstract $element
|
15 |
-
* @return string
|
16 |
-
*/
|
17 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
18 |
-
{
|
19 |
-
$html = '<div style="background:url(\'http://www.shopalize.com/images/shopalize_icon.png\') no-repeat scroll 15px center #EAF0EE;border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 5px 5px 200px;">
|
20 |
-
<h4>About Shopalize\'s Basic Plugin</h4>
|
21 |
-
<p>
|
22 |
-
Shopalize\'s Basic Plugin appears tracking code on your store\'s all pages before end of body tag. <br />
|
23 |
-
<h4>Contact Us</h4>
|
24 |
-
Website: <a href="http://www.shopalize.com" target="_blank">www.shopalize.com</a><br />
|
25 |
-
Email: <a href="mailto:help@shopalize.com">help@shopalize.com</a><br />
|
26 |
-
Skype: adikot<br/>
|
27 |
-
</p>
|
28 |
-
</div>';
|
29 |
-
|
30 |
-
return $html;
|
31 |
-
}
|
32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Basic/etc/adminhtml.xml
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<config>
|
3 |
-
<acl>
|
4 |
-
<resources>
|
5 |
-
<all>
|
6 |
-
<title>Allow Everything</title>
|
7 |
-
</all>
|
8 |
-
<admin>
|
9 |
-
<children>
|
10 |
-
<system>
|
11 |
-
<children>
|
12 |
-
<config>
|
13 |
-
<children>
|
14 |
-
<sbasic>
|
15 |
-
<title>Shopalize Basic Plugin Settings</title>
|
16 |
-
</sbasic>
|
17 |
-
</children>
|
18 |
-
</config>
|
19 |
-
</children>
|
20 |
-
</system>
|
21 |
-
</children>
|
22 |
-
</admin>
|
23 |
-
</resources>
|
24 |
-
</acl>
|
25 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Basic/etc/config.xml
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* @website http://www.shopalize.com
|
5 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
6 |
-
*/
|
7 |
-
-->
|
8 |
-
<config>
|
9 |
-
<modules>
|
10 |
-
<Shopalize_Basic>
|
11 |
-
<version>0.0.1</version>
|
12 |
-
</Shopalize_Basic>
|
13 |
-
</modules>
|
14 |
-
<global>
|
15 |
-
<helpers>
|
16 |
-
<sbasic>
|
17 |
-
<class>Shopalize_Basic_Helper</class>
|
18 |
-
</sbasic>
|
19 |
-
</helpers>
|
20 |
-
<blocks>
|
21 |
-
<sbasic>
|
22 |
-
<class>Shopalize_Basic_Block</class>
|
23 |
-
</sbasic>
|
24 |
-
</blocks>
|
25 |
-
</global>
|
26 |
-
<frontend>
|
27 |
-
<layout>
|
28 |
-
<updates>
|
29 |
-
<sbasic>
|
30 |
-
<file>sbasic.xml</file>
|
31 |
-
</sbasic>
|
32 |
-
</updates>
|
33 |
-
</layout>
|
34 |
-
</frontend>
|
35 |
-
<adminhtml>
|
36 |
-
<acl>
|
37 |
-
<resources>
|
38 |
-
<all>
|
39 |
-
<title>Allow Everything</title>
|
40 |
-
</all>
|
41 |
-
<admin>
|
42 |
-
<children>
|
43 |
-
<system>
|
44 |
-
<children>
|
45 |
-
<config>
|
46 |
-
<children>
|
47 |
-
<shopalizeinfo>
|
48 |
-
<title>Shopalize</title>
|
49 |
-
</shopalizeinfo>
|
50 |
-
<sbasic>
|
51 |
-
<title>Basic Setting</title>
|
52 |
-
</sbasic>
|
53 |
-
</children>
|
54 |
-
</config>
|
55 |
-
</children>
|
56 |
-
</system>
|
57 |
-
</children>
|
58 |
-
</admin>
|
59 |
-
</resources>
|
60 |
-
</acl>
|
61 |
-
</adminhtml>
|
62 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/{Productsharingwidget → Productsharing}/Block/Button.php
RENAMED
@@ -4,7 +4,7 @@
|
|
4 |
* @author Bytes Technolab<info@bytestechnolab.com>
|
5 |
*/
|
6 |
|
7 |
-
class
|
8 |
|
9 |
protected $_isIntegration = false;
|
10 |
const PRODUCT_IMAGE_SIZE = 256;
|
@@ -13,20 +13,20 @@ class Shopalize_Productsharingwidget_Block_Button extends Mage_Core_Block_Templa
|
|
13 |
$this->_isIntegration = true;
|
14 |
return $this;
|
15 |
}
|
16 |
-
|
17 |
/**
|
18 |
* Product
|
19 |
*
|
20 |
* @return Mage_Catalog_Model_Product
|
21 |
*/
|
22 |
public function getProduct(){
|
23 |
-
|
24 |
if ($product = Mage::registry('current_product')){
|
25 |
return $product;
|
26 |
}
|
27 |
return false;
|
28 |
}
|
29 |
-
|
30 |
/**
|
31 |
* Product URL
|
32 |
*/
|
@@ -47,7 +47,7 @@ class Shopalize_Productsharingwidget_Block_Button extends Mage_Core_Block_Templa
|
|
47 |
public function getProductUrl(){
|
48 |
return $this->getCanonicalUrl();
|
49 |
}
|
50 |
-
|
51 |
/**
|
52 |
* Product Short Description
|
53 |
*/
|
@@ -105,11 +105,42 @@ class Shopalize_Productsharingwidget_Block_Button extends Mage_Core_Block_Templa
|
|
105 |
return $special_price;
|
106 |
}
|
107 |
}
|
108 |
-
|
109 |
/**
|
110 |
* Shopalized Product Sharing Enabled
|
111 |
*/
|
112 |
public function isEnabled(){
|
113 |
-
return Mage::getStoreConfig('
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
}
|
4 |
* @author Bytes Technolab<info@bytestechnolab.com>
|
5 |
*/
|
6 |
|
7 |
+
class Shopalize_Productsharing_Block_Button extends Mage_Core_Block_Template{
|
8 |
|
9 |
protected $_isIntegration = false;
|
10 |
const PRODUCT_IMAGE_SIZE = 256;
|
13 |
$this->_isIntegration = true;
|
14 |
return $this;
|
15 |
}
|
16 |
+
|
17 |
/**
|
18 |
* Product
|
19 |
*
|
20 |
* @return Mage_Catalog_Model_Product
|
21 |
*/
|
22 |
public function getProduct(){
|
23 |
+
|
24 |
if ($product = Mage::registry('current_product')){
|
25 |
return $product;
|
26 |
}
|
27 |
return false;
|
28 |
}
|
29 |
+
|
30 |
/**
|
31 |
* Product URL
|
32 |
*/
|
47 |
public function getProductUrl(){
|
48 |
return $this->getCanonicalUrl();
|
49 |
}
|
50 |
+
|
51 |
/**
|
52 |
* Product Short Description
|
53 |
*/
|
105 |
return $special_price;
|
106 |
}
|
107 |
}
|
108 |
+
|
109 |
/**
|
110 |
* Shopalized Product Sharing Enabled
|
111 |
*/
|
112 |
public function isEnabled(){
|
113 |
+
return Mage::getStoreConfig('productsharing/settings/active');
|
114 |
+
}
|
115 |
+
|
116 |
+
/**
|
117 |
+
* Product Shopalized Merchant Id
|
118 |
+
*/
|
119 |
+
public function getShopalizeMerchantId(){
|
120 |
+
if(Mage::getStoreConfig('purchasesharing/settings/active')){
|
121 |
+
return Mage::getStoreConfig('purchasesharing/settings/merchant_id');
|
122 |
+
}else{
|
123 |
+
return Mage::getStoreConfig('productsharing/settings/merchant_id');
|
124 |
+
}
|
125 |
+
}
|
126 |
+
|
127 |
+
/**
|
128 |
+
* Product Shopalized Store Id
|
129 |
+
*/
|
130 |
+
public function getShopalizeStoreId(){
|
131 |
+
if(Mage::getStoreConfig('purchasesharing/settings/active')){
|
132 |
+
return Mage::getStoreConfig('purchasesharing/settings/store_id');
|
133 |
+
}else{
|
134 |
+
return Mage::getStoreConfig('productsharing/settings/store_id');
|
135 |
+
}
|
136 |
+
}
|
137 |
+
|
138 |
+
public function isPurchaseSharingEnabled(){
|
139 |
+
if(Mage::getStoreConfig('purchasesharing/settings/active')){
|
140 |
+
echo "ues";
|
141 |
+
}else{
|
142 |
+
echo "no";
|
143 |
+
}
|
144 |
+
return Mage::getStoreConfig('purchasesharing/settings/active');
|
145 |
}
|
146 |
}
|
app/code/community/Shopalize/{Productsharingwidget → Productsharing}/Block/System/Config/Info.php
RENAMED
@@ -3,7 +3,7 @@
|
|
3 |
* @company Bytes Technolab<www.bytestechnolab.com>
|
4 |
* @author Bytes Technolab<info@bytestechnolab.com>
|
5 |
*/
|
6 |
-
class
|
7 |
extends Mage_Adminhtml_Block_Abstract
|
8 |
implements Varien_Data_Form_Element_Renderer_Interface{
|
9 |
|
3 |
* @company Bytes Technolab<www.bytestechnolab.com>
|
4 |
* @author Bytes Technolab<info@bytestechnolab.com>
|
5 |
*/
|
6 |
+
class Shopalize_Productsharing_Block_System_Config_Info
|
7 |
extends Mage_Adminhtml_Block_Abstract
|
8 |
implements Varien_Data_Form_Element_Renderer_Interface{
|
9 |
|
app/code/community/Shopalize/{Productsharingwidget → Productsharing}/Block/System/Config/Info/About.php
RENAMED
@@ -4,7 +4,7 @@
|
|
4 |
* @author Bytes Technolab<info@bytestechnolab.com>
|
5 |
*/
|
6 |
|
7 |
-
class
|
8 |
extends Mage_Adminhtml_Block_Abstract
|
9 |
implements Varien_Data_Form_Element_Renderer_Interface{
|
10 |
|
4 |
* @author Bytes Technolab<info@bytestechnolab.com>
|
5 |
*/
|
6 |
|
7 |
+
class Shopalize_Productsharing_Block_System_Config_Info_About
|
8 |
extends Mage_Adminhtml_Block_Abstract
|
9 |
implements Varien_Data_Form_Element_Renderer_Interface{
|
10 |
|
app/code/community/Shopalize/{Basic → Productsharing}/Helper/Data.php
RENAMED
@@ -1,9 +1,10 @@
|
|
1 |
<?php
|
2 |
-
/**
|
3 |
* @company Bytes Technolab<www.bytestechnolab.com>
|
4 |
* @author Bytes Technolab<info@bytestechnolab.com>
|
5 |
*/
|
6 |
-
|
|
|
7 |
{
|
8 |
|
9 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
* @company Bytes Technolab<www.bytestechnolab.com>
|
4 |
* @author Bytes Technolab<info@bytestechnolab.com>
|
5 |
*/
|
6 |
+
|
7 |
+
class Shopalize_Productsharing_Helper_Data extends Mage_Core_Helper_Abstract
|
8 |
{
|
9 |
|
10 |
}
|
app/code/community/Shopalize/{Productsharingwidget → Productsharing}/etc/adminhtml.xml
RENAMED
@@ -1,25 +1,25 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<config>
|
3 |
-
<acl>
|
4 |
-
<resources>
|
5 |
-
<all>
|
6 |
-
<title>Allow Everything</title>
|
7 |
-
</all>
|
8 |
-
<admin>
|
9 |
-
<children>
|
10 |
-
<system>
|
11 |
-
<children>
|
12 |
-
<config>
|
13 |
-
<children>
|
14 |
-
<
|
15 |
-
<title>Shopalize Product Sharing
|
16 |
-
</
|
17 |
-
</children>
|
18 |
-
</config>
|
19 |
-
</children>
|
20 |
-
</system>
|
21 |
-
</children>
|
22 |
-
</admin>
|
23 |
-
</resources>
|
24 |
-
</acl>
|
25 |
</config>
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<acl>
|
4 |
+
<resources>
|
5 |
+
<all>
|
6 |
+
<title>Allow Everything</title>
|
7 |
+
</all>
|
8 |
+
<admin>
|
9 |
+
<children>
|
10 |
+
<system>
|
11 |
+
<children>
|
12 |
+
<config>
|
13 |
+
<children>
|
14 |
+
<productsharing>
|
15 |
+
<title>Shopalize Product Sharing</title>
|
16 |
+
</productsharing>
|
17 |
+
</children>
|
18 |
+
</config>
|
19 |
+
</children>
|
20 |
+
</system>
|
21 |
+
</children>
|
22 |
+
</admin>
|
23 |
+
</resources>
|
24 |
+
</acl>
|
25 |
</config>
|
app/code/community/Shopalize/{Productsharingwidget → Productsharing}/etc/config.xml
RENAMED
@@ -1,64 +1,57 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
-
<
|
5 |
<version>0.0.1</version>
|
6 |
-
</
|
7 |
</modules>
|
8 |
<global>
|
9 |
<blocks>
|
10 |
-
<
|
11 |
-
<class>
|
12 |
-
</
|
13 |
</blocks>
|
14 |
<helpers>
|
15 |
-
<
|
16 |
-
<class>
|
17 |
-
</
|
18 |
</helpers>
|
19 |
<resources>
|
20 |
-
<
|
21 |
<setup>
|
22 |
-
<module>
|
23 |
</setup>
|
24 |
<connection>
|
25 |
<use>core_setup</use>
|
26 |
</connection>
|
27 |
-
</
|
28 |
-
<
|
29 |
<connection>
|
30 |
<use>core_write</use>
|
31 |
</connection>
|
32 |
-
</
|
33 |
-
<
|
34 |
<connection>
|
35 |
<use>core_read</use>
|
36 |
</connection>
|
37 |
-
</
|
38 |
</resources>
|
39 |
-
<layout>
|
40 |
-
<updates>
|
41 |
-
<productsharingwidget>
|
42 |
-
<file>productsharingwidget.xml</file>
|
43 |
-
</productsharingwidget>
|
44 |
-
</updates>
|
45 |
-
</layout>
|
46 |
</global>
|
47 |
<frontend>
|
48 |
<routers>
|
49 |
-
<
|
50 |
<use>standard</use>
|
51 |
<args>
|
52 |
-
<module>
|
53 |
-
<frontName>
|
54 |
</args>
|
55 |
-
</
|
56 |
</routers>
|
57 |
<layout>
|
58 |
<updates>
|
59 |
-
<
|
60 |
-
<file>
|
61 |
-
</
|
62 |
</updates>
|
63 |
</layout>
|
64 |
</frontend>
|
@@ -74,9 +67,9 @@
|
|
74 |
<children>
|
75 |
<config>
|
76 |
<children>
|
77 |
-
<
|
78 |
-
<title>Shopalize Product Sharing
|
79 |
-
</
|
80 |
</children>
|
81 |
</config>
|
82 |
</children>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
+
<Shopalize_Productsharing>
|
5 |
<version>0.0.1</version>
|
6 |
+
</Shopalize_Productsharing>
|
7 |
</modules>
|
8 |
<global>
|
9 |
<blocks>
|
10 |
+
<productsharing>
|
11 |
+
<class>Shopalize_Productsharing_Block</class>
|
12 |
+
</productsharing>
|
13 |
</blocks>
|
14 |
<helpers>
|
15 |
+
<productsharing>
|
16 |
+
<class>Shopalize_Productsharing_Helper</class>
|
17 |
+
</productsharing>
|
18 |
</helpers>
|
19 |
<resources>
|
20 |
+
<productsharing_setup>
|
21 |
<setup>
|
22 |
+
<module>Shopalize_Productsharing</module>
|
23 |
</setup>
|
24 |
<connection>
|
25 |
<use>core_setup</use>
|
26 |
</connection>
|
27 |
+
</productsharing_setup>
|
28 |
+
<productsharing_write>
|
29 |
<connection>
|
30 |
<use>core_write</use>
|
31 |
</connection>
|
32 |
+
</productsharing_write>
|
33 |
+
<productsharing_read>
|
34 |
<connection>
|
35 |
<use>core_read</use>
|
36 |
</connection>
|
37 |
+
</productsharing_read>
|
38 |
</resources>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
</global>
|
40 |
<frontend>
|
41 |
<routers>
|
42 |
+
<productsharing>
|
43 |
<use>standard</use>
|
44 |
<args>
|
45 |
+
<module>Shopalize_Productsharing</module>
|
46 |
+
<frontName>productsharing</frontName>
|
47 |
</args>
|
48 |
+
</productsharing>
|
49 |
</routers>
|
50 |
<layout>
|
51 |
<updates>
|
52 |
+
<productsharing>
|
53 |
+
<file>shopalizeproductsharing.xml</file>
|
54 |
+
</productsharing>
|
55 |
</updates>
|
56 |
</layout>
|
57 |
</frontend>
|
67 |
<children>
|
68 |
<config>
|
69 |
<children>
|
70 |
+
<productsharing>
|
71 |
+
<title>Shopalize Product Sharing</title>
|
72 |
+
</productsharing>
|
73 |
</children>
|
74 |
</config>
|
75 |
</children>
|
app/code/community/Shopalize/{Basic → Productsharing}/etc/system.xml
RENAMED
@@ -7,17 +7,17 @@
|
|
7 |
-->
|
8 |
<config>
|
9 |
<tabs>
|
10 |
-
<shopalizeall translate="label" module="
|
11 |
<label>Shopalize Extensions</label>
|
12 |
<sort_order>400</sort_order>
|
13 |
</shopalizeall>
|
14 |
</tabs>
|
15 |
<sections>
|
16 |
-
<
|
17 |
-
<label>
|
18 |
<tab>shopalizeall</tab>
|
19 |
<frontend_type>text</frontend_type>
|
20 |
-
<sort_order>
|
21 |
<show_in_default>1</show_in_default>
|
22 |
<show_in_website>1</show_in_website>
|
23 |
<show_in_store>1</show_in_store>
|
@@ -30,16 +30,16 @@
|
|
30 |
<show_in_website>1</show_in_website>
|
31 |
<show_in_store>1</show_in_store>
|
32 |
<fields>
|
33 |
-
<
|
34 |
-
<frontend_model>
|
35 |
<sort_order>10</sort_order>
|
36 |
<show_in_default>1</show_in_default>
|
37 |
<show_in_website>1</show_in_website>
|
38 |
<show_in_store>1</show_in_store>
|
39 |
-
</
|
40 |
</fields>
|
41 |
</info>
|
42 |
-
|
43 |
<label>Plugin Settings</label>
|
44 |
<frontend_type>text</frontend_type>
|
45 |
<sort_order>11</sort_order>
|
@@ -55,7 +55,7 @@
|
|
55 |
<show_in_default>1</show_in_default>
|
56 |
<show_in_website>1</show_in_website>
|
57 |
<show_in_store>1</show_in_store>
|
58 |
-
</active>
|
59 |
<merchant_id translate="label">
|
60 |
<label>Merchant Id</label>
|
61 |
<frontend_type>text</frontend_type>
|
@@ -75,6 +75,6 @@
|
|
75 |
</fields>
|
76 |
</settings>
|
77 |
</groups>
|
78 |
-
</
|
79 |
</sections>
|
80 |
</config>
|
7 |
-->
|
8 |
<config>
|
9 |
<tabs>
|
10 |
+
<shopalizeall translate="label" module="productsharing">
|
11 |
<label>Shopalize Extensions</label>
|
12 |
<sort_order>400</sort_order>
|
13 |
</shopalizeall>
|
14 |
</tabs>
|
15 |
<sections>
|
16 |
+
<productsharing module="productsharing">
|
17 |
+
<label>Product Sharing</label>
|
18 |
<tab>shopalizeall</tab>
|
19 |
<frontend_type>text</frontend_type>
|
20 |
+
<sort_order>401</sort_order>
|
21 |
<show_in_default>1</show_in_default>
|
22 |
<show_in_website>1</show_in_website>
|
23 |
<show_in_store>1</show_in_store>
|
30 |
<show_in_website>1</show_in_website>
|
31 |
<show_in_store>1</show_in_store>
|
32 |
<fields>
|
33 |
+
<productsharing_info translate="label">
|
34 |
+
<frontend_model>productsharing/system_config_info_about</frontend_model>
|
35 |
<sort_order>10</sort_order>
|
36 |
<show_in_default>1</show_in_default>
|
37 |
<show_in_website>1</show_in_website>
|
38 |
<show_in_store>1</show_in_store>
|
39 |
+
</productsharing_info>
|
40 |
</fields>
|
41 |
</info>
|
42 |
+
<settings translate="label">
|
43 |
<label>Plugin Settings</label>
|
44 |
<frontend_type>text</frontend_type>
|
45 |
<sort_order>11</sort_order>
|
55 |
<show_in_default>1</show_in_default>
|
56 |
<show_in_website>1</show_in_website>
|
57 |
<show_in_store>1</show_in_store>
|
58 |
+
</active>
|
59 |
<merchant_id translate="label">
|
60 |
<label>Merchant Id</label>
|
61 |
<frontend_type>text</frontend_type>
|
75 |
</fields>
|
76 |
</settings>
|
77 |
</groups>
|
78 |
+
</productsharing>
|
79 |
</sections>
|
80 |
</config>
|
app/code/community/Shopalize/Productsharingwidget/Helper/Data.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* @company Bytes Technolab<www.bytestechnolab.com>
|
4 |
-
* @author Bytes Technolab<info@bytestechnolab.com>
|
5 |
-
*/
|
6 |
-
|
7 |
-
class Shopalize_Productsharingwidget_Helper_Data extends Mage_Core_Helper_Abstract
|
8 |
-
{
|
9 |
-
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Productsharingwidget/etc/system.xml
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* @website http://www.oceanwebsoft.com
|
5 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
6 |
-
*/
|
7 |
-
-->
|
8 |
-
<config>
|
9 |
-
<tabs>
|
10 |
-
<shopalizeall translate="label" module="productsharingwidget">
|
11 |
-
<label>Shopalize Extensions</label>
|
12 |
-
<sort_order>400</sort_order>
|
13 |
-
</shopalizeall>
|
14 |
-
</tabs>
|
15 |
-
<sections>
|
16 |
-
<productsharingwidget module="productsharingwidget">
|
17 |
-
<label>Product Sharing</label>
|
18 |
-
<tab>shopalizeall</tab>
|
19 |
-
<frontend_type>text</frontend_type>
|
20 |
-
<sort_order>400</sort_order>
|
21 |
-
<show_in_default>1</show_in_default>
|
22 |
-
<show_in_website>1</show_in_website>
|
23 |
-
<show_in_store>1</show_in_store>
|
24 |
-
<groups>
|
25 |
-
<info>
|
26 |
-
<label>About Extension</label>
|
27 |
-
<frontend_type>text</frontend_type>
|
28 |
-
<sort_order>10</sort_order>
|
29 |
-
<show_in_default>1</show_in_default>
|
30 |
-
<show_in_website>1</show_in_website>
|
31 |
-
<show_in_store>1</show_in_store>
|
32 |
-
<fields>
|
33 |
-
<productsharingwidget_info translate="label">
|
34 |
-
<frontend_model>productsharingwidget/system_config_info_about</frontend_model>
|
35 |
-
<sort_order>10</sort_order>
|
36 |
-
<show_in_default>1</show_in_default>
|
37 |
-
<show_in_website>1</show_in_website>
|
38 |
-
<show_in_store>1</show_in_store>
|
39 |
-
</productsharingwidget_info>
|
40 |
-
|
41 |
-
</fields>
|
42 |
-
</info>
|
43 |
-
<settings translate="label">
|
44 |
-
<label>Plugin Settings</label>
|
45 |
-
<frontend_type>text</frontend_type>
|
46 |
-
<sort_order>11</sort_order>
|
47 |
-
<show_in_default>1</show_in_default>
|
48 |
-
<show_in_website>1</show_in_website>
|
49 |
-
<show_in_store>1</show_in_store>
|
50 |
-
<fields>
|
51 |
-
<active translate="label">
|
52 |
-
<label>Enabled</label>
|
53 |
-
<frontend_type>select</frontend_type>
|
54 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
55 |
-
<sort_order>10</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 |
-
</active>
|
60 |
-
</fields>
|
61 |
-
</settings>
|
62 |
-
</groups>
|
63 |
-
</productsharingwidget>
|
64 |
-
</sections>
|
65 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/layout/sbasic.xml
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
<?xml version="1.0" ?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* MagPleasure Co.
|
5 |
-
*
|
6 |
-
* NOTICE OF LICENSE
|
7 |
-
*
|
8 |
-
* This source file is subject to the EULA
|
9 |
-
* that is bundled with this package in the file LICENSE.txt.
|
10 |
-
* It is also available through the world-wide-web at this URL:
|
11 |
-
* http://www.magpleasure.com/LICENSE.txt
|
12 |
-
*
|
13 |
-
* @category Shopalize
|
14 |
-
* @package Shopalize_Baisc
|
15 |
-
* @copyright Copyright (c) 2012 Magpleasure Co. (http://www.magpleasure.com)
|
16 |
-
* @license http://www.magpleasure.com/LICENSE.txt
|
17 |
-
*/
|
18 |
-
-->
|
19 |
-
<layout version="0.1.0">
|
20 |
-
<default>
|
21 |
-
<reference name="before_body_end">
|
22 |
-
<block type="sbasic/sa" name="shopalize_analytics" as="shopalize_analytics" template="basic/sa.phtml" />
|
23 |
-
</reference>
|
24 |
-
</default>
|
25 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/layout/{productsharingwidget.xml → shopalizeproductsharing.xml}
RENAMED
@@ -17,10 +17,15 @@
|
|
17 |
*/
|
18 |
-->
|
19 |
<layout version="0.1.0">
|
|
|
|
|
|
|
|
|
|
|
20 |
<catalog_product_view>
|
21 |
<reference name="product.info">
|
22 |
-
<block type="core/text_list" name="product.info.other" as="other" ifconfig="
|
23 |
-
<block type="
|
24 |
<action method="isIntegration" />
|
25 |
</block>
|
26 |
</block>
|
17 |
*/
|
18 |
-->
|
19 |
<layout version="0.1.0">
|
20 |
+
<default>
|
21 |
+
<reference name="before_body_end">
|
22 |
+
<block type="productsharing/button" name="shopalize_product_tracking" as="shopalize_product_tracking" template="shopalizeproductsharing/basic_integration.phtml"/>
|
23 |
+
</reference>
|
24 |
+
</default>
|
25 |
<catalog_product_view>
|
26 |
<reference name="product.info">
|
27 |
+
<block type="core/text_list" name="product.info.other" as="other" ifconfig="productsharing/settings/active">
|
28 |
+
<block type="productsharing/button" name="productsharing" template="shopalizeproductsharing/product_integration.phtml" >
|
29 |
<action method="isIntegration" />
|
30 |
</block>
|
31 |
</block>
|
app/design/frontend/default/default/template/{basic/sa.phtml → shopalizeproductsharing/basic_integration.phtml}
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
-
<?php
|
2 |
-
if($this->isEnabled()){ ?>
|
3 |
<!-- Shopalize Basic Integration BEGIN -->
|
4 |
<script>
|
5 |
(function(w, d, id) {
|
1 |
+
aaa<?php
|
2 |
+
if($this->isEnabled() && !$this->isPurchaseSharingEnabled()){ ?>
|
3 |
<!-- Shopalize Basic Integration BEGIN -->
|
4 |
<script>
|
5 |
(function(w, d, id) {
|
app/design/frontend/default/default/template/{productsharingwidget/button.phtml → shopalizeproductsharing/product_integration.phtml}
RENAMED
File without changes
|
app/etc/modules/{Shopalize_Basic.xml → Shopalize_Productsharing.xml}
RENAMED
@@ -1,9 +1,9 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
-
<
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
-
</
|
8 |
</modules>
|
9 |
</config>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
+
<Shopalize_Productsharing>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
+
</Shopalize_Productsharing>
|
8 |
</modules>
|
9 |
</config>
|
app/etc/modules/Shopalize_Productsharingwidget.xml
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<config>
|
3 |
-
<modules>
|
4 |
-
<Shopalize_Productsharingwidget>
|
5 |
-
<active>true</active>
|
6 |
-
<codePool>community</codePool>
|
7 |
-
</Shopalize_Productsharingwidget>
|
8 |
-
</modules>
|
9 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Shopalizes_Product_Sharing_Widget</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
@@ -19,11 +19,11 @@
|
|
19 |

|
20 |
<ol>
|
21 |
<li>Register an account with <a href="http://www.shopalize.com">Shopalize.com</a> before you start the installation to get your Account</description>
|
22 |
-
<notes>Separate out basic
|
23 |
<authors><author><name>Aditya Kothadiya</name><user>auto-converted</user><email>aditya@shopalize.com</email></author></authors>
|
24 |
-
<date>2012-08-
|
25 |
-
<time>
|
26 |
-
<contents><target name="magecommunity"><dir name="Shopalize"><dir name="
|
27 |
<compatible/>
|
28 |
<dependencies/>
|
29 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Shopalizes_Product_Sharing_Widget</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
19 |

|
20 |
<ol>
|
21 |
<li>Register an account with <a href="http://www.shopalize.com">Shopalize.com</a> before you start the installation to get your Account</description>
|
22 |
+
<notes>Separate out basic integration code</notes>
|
23 |
<authors><author><name>Aditya Kothadiya</name><user>auto-converted</user><email>aditya@shopalize.com</email></author></authors>
|
24 |
+
<date>2012-08-20</date>
|
25 |
+
<time>19:51:31</time>
|
26 |
+
<contents><target name="magecommunity"><dir name="Shopalize"><dir name="Productsharing"><dir name="Block"><dir name="System"><dir name="Config"><dir name="Info"><file name="About.php" hash="85ddeb0452ac49f57c6cba1c5767c6f0"/></dir><file name="Info.php" hash="722ed6078214cb852016f46fe4d0a2d7"/></dir></dir><file name="Button.php" hash="1bbf488f75b2c6c7fab36722ae50fedb"/></dir><dir name="Helper"><file name="Data.php" hash="8a7629fc50842cec4b80feef8a85ccf8"/></dir><dir name="etc"><file name="adminhtml.xml" hash="ccd6eae72f74df2ccfca174e646027b3"/><file name="config.xml" hash="52c08d4eb361e04f41f2de5bcb1754a3"/><file name="system.xml" hash="48aff8f88927034079d98ced6cb259db"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="shopalizeproductsharing.xml" hash="c40655923a1c754b7d491e2cbcd9945c"/></dir><dir name="template"><dir name="shopalizeproductsharing"><file name="basic_integration.phtml" hash="760184ab3725e12df323f37cddc77a09"/><file name="product_integration.phtml" hash="9cded50c3bee9e6017009f97f8702d0d"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Shopalize_Productsharing.xml" hash="0fe28b06eef40ed847db7d9b41f8c6c2"/></dir></target></contents>
|
27 |
<compatible/>
|
28 |
<dependencies/>
|
29 |
</package>
|