Version Notes
Separate out basic tracking code with product sharing. Its load before end of body tag.
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Shopalizes_Product_Sharing_Widget |
| Version | 1.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.0 to 1.0.1
- app/code/community/Shopalize/{Productsharingwidget → Basic}/Block/Sa.php +4 -4
- app/code/community/Shopalize/{Purchasesharingwidget → Basic}/Block/System/Config/Info.php +6 -10
- app/code/community/Shopalize/Basic/Block/System/Config/Info/About.php +32 -0
- app/code/community/Shopalize/Basic/Helper/Data.php +9 -0
- app/code/community/Shopalize/{Pinterest_bk → Basic}/etc/adminhtml.xml +24 -33
- app/code/community/Shopalize/Basic/etc/config.xml +62 -0
- app/code/community/Shopalize/{Purchasesharingwidget → Basic}/etc/system.xml +10 -40
- app/code/community/Shopalize/Pinterest_bk/Block/Button.php +0 -105
- app/code/community/Shopalize/Pinterest_bk/Model/System/Config/Source/Type.php +0 -34
- app/code/community/Shopalize/Pinterest_bk/etc/config.xml +0 -139
- app/code/community/Shopalize/Pinterest_bk/etc/system.xml +0 -67
- app/code/community/Shopalize/Productsharingwidget/Block/Button.php +23 -23
- app/code/community/Shopalize/Productsharingwidget/etc/system.xml +1 -18
- app/code/community/Shopalize/Purchasesharingwidget/Block/Purchasesharingwidget.php +0 -13
- app/code/community/Shopalize/Purchasesharingwidget/Block/Success.php +0 -31
- app/code/community/Shopalize/Purchasesharingwidget/Block/System/Config/Info/About.php +0 -37
- app/code/community/Shopalize/Purchasesharingwidget/Helper/Data.php +0 -307
- app/code/community/Shopalize/Purchasesharingwidget/Helper/Event.php +0 -47
- app/code/community/Shopalize/Purchasesharingwidget/controllers/IndexController.php +0 -13
- app/code/community/Shopalize/Purchasesharingwidget/etc/adminhtml.xml +0 -33
- app/code/community/Shopalize/Purchasesharingwidget/etc/config.xml +0 -81
- app/design/frontend/default/default/layout/productsharingwidget.xml +0 -3
- app/{code/community/Shopalize/Pinterest_bk/Helper/Data.php → design/frontend/default/default/layout/sbasic.xml} +25 -20
- app/design/frontend/default/default/template/{productsharingwidget → basic}/sa.phtml +0 -0
- app/design/frontend/default/default/template/productsharingwidget/button.phtml +3 -3
- app/etc/modules/Shopalize_Basic.xml +9 -0
- package.xml +5 -5
app/code/community/Shopalize/{Productsharingwidget → Basic}/Block/Sa.php
RENAMED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
* @author Bytes Technolab<info@bytestechnolab.com>
|
| 5 |
*/
|
| 6 |
|
| 7 |
-
class
|
| 8 |
{
|
| 9 |
/**
|
| 10 |
* Product Shopalized Merchant Id
|
|
@@ -26,16 +26,16 @@ class Shopalize_Productsharingwidget_Block_Sa extends Mage_Core_Block_Template
|
|
| 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('
|
| 35 |
if(!isset($value) or trim($value) == ''){
|
| 36 |
return $default;
|
| 37 |
}else{
|
| 38 |
return $value;
|
| 39 |
-
}
|
| 40 |
}
|
| 41 |
}
|
| 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
|
| 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/{Purchasesharingwidget → Basic}/Block/System/Config/Info.php
RENAMED
|
@@ -1,16 +1,12 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
-
* @company
|
| 4 |
-
* @author
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
* @package Oceanwebsoft_Shopalize_Social_widget
|
| 8 |
-
*/
|
| 9 |
-
class Shopalize_Purchasesharingwidget_Block_System_Config_Info
|
| 10 |
extends Mage_Adminhtml_Block_Abstract
|
| 11 |
-
implements Varien_Data_Form_Element_Renderer_Interface
|
| 12 |
-
|
| 13 |
-
|
| 14 |
/**
|
| 15 |
* Render fieldset html
|
| 16 |
*
|
| 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 |
*
|
app/code/community/Shopalize/Basic/Block/System/Config/Info/About.php
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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/Helper/Data.php
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* @company Bytes Technolab<www.bytestechnolab.com>
|
| 4 |
+
* @author Bytes Technolab<info@bytestechnolab.com>
|
| 5 |
+
*/
|
| 6 |
+
class Shopalize_Basic_Helper_Data extends Mage_Core_Helper_Abstract
|
| 7 |
+
{
|
| 8 |
+
|
| 9 |
+
}
|
app/code/community/Shopalize/{Pinterest_bk → Basic}/etc/adminhtml.xml
RENAMED
|
@@ -1,34 +1,25 @@
|
|
| 1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
-
<config>
|
| 3 |
-
<
|
| 4 |
-
<
|
| 5 |
-
<
|
| 6 |
-
<
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
</mppinterest>
|
| 26 |
-
</children>
|
| 27 |
-
</config>
|
| 28 |
-
</children>
|
| 29 |
-
</system>
|
| 30 |
-
</children>
|
| 31 |
-
</admin>
|
| 32 |
-
</resources>
|
| 33 |
-
</acl>
|
| 34 |
</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 |
+
<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
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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/{Purchasesharingwidget → Basic}/etc/system.xml
RENAMED
|
@@ -1,41 +1,23 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
| 3 |
/**
|
| 4 |
-
* @website http://www.
|
| 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="
|
| 11 |
<label>Shopalize Extensions</label>
|
| 12 |
<sort_order>400</sort_order>
|
| 13 |
</shopalizeall>
|
| 14 |
</tabs>
|
| 15 |
<sections>
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
<tab>shopalizeall</tab>
|
| 19 |
-
<frontend_type>text</frontend_type>
|
| 20 |
-
<sort_order>99999999999</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 |
-
<frontend_model>purchasesharingwidget/system_config_info</frontend_model>
|
| 27 |
-
<sort_order>10</sort_order>
|
| 28 |
-
<show_in_default>1</show_in_default>
|
| 29 |
-
<show_in_website>1</show_in_website>
|
| 30 |
-
<show_in_store>1</show_in_store>
|
| 31 |
-
</info>
|
| 32 |
-
</groups>
|
| 33 |
-
</shopalizeinfo>-->
|
| 34 |
-
<purchasesharingwidget module="purchasesharingwidget">
|
| 35 |
-
<label>Post Purchase Sharing</label>
|
| 36 |
<tab>shopalizeall</tab>
|
| 37 |
<frontend_type>text</frontend_type>
|
| 38 |
-
<sort_order>
|
| 39 |
<show_in_default>1</show_in_default>
|
| 40 |
<show_in_website>1</show_in_website>
|
| 41 |
<show_in_store>1</show_in_store>
|
|
@@ -48,17 +30,16 @@
|
|
| 48 |
<show_in_website>1</show_in_website>
|
| 49 |
<show_in_store>1</show_in_store>
|
| 50 |
<fields>
|
| 51 |
-
<
|
| 52 |
-
<frontend_model>
|
| 53 |
<sort_order>10</sort_order>
|
| 54 |
<show_in_default>1</show_in_default>
|
| 55 |
<show_in_website>1</show_in_website>
|
| 56 |
<show_in_store>1</show_in_store>
|
| 57 |
-
</
|
| 58 |
-
|
| 59 |
</fields>
|
| 60 |
</info>
|
| 61 |
-
|
| 62 |
<label>Plugin Settings</label>
|
| 63 |
<frontend_type>text</frontend_type>
|
| 64 |
<sort_order>11</sort_order>
|
|
@@ -91,20 +72,9 @@
|
|
| 91 |
<show_in_store>1</show_in_store>
|
| 92 |
<comment><![CDATA[Get Shopalize Store ID by signing up at <a target="_blank" href="http://www.shopalize.com">www.shopalize.com</a>. Look for Store ID value on Settings or Integration Guide page.]]></comment>
|
| 93 |
</store_id>
|
| 94 |
-
<widget_width translate="label">
|
| 95 |
-
<label>Plugin Width</label>
|
| 96 |
-
<frontend_type>text</frontend_type>
|
| 97 |
-
<sort_order>30</sort_order><show_in_default>1</show_in_default>
|
| 98 |
-
<show_in_website>1</show_in_website>
|
| 99 |
-
<show_in_store>1</show_in_store>
|
| 100 |
-
<comment><![CDATA[Size in px Example: 400]]></comment>
|
| 101 |
-
</widget_width>
|
| 102 |
-
|
| 103 |
-
|
| 104 |
</fields>
|
| 105 |
</settings>
|
| 106 |
-
|
| 107 |
</groups>
|
| 108 |
-
</
|
| 109 |
</sections>
|
| 110 |
</config>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
| 3 |
/**
|
| 4 |
+
* @website http://www.bytestechnolab.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="sbasic">
|
| 11 |
<label>Shopalize Extensions</label>
|
| 12 |
<sort_order>400</sort_order>
|
| 13 |
</shopalizeall>
|
| 14 |
</tabs>
|
| 15 |
<sections>
|
| 16 |
+
<sbasic module="sbasic">
|
| 17 |
+
<label>Basic</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
<tab>shopalizeall</tab>
|
| 19 |
<frontend_type>text</frontend_type>
|
| 20 |
+
<sort_order>100</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 |
+
<sbasic_info translate="label">
|
| 34 |
+
<frontend_model>sbasic/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 |
+
</sbasic_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>
|
| 72 |
<show_in_store>1</show_in_store>
|
| 73 |
<comment><![CDATA[Get Shopalize Store ID by signing up at <a target="_blank" href="http://www.shopalize.com">www.shopalize.com</a>. Look for Store ID value on Settings or Integration Guide page.]]></comment>
|
| 74 |
</store_id>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
</fields>
|
| 76 |
</settings>
|
|
|
|
| 77 |
</groups>
|
| 78 |
+
</sbasic>
|
| 79 |
</sections>
|
| 80 |
</config>
|
app/code/community/Shopalize/Pinterest_bk/Block/Button.php
DELETED
|
@@ -1,105 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* MagPleasure Co.
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the EULA
|
| 8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://www.magpleasure.com/LICENSE.txt
|
| 11 |
-
*
|
| 12 |
-
* @category Magpleasure
|
| 13 |
-
* @package Magpleasure_Pinterest
|
| 14 |
-
* @copyright Copyright (c) 2012 Magpleasure Co. (http://www.magpleasure.com)
|
| 15 |
-
* @license http://www.magpleasure.com/LICENSE.txt
|
| 16 |
-
*/
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
class Magpleasure_Pinterest_Block_Button extends Mage_Core_Block_Template
|
| 20 |
-
{
|
| 21 |
-
protected $_isIntegration = false;
|
| 22 |
-
|
| 23 |
-
public function isIntegration()
|
| 24 |
-
{
|
| 25 |
-
$this->_isIntegration = true;
|
| 26 |
-
return $this;
|
| 27 |
-
}
|
| 28 |
-
|
| 29 |
-
public function isEnabled()
|
| 30 |
-
{
|
| 31 |
-
return Mage::getStoreConfig('mppinterest/general/enabled');
|
| 32 |
-
}
|
| 33 |
-
|
| 34 |
-
public function canShow()
|
| 35 |
-
{
|
| 36 |
-
if ($this->_isIntegration){
|
| 37 |
-
return (Mage::getStoreConfig('mppinterest/general/display_in_other') && $this->isEnabled() && !!$this->getProduct());
|
| 38 |
-
} else {
|
| 39 |
-
return ($this->isEnabled() && !!$this->getProduct());
|
| 40 |
-
}
|
| 41 |
-
}
|
| 42 |
-
|
| 43 |
-
/**
|
| 44 |
-
* Product
|
| 45 |
-
*
|
| 46 |
-
* @return Mage_Catalog_Model_Product
|
| 47 |
-
*/
|
| 48 |
-
public function getProduct()
|
| 49 |
-
{
|
| 50 |
-
if ($product = Mage::registry('current_product')){
|
| 51 |
-
return $product;
|
| 52 |
-
}
|
| 53 |
-
return false;
|
| 54 |
-
}
|
| 55 |
-
|
| 56 |
-
/**
|
| 57 |
-
* Retrieves Canonical Url
|
| 58 |
-
*
|
| 59 |
-
* @return string
|
| 60 |
-
*/
|
| 61 |
-
public function getCanonicalUrl()
|
| 62 |
-
{
|
| 63 |
-
$params = array();
|
| 64 |
-
if (Mage::helper('catalog/product')->canUseCanonicalTag()){
|
| 65 |
-
$params = array('_ignore_category'=>true);
|
| 66 |
-
}
|
| 67 |
-
/** @var Mage_Catalog_Model_Product $product */
|
| 68 |
-
$product = $this->getProduct();
|
| 69 |
-
return $product->getUrlModel()->getUrl($product, $params);
|
| 70 |
-
}
|
| 71 |
-
|
| 72 |
-
public function getProductUrl()
|
| 73 |
-
{
|
| 74 |
-
return urlencode($this->getCanonicalUrl());
|
| 75 |
-
}
|
| 76 |
-
|
| 77 |
-
public function getAddPrice()
|
| 78 |
-
{
|
| 79 |
-
return Mage::getStoreConfig('mppinterest/general/add_price');
|
| 80 |
-
}
|
| 81 |
-
|
| 82 |
-
public function getButtonType()
|
| 83 |
-
{
|
| 84 |
-
return Mage::getStoreConfig('mppinterest/general/button_type');
|
| 85 |
-
}
|
| 86 |
-
|
| 87 |
-
public function getShortDescription()
|
| 88 |
-
{
|
| 89 |
-
$shortDescription = strip_tags($this->getProduct()->getShortDescription());
|
| 90 |
-
if ($this->getAddPrice()){
|
| 91 |
-
$price = str_replace("USD", "$", Mage::app()->getStore()->formatPrice($this->getProduct()->getFinalPrice(), false));
|
| 92 |
-
$shortDescription = trim($shortDescription).$this->__(" Price %s", $price);
|
| 93 |
-
}
|
| 94 |
-
return urlencode($shortDescription);
|
| 95 |
-
}
|
| 96 |
-
|
| 97 |
-
public function getPinItUrl()
|
| 98 |
-
{
|
| 99 |
-
$productUrl = $this->getProductUrl();
|
| 100 |
-
$shortDescription = $this->getShortDescription();
|
| 101 |
-
$imageUrl = urlencode($this->helper('catalog/image')->init($this->getProduct(), 'image')->__toString());
|
| 102 |
-
$url = "http://pinterest.com/pin/create/button/?url={$productUrl}&media={$imageUrl}&description={$shortDescription}";
|
| 103 |
-
return $url;
|
| 104 |
-
}
|
| 105 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Pinterest_bk/Model/System/Config/Source/Type.php
DELETED
|
@@ -1,34 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* MagPleasure Co.
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the EULA
|
| 8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://www.magpleasure.com/LICENSE.txt
|
| 11 |
-
*
|
| 12 |
-
* @category Magpleasure
|
| 13 |
-
* @package Magpleasure_Pinterest
|
| 14 |
-
* @copyright Copyright (c) 2012 Magpleasure Co. (http://www.magpleasure.com)
|
| 15 |
-
* @license http://www.magpleasure.com/LICENSE.txt
|
| 16 |
-
*/
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
class Magpleasure_Pinterest_Model_System_Config_Source_Type extends Mage_Core_Block_Template
|
| 20 |
-
{
|
| 21 |
-
protected function _helper()
|
| 22 |
-
{
|
| 23 |
-
return Mage::helper('mppinterest');
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
public function toOptionArray()
|
| 27 |
-
{
|
| 28 |
-
return array(
|
| 29 |
-
array('value'=>'horizontal', 'label'=> $this->_helper()->__("Horizontal")),
|
| 30 |
-
array('value'=>'vertical', 'label'=> $this->_helper()->__("Vertical")),
|
| 31 |
-
array('value'=>'none', 'label'=> $this->_helper()->__("No Count")),
|
| 32 |
-
);
|
| 33 |
-
}
|
| 34 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Pinterest_bk/etc/config.xml
DELETED
|
@@ -1,139 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
| 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 Magpleasure
|
| 14 |
-
* @package Magpleasure_Pinterest
|
| 15 |
-
* @copyright Copyright (c) 2012 Magpleasure Co. (http://www.magpleasure.com)
|
| 16 |
-
* @license http://www.magpleasure.com/LICENSE.txt
|
| 17 |
-
*/
|
| 18 |
-
-->
|
| 19 |
-
<config>
|
| 20 |
-
<modules>
|
| 21 |
-
<Magpleasure_Pinterest>
|
| 22 |
-
<version>1.0.4</version>
|
| 23 |
-
</Magpleasure_Pinterest>
|
| 24 |
-
</modules>
|
| 25 |
-
<global>
|
| 26 |
-
<models>
|
| 27 |
-
<mppinterest>
|
| 28 |
-
<class>Magpleasure_Pinterest_Model</class>
|
| 29 |
-
</mppinterest>
|
| 30 |
-
</models>
|
| 31 |
-
<blocks>
|
| 32 |
-
<mppinterest>
|
| 33 |
-
<class>Magpleasure_Pinterest_Block</class>
|
| 34 |
-
</mppinterest>
|
| 35 |
-
</blocks>
|
| 36 |
-
<helpers>
|
| 37 |
-
<mppinterest>
|
| 38 |
-
<class>Magpleasure_Pinterest_Helper</class>
|
| 39 |
-
</mppinterest>
|
| 40 |
-
</helpers>
|
| 41 |
-
<resources>
|
| 42 |
-
<mppinterest_setup>
|
| 43 |
-
<setup>
|
| 44 |
-
<module>Magpleasure_Pinterest</module>
|
| 45 |
-
</setup>
|
| 46 |
-
<connection>
|
| 47 |
-
<use>core_setup</use>
|
| 48 |
-
</connection>
|
| 49 |
-
</mppinterest_setup>
|
| 50 |
-
<mppinterest_write>
|
| 51 |
-
<connection>
|
| 52 |
-
<use>core_write</use>
|
| 53 |
-
</connection>
|
| 54 |
-
</mppinterest_write>
|
| 55 |
-
<mppinterest_read>
|
| 56 |
-
<connection>
|
| 57 |
-
<use>core_read</use>
|
| 58 |
-
</connection>
|
| 59 |
-
</mppinterest_read>
|
| 60 |
-
</resources>
|
| 61 |
-
<layout>
|
| 62 |
-
<updates>
|
| 63 |
-
<mppinterest>
|
| 64 |
-
<file>mppinterest.xml</file>
|
| 65 |
-
</mppinterest>
|
| 66 |
-
</updates>
|
| 67 |
-
</layout>
|
| 68 |
-
</global>
|
| 69 |
-
<frontend>
|
| 70 |
-
<routers>
|
| 71 |
-
<mppinterest>
|
| 72 |
-
<use>standard</use>
|
| 73 |
-
<args>
|
| 74 |
-
<module>Magpeasure_Pinterest</module>
|
| 75 |
-
<frontName>mppinterest</frontName>
|
| 76 |
-
</args>
|
| 77 |
-
</mppinterest>
|
| 78 |
-
</routers>
|
| 79 |
-
<layout>
|
| 80 |
-
<updates>
|
| 81 |
-
<mppinterest>
|
| 82 |
-
<file>mppinterest.xml</file>
|
| 83 |
-
</mppinterest>
|
| 84 |
-
</updates>
|
| 85 |
-
</layout>
|
| 86 |
-
<translate>
|
| 87 |
-
<modules>
|
| 88 |
-
<Magpleasure_Pinterest>
|
| 89 |
-
<files>
|
| 90 |
-
<default>Magpleasure_Pinterest.csv</default>
|
| 91 |
-
</files>
|
| 92 |
-
</Magpleasure_Pinterest>
|
| 93 |
-
</modules>
|
| 94 |
-
</translate>
|
| 95 |
-
</frontend>
|
| 96 |
-
<adminhtml>
|
| 97 |
-
<translate>
|
| 98 |
-
<modules>
|
| 99 |
-
<Magpleasure_Pinterest>
|
| 100 |
-
<files>
|
| 101 |
-
<default>Magpleasure_Pinterest.csv</default>
|
| 102 |
-
</files>
|
| 103 |
-
</Magpleasure_Pinterest>
|
| 104 |
-
</modules>
|
| 105 |
-
</translate>
|
| 106 |
-
<acl>
|
| 107 |
-
<resources>
|
| 108 |
-
<all>
|
| 109 |
-
<title>Allow Everything</title>
|
| 110 |
-
</all>
|
| 111 |
-
<admin>
|
| 112 |
-
<children>
|
| 113 |
-
<system>
|
| 114 |
-
<children>
|
| 115 |
-
<config>
|
| 116 |
-
<children>
|
| 117 |
-
<mppinterest>
|
| 118 |
-
<title>Pinterest Integration</title>
|
| 119 |
-
</mppinterest>
|
| 120 |
-
</children>
|
| 121 |
-
</config>
|
| 122 |
-
</children>
|
| 123 |
-
</system>
|
| 124 |
-
</children>
|
| 125 |
-
</admin>
|
| 126 |
-
</resources>
|
| 127 |
-
</acl>
|
| 128 |
-
</adminhtml>
|
| 129 |
-
<default>
|
| 130 |
-
<mppinterest>
|
| 131 |
-
<general>
|
| 132 |
-
<enabled>1</enabled>
|
| 133 |
-
<display_in_other>1</display_in_other>
|
| 134 |
-
<button_type>horizontal</button_type>
|
| 135 |
-
<add_price>1</add_price>
|
| 136 |
-
</general>
|
| 137 |
-
</mppinterest>
|
| 138 |
-
</default>
|
| 139 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Pinterest_bk/etc/system.xml
DELETED
|
@@ -1,67 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
-
<config>
|
| 3 |
-
<tabs>
|
| 4 |
-
<magpleasure translate="label" module="mppinterest">
|
| 5 |
-
<label>Magpleasure Extensions</label>
|
| 6 |
-
<sort_order>210</sort_order>
|
| 7 |
-
</magpleasure>
|
| 8 |
-
</tabs>
|
| 9 |
-
<sections>
|
| 10 |
-
<mppinterest module="mppinterest" translate="label">
|
| 11 |
-
<label>Pinterest Integration</label>
|
| 12 |
-
<tab>magpleasure</tab>
|
| 13 |
-
<frontend_type>text</frontend_type>
|
| 14 |
-
<sort_order>120</sort_order>
|
| 15 |
-
<show_in_default>1</show_in_default>
|
| 16 |
-
<show_in_website>1</show_in_website>
|
| 17 |
-
<show_in_store>1</show_in_store>
|
| 18 |
-
<groups>
|
| 19 |
-
<general>
|
| 20 |
-
<label>General</label>
|
| 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 |
-
<sort_order>10</sort_order>
|
| 25 |
-
<fields>
|
| 26 |
-
<enabled translate="label">
|
| 27 |
-
<label>Enabled</label>
|
| 28 |
-
<frontend_type>select</frontend_type>
|
| 29 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 30 |
-
<sort_order>10</sort_order>
|
| 31 |
-
<show_in_default>1</show_in_default>
|
| 32 |
-
<show_in_website>1</show_in_website>
|
| 33 |
-
<show_in_store>1</show_in_store>
|
| 34 |
-
</enabled>
|
| 35 |
-
<display_in_other translate="label">
|
| 36 |
-
<label>Integrate into Product Page</label>
|
| 37 |
-
<frontend_type>select</frontend_type>
|
| 38 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 39 |
-
<sort_order>20</sort_order>
|
| 40 |
-
<show_in_default>1</show_in_default>
|
| 41 |
-
<show_in_website>1</show_in_website>
|
| 42 |
-
<show_in_store>1</show_in_store>
|
| 43 |
-
</display_in_other>
|
| 44 |
-
<button_type translate="label">
|
| 45 |
-
<label>Button Type</label>
|
| 46 |
-
<frontend_type>select</frontend_type>
|
| 47 |
-
<source_model>mppinterest/system_config_source_type</source_model>
|
| 48 |
-
<sort_order>30</sort_order>
|
| 49 |
-
<show_in_default>1</show_in_default>
|
| 50 |
-
<show_in_website>1</show_in_website>
|
| 51 |
-
<show_in_store>1</show_in_store>
|
| 52 |
-
</button_type>
|
| 53 |
-
<add_price translate="label">
|
| 54 |
-
<label>Add Price to Description</label>
|
| 55 |
-
<frontend_type>select</frontend_type>
|
| 56 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 57 |
-
<sort_order>40</sort_order>
|
| 58 |
-
<show_in_default>1</show_in_default>
|
| 59 |
-
<show_in_website>1</show_in_website>
|
| 60 |
-
<show_in_store>1</show_in_store>
|
| 61 |
-
</add_price>
|
| 62 |
-
</fields>
|
| 63 |
-
</general>
|
| 64 |
-
</groups>
|
| 65 |
-
</mppinterest>
|
| 66 |
-
</sections>
|
| 67 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Productsharingwidget/Block/Button.php
CHANGED
|
@@ -74,42 +74,42 @@ class Shopalize_Productsharingwidget_Block_Button extends Mage_Core_Block_Templa
|
|
| 74 |
public function getProductImage($_product){
|
| 75 |
return Mage::helper('catalog/image')->init($_product, 'image', $_product->getImage())->resize(self::PRODUCT_IMAGE_SIZE)->__toString();
|
| 76 |
}
|
| 77 |
-
|
| 78 |
/**
|
| 79 |
* Product Price
|
| 80 |
*/
|
| 81 |
-
public function getProductPrice(){
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
}
|
| 84 |
|
| 85 |
/**
|
| 86 |
* Product Special Price
|
| 87 |
*/
|
| 88 |
-
public function getProductSpecialPrice(){
|
| 89 |
-
$
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
return $
|
| 93 |
-
else
|
| 94 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
}
|
| 96 |
|
| 97 |
/**
|
| 98 |
* Shopalized Product Sharing Enabled
|
| 99 |
*/
|
| 100 |
public function isEnabled(){
|
| 101 |
-
return
|
| 102 |
-
}
|
| 103 |
-
|
| 104 |
-
/**
|
| 105 |
-
* Get Config of Product Sharing Extension
|
| 106 |
-
*/
|
| 107 |
-
public function getConfig($field, $group = 'settings', $default = null){
|
| 108 |
-
$value = Mage::getStoreConfig('productsharingwidget/'.$group.'/'.$field);
|
| 109 |
-
if(!isset($value) or trim($value) == ''){
|
| 110 |
-
return $default;
|
| 111 |
-
}else{
|
| 112 |
-
return $value;
|
| 113 |
-
}
|
| 114 |
}
|
| 115 |
}
|
| 74 |
public function getProductImage($_product){
|
| 75 |
return Mage::helper('catalog/image')->init($_product, 'image', $_product->getImage())->resize(self::PRODUCT_IMAGE_SIZE)->__toString();
|
| 76 |
}
|
| 77 |
+
|
| 78 |
/**
|
| 79 |
* Product Price
|
| 80 |
*/
|
| 81 |
+
public function getProductPrice($_product){
|
| 82 |
+
if($this->getProduct()->getTypeId() == 'bundle'){
|
| 83 |
+
$_priceModel = $_product->getPriceModel();
|
| 84 |
+
list($_minimalPriceInclTax, $_maximalPriceInclTax) = $_priceModel->getTotalPrices($_product, null, true, false);
|
| 85 |
+
return $_minimalPriceInclTax;
|
| 86 |
+
} else {
|
| 87 |
+
return $this->getProduct()->getPrice();
|
| 88 |
+
}
|
| 89 |
}
|
| 90 |
|
| 91 |
/**
|
| 92 |
* Product Special Price
|
| 93 |
*/
|
| 94 |
+
public function getProductSpecialPrice($_product){
|
| 95 |
+
if($this->getProduct()->getTypeId() == 'bundle'){
|
| 96 |
+
$_priceModel = $_product->getPriceModel();
|
| 97 |
+
list($_minimalPriceInclTax, $_maximalPriceInclTax) = $_priceModel->getTotalPrices($_product, null, true, false);
|
| 98 |
+
return $_minimalPriceInclTax;
|
| 99 |
+
} else {
|
| 100 |
+
$special_price = $this->getProduct()->getSpecialPrice();
|
| 101 |
+
|
| 102 |
+
if($special_price == '')
|
| 103 |
+
return $this->getProductPrice();
|
| 104 |
+
else
|
| 105 |
+
return $special_price;
|
| 106 |
+
}
|
| 107 |
}
|
| 108 |
|
| 109 |
/**
|
| 110 |
* Shopalized Product Sharing Enabled
|
| 111 |
*/
|
| 112 |
public function isEnabled(){
|
| 113 |
+
return Mage::getStoreConfig('productsharingwidget/settings/active');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
}
|
| 115 |
}
|
app/code/community/Shopalize/Productsharingwidget/etc/system.xml
CHANGED
|
@@ -56,26 +56,9 @@
|
|
| 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 |
-
<merchant_id translate="label">
|
| 61 |
-
<label>Merchant Id</label>
|
| 62 |
-
<frontend_type>text</frontend_type>
|
| 63 |
-
<sort_order>20</sort_order><show_in_default>1</show_in_default>
|
| 64 |
-
<show_in_website>1</show_in_website>
|
| 65 |
-
<show_in_store>1</show_in_store>
|
| 66 |
-
<comment><![CDATA[Get Shopalize Merchant ID by signing up at <a target="_blank" href="http://www.shopalize.com">www.shopalize.com</a>. Look for Account ID value on Settings or Integration Guide page.]]></comment>
|
| 67 |
-
</merchant_id>
|
| 68 |
-
<store_id translate="label">
|
| 69 |
-
<label>Store Id</label>
|
| 70 |
-
<frontend_type>text</frontend_type>
|
| 71 |
-
<sort_order>21</sort_order><show_in_default>1</show_in_default>
|
| 72 |
-
<show_in_website>1</show_in_website>
|
| 73 |
-
<show_in_store>1</show_in_store>
|
| 74 |
-
<comment><![CDATA[Get Shopalize Store ID by signing up at <a target="_blank" href="http://www.shopalize.com">www.shopalize.com</a>. Look for Store ID value on Settings or Integration Guide page.]]></comment>
|
| 75 |
-
</store_id>
|
| 76 |
</fields>
|
| 77 |
</settings>
|
| 78 |
-
|
| 79 |
</groups>
|
| 80 |
</productsharingwidget>
|
| 81 |
</sections>
|
| 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>
|
app/code/community/Shopalize/Purchasesharingwidget/Block/Purchasesharingwidget.php
DELETED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* @company Ocean Websoft Pvt. Ltd.<www.oceanwebsoft.com>
|
| 4 |
-
* @author Ashwini Dinker<ashwini.owsm@gmail.com>
|
| 5 |
-
*
|
| 6 |
-
* @category Oceanwebsoft
|
| 7 |
-
* @package Oceanwebsoft_Shopalize_Social_widget
|
| 8 |
-
*/
|
| 9 |
-
|
| 10 |
-
class Shopalize_Purchasesharingwidget_Block_Purchasesharingwidget extends Mage_Core_Block_Template
|
| 11 |
-
{
|
| 12 |
-
|
| 13 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Purchasesharingwidget/Block/Success.php
DELETED
|
@@ -1,31 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Magento
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/osl-3.0.php
|
| 11 |
-
* If you did not receive a copy of the license and are unable to
|
| 12 |
-
* obtain it through the world-wide-web, please send an email
|
| 13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 14 |
-
*
|
| 15 |
-
* DISCLAIMER
|
| 16 |
-
*
|
| 17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
| 18 |
-
* versions in the future. If you wish to customize Magento for your
|
| 19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
| 20 |
-
*
|
| 21 |
-
* @category Mage
|
| 22 |
-
* @package Mage_Checkout
|
| 23 |
-
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
| 24 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 25 |
-
*/
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
class Shopalize_Purchasesharingwidget_Block_Success extends Mage_Checkout_Block_Success
|
| 29 |
-
{
|
| 30 |
-
|
| 31 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Purchasesharingwidget/Block/System/Config/Info/About.php
DELETED
|
@@ -1,37 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* @company Ocean Websoft Pvt. Ltd.<www.oceanwebsoft.com>
|
| 4 |
-
* @author Ashwini Dinker<ashwini.owsm@gmail.com>
|
| 5 |
-
*
|
| 6 |
-
* @category Oceanwebsoft
|
| 7 |
-
* @package Oceanwebsoft_Shopalize_Social_widget
|
| 8 |
-
*/
|
| 9 |
-
class Shopalize_Purchasesharingwidget_Block_System_Config_Info_About
|
| 10 |
-
extends Mage_Adminhtml_Block_Abstract
|
| 11 |
-
implements Varien_Data_Form_Element_Renderer_Interface
|
| 12 |
-
{
|
| 13 |
-
|
| 14 |
-
/**
|
| 15 |
-
* Render fieldset html
|
| 16 |
-
*
|
| 17 |
-
* @param Varien_Data_Form_Element_Abstract $element
|
| 18 |
-
* @return string
|
| 19 |
-
*/
|
| 20 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
| 21 |
-
{
|
| 22 |
-
$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;">
|
| 23 |
-
<h4>About Shopalize\'s Post Purchase Sharing Plugin</h4>
|
| 24 |
-
<p>
|
| 25 |
-
Shopalize\'s Post Purchase Sharing Plugin appears on your store\'s order confirmation page i.e. after checkout is complete.
|
| 26 |
-
After every purchase is complete, shoppers are prompted and rewarded for sharing their purchase or your store with their friends on Facebook or Twitter.
|
| 27 |
-
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 />
|
| 28 |
-
<h4>Contact Us</h4>
|
| 29 |
-
Website: <a href="http://www.shopalize.com" target="_blank">www.shopalize.com</a><br />
|
| 30 |
-
Email: <a href="mailto:help@shopalize.com">help@shopalize.com</a><br />
|
| 31 |
-
Skype: adikot<br/>
|
| 32 |
-
</p>
|
| 33 |
-
</div>';
|
| 34 |
-
|
| 35 |
-
return $html;
|
| 36 |
-
}
|
| 37 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Purchasesharingwidget/Helper/Data.php
DELETED
|
@@ -1,307 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* @website http://www.shopalize.com
|
| 4 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 5 |
-
*/
|
| 6 |
-
class Shopalize_Purchasesharingwidget_Helper_Data extends Mage_Core_Helper_Abstract
|
| 7 |
-
{
|
| 8 |
-
|
| 9 |
-
const PRODUCT_IMAGE_SIZE = 256;
|
| 10 |
-
|
| 11 |
-
public function getConfig($field, $group = 'settings', $default = null){
|
| 12 |
-
$value = Mage::getStoreConfig('purchasesharingwidget/'.$group.'/'.$field);
|
| 13 |
-
if(!isset($value) or trim($value) == ''){
|
| 14 |
-
return $default;
|
| 15 |
-
}else{
|
| 16 |
-
return $value;
|
| 17 |
-
}
|
| 18 |
-
}
|
| 19 |
-
|
| 20 |
-
public function getWidget($order_id) {
|
| 21 |
-
|
| 22 |
-
if($order_id)
|
| 23 |
-
|
| 24 |
-
{
|
| 25 |
-
|
| 26 |
-
$order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
|
| 27 |
-
$_items = $order->getAllVisibleItems();
|
| 28 |
-
$_count = count($_items);
|
| 29 |
-
|
| 30 |
-
if($_count>0)
|
| 31 |
-
{
|
| 32 |
-
$orderDate=explode(" ",$order->getCreatedAt());
|
| 33 |
-
$orderDate1=explode("-",$orderDate[0]);
|
| 34 |
-
$_output='<!-- Shopalize Integration BEGIN -->';
|
| 35 |
-
$_output.="\n".'<div id="shopalize-purchase-sharing-wrapper"></div>';
|
| 36 |
-
$_output.="\n".'<script type="text/javascript">';
|
| 37 |
-
$_output.="\nvar Shopalize = window.Shopalize || {};
|
| 38 |
-
(function() {
|
| 39 |
-
// Populate Purchase Order details
|
| 40 |
-
var order_details = {'is_debug' : false, 'merchant_id': '', 'widget_width': '', 'campaign_id': '', 'customer_email': '', 'order_number': '', 'order_total': '', 'order_currency': '', 'order_date': '', 'items' : []},
|
| 41 |
-
num_items = '".$_count."';
|
| 42 |
-
for(var cnt = 0; cnt < num_items; cnt++) { order_details.items[cnt] = {'id':'', 'title':'', 'current_price':'', 'list_price':'', 'url':'', 'image_url':''};}
|
| 43 |
-
|
| 44 |
-
// Provide Merchant account, Order, and Product Details\n";
|
| 45 |
-
|
| 46 |
-
$_output.="\n\torder_details['is_debug'] = true;";
|
| 47 |
-
$_output.="\n\torder_details['merchant_id'] = '".$this->getConfig('merchant_id', 'settings')."';";
|
| 48 |
-
$_output.="\n\torder_details['store_id'] = '".$this->getConfig('store_id', 'settings')."';";
|
| 49 |
-
$_output.="\n\torder_details['widget_width'] = '".$this->getConfig('widget_width', 'settings')."px';";
|
| 50 |
-
$_output.="\n\torder_details['customer_email'] = '".$this->escapeHtml($order->getCustomerEmail())."';";
|
| 51 |
-
$_output.="\n\torder_details['order_number'] = '".$order_id."';";
|
| 52 |
-
$_output.="\n\torder_details['order_total'] = '".$this->escapeHtml($order->getGrandTotal())."';";
|
| 53 |
-
$_output.="\n\torder_details['order_currency'] = '".$this->escapeHtml($order->getOrderCurrencyCode())."';";
|
| 54 |
-
$_output.="\n\torder_details['order_date'] = '".$orderDate1[1]."-".$orderDate1[2]."-".$orderDate1[0]."';";
|
| 55 |
-
$_output.="\n";
|
| 56 |
-
|
| 57 |
-
/*get ordered items*/
|
| 58 |
-
|
| 59 |
-
$k=0; foreach ($_items as $_item):
|
| 60 |
-
$_product = Mage::getModel('catalog/product');
|
| 61 |
-
$_product->load($_product->getIdBySku($_item->getSku()));
|
| 62 |
-
/*additional changes for configurable products*/
|
| 63 |
-
$parent_url='';
|
| 64 |
-
$product_url='';
|
| 65 |
-
$parentIdArray='';
|
| 66 |
-
|
| 67 |
-
$_version_array=Mage::getVersionInfo();
|
| 68 |
-
$_version=$_version_array['major'].$_version_array['minor'].$_version_array['revision'];
|
| 69 |
-
|
| 70 |
-
$l_bHasParent = false;
|
| 71 |
-
|
| 72 |
-
if($_product->getvisibility()=='1')
|
| 73 |
-
{
|
| 74 |
-
if($_version<='141')
|
| 75 |
-
{
|
| 76 |
-
list($parentIdArray) = $_product->loadParentProductIds()->getData('parent_product_ids');
|
| 77 |
-
if(isset($parentIdArray[0]))
|
| 78 |
-
{
|
| 79 |
-
$parent = Mage::getModel('catalog/product')->load($parentIdArray[0]);
|
| 80 |
-
$parent_url=$parent->getProductUrl();
|
| 81 |
-
|
| 82 |
-
// product has parent
|
| 83 |
-
$l_bHasParent = true;
|
| 84 |
-
}
|
| 85 |
-
}
|
| 86 |
-
else
|
| 87 |
-
{
|
| 88 |
-
|
| 89 |
-
list($parentIdArray) = Mage::getModel('catalog/product_type_configurable')->getParentIdsByChild($_product->getIdBySku($_item->getSku()));
|
| 90 |
-
|
| 91 |
-
if(isset($parentIdArray))
|
| 92 |
-
{
|
| 93 |
-
$parent = Mage::getModel('catalog/product')->load($parentIdArray);
|
| 94 |
-
$parent_url=$parent->getProductUrl();
|
| 95 |
-
|
| 96 |
-
// product has parent
|
| 97 |
-
$l_bHasParent = true;
|
| 98 |
-
}
|
| 99 |
-
}
|
| 100 |
-
$product_url=$parent_url;
|
| 101 |
-
}
|
| 102 |
-
else
|
| 103 |
-
{
|
| 104 |
-
$product_url=$_product->getProductUrl();
|
| 105 |
-
|
| 106 |
-
}
|
| 107 |
-
/*additional changes for configurable products*/
|
| 108 |
-
$_helper = Mage::helper('catalog/output');
|
| 109 |
-
|
| 110 |
-
if ($l_bHasParent && (!$_product->getImage() || 'no_selection' === $_product->getImage())) {
|
| 111 |
-
// product has parent, we use the parent image
|
| 112 |
-
$_img = Mage::helper('catalog/image')->init($parent, 'image', $parent->getImage())->resize(self::PRODUCT_IMAGE_SIZE)->__toString();
|
| 113 |
-
}
|
| 114 |
-
else {
|
| 115 |
-
if ($_product->getImage() != 'no_selection' && $_product->getImage()):
|
| 116 |
-
$_img = Mage::helper('catalog/image')->init($_product, 'image')->resize(self::PRODUCT_IMAGE_SIZE);
|
| 117 |
-
else:
|
| 118 |
-
$_img = Mage::helper('catalog/image')->init($_product, 'image')->resize(self::PRODUCT_IMAGE_SIZE);
|
| 119 |
-
endif;
|
| 120 |
-
}
|
| 121 |
-
|
| 122 |
-
if($_item->getPrice()==$_product->getPrice()):
|
| 123 |
-
$price=$_item->getPrice(); $special_price=$price;
|
| 124 |
-
else:
|
| 125 |
-
$price=$_product->getPrice(); $special_price=$_item->getPrice();
|
| 126 |
-
endif;
|
| 127 |
-
|
| 128 |
-
//$_output .= "/*". $_product->getShortDescription(). "*/";
|
| 129 |
-
|
| 130 |
-
$_output.="\n\torder_details['items'][".$k."]['id'] = '".$_item->getSku()."';";
|
| 131 |
-
$_output.="\n\torder_details['items'][".$k."]['title'] = '".str_replace("'", "", $_item->getName())."';";
|
| 132 |
-
$_output.="\n\torder_details['items'][".$k."]['current_price'] = '".$special_price."';";
|
| 133 |
-
$_output.="\n\torder_details['items'][".$k."]['list_price'] = '".$price."';";
|
| 134 |
-
$_output.="\n\torder_details['items'][".$k."]['url'] = '".$product_url."';";
|
| 135 |
-
$_output.="\n\torder_details['items'][".$k."]['image_url'] = '".$_img."';";
|
| 136 |
-
$_output.="\n\torder_details['items'][".$k."]['description'] = '". $this->_sanitizeDescription($_product). "';";
|
| 137 |
-
|
| 138 |
-
$k++; endforeach;
|
| 139 |
-
|
| 140 |
-
/*get ordered items*/
|
| 141 |
-
|
| 142 |
-
$_output.="\n\n// Assign Purchase Order details to Shopalize scope
|
| 143 |
-
Shopalize.order_details = order_details;
|
| 144 |
-
Shopalize.base_url = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'www.shopalize.com';
|
| 145 |
-
|
| 146 |
-
// Load Widget script Asynchronously
|
| 147 |
-
var script = document.createElement('script');
|
| 148 |
-
script.type = 'text/javascript'; script.async = true;
|
| 149 |
-
script.src = Shopalize.base_url + '/js/purchase_sharing.js';
|
| 150 |
-
var entry = document.getElementsByTagName('script')[0];
|
| 151 |
-
entry.parentNode.insertBefore(script, entry);
|
| 152 |
-
}());";
|
| 153 |
-
|
| 154 |
-
$_output.="\n</script>\n".'<!-- Shopalize Integration END -->';
|
| 155 |
-
|
| 156 |
-
}
|
| 157 |
-
|
| 158 |
-
return $_output;
|
| 159 |
-
}
|
| 160 |
-
else {
|
| 161 |
-
return false;
|
| 162 |
-
}
|
| 163 |
-
}
|
| 164 |
-
public function getOrderinfoWidget($order_id) {
|
| 165 |
-
|
| 166 |
-
if($order_id)
|
| 167 |
-
|
| 168 |
-
{
|
| 169 |
-
|
| 170 |
-
$order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
|
| 171 |
-
$_items = $order->getAllVisibleItems();
|
| 172 |
-
$_count = count($_items);
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
$_output="<h3>Order Details (".$_count." Items)</h3>";
|
| 176 |
-
$_output.="<p>Customer Name : ".$this->escapeHtml($order->getCustomerName())."</p>";
|
| 177 |
-
$_output.="<p>Customer Email : ".$this->escapeHtml($order->getCustomerEmail())."</p>";
|
| 178 |
-
$_output.="<p>Order No : ".$order_id."</p>";
|
| 179 |
-
$_output.="<p>Order Total : ".$this->escapeHtml($order->getGrandTotal())."</p>";
|
| 180 |
-
$_output.="<p>Order Currency : ".$this->escapeHtml($order->getOrderCurrencyCode())."</p>";
|
| 181 |
-
$_output.="<p>Order Date : ".$order->getCreatedAtDate()."</p>";
|
| 182 |
-
|
| 183 |
-
if($_count>0)
|
| 184 |
-
{
|
| 185 |
-
$_output.='<h3>Ordered Items</h3>';
|
| 186 |
-
$_output.='<table width="100%" class="data-table">
|
| 187 |
-
<tr style="background:#eee;">
|
| 188 |
-
<th>Item</th>
|
| 189 |
-
<th>Product Name</th>
|
| 190 |
-
<th>Product Code</th>
|
| 191 |
-
<th>Url</th>
|
| 192 |
-
<th>Visibility</th>
|
| 193 |
-
<th>Parent Id</th>
|
| 194 |
-
<th>Product Id</th>
|
| 195 |
-
<th>Price</th>
|
| 196 |
-
<th>Special Price</th>
|
| 197 |
-
</tr>';
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
/*get ordered items*/
|
| 202 |
-
|
| 203 |
-
$k=0; foreach ($_items as $_item):
|
| 204 |
-
$_product = Mage::getModel('catalog/product');
|
| 205 |
-
$_product->load($_product->getIdBySku($_item->getSku()));
|
| 206 |
-
$parent_url='';
|
| 207 |
-
$product_url='';
|
| 208 |
-
$parentIdArray='';
|
| 209 |
-
|
| 210 |
-
$_version_array=Mage::getVersionInfo();
|
| 211 |
-
$_version=$_version_array['major'].$_version_array['minor'].$_version_array['revision'];
|
| 212 |
-
|
| 213 |
-
$l_bHasParent = false;
|
| 214 |
-
|
| 215 |
-
if($_product->getvisibility()=='1')
|
| 216 |
-
{
|
| 217 |
-
if($_version<='141')
|
| 218 |
-
{
|
| 219 |
-
list($parentIdArray) = $_product->loadParentProductIds()->getData('parent_product_ids');
|
| 220 |
-
if(isset($parentIdArray[0]))
|
| 221 |
-
{
|
| 222 |
-
$parent = Mage::getModel('catalog/product')->load($parentIdArray[0]);
|
| 223 |
-
$parent_url=$parent->getProductUrl();
|
| 224 |
-
// product has parent
|
| 225 |
-
$l_bHasParent = true;
|
| 226 |
-
}
|
| 227 |
-
}
|
| 228 |
-
else
|
| 229 |
-
{
|
| 230 |
-
|
| 231 |
-
list($parentIdArray) = Mage::getModel('catalog/product_type_configurable')->getParentIdsByChild($_product->getIdBySku($_item->getSku()));
|
| 232 |
-
|
| 233 |
-
if(isset($parentIdArray))
|
| 234 |
-
{
|
| 235 |
-
$parent = Mage::getModel('catalog/product')->load($parentIdArray);
|
| 236 |
-
$parent_url=$parent->getProductUrl();
|
| 237 |
-
// product has parent
|
| 238 |
-
$l_bHasParent = true;
|
| 239 |
-
}
|
| 240 |
-
}
|
| 241 |
-
$product_url=$parent_url;
|
| 242 |
-
}
|
| 243 |
-
else
|
| 244 |
-
{
|
| 245 |
-
$product_url=$_product->getProductUrl();
|
| 246 |
-
|
| 247 |
-
}
|
| 248 |
-
$_helper = Mage::helper('catalog/output');
|
| 249 |
-
|
| 250 |
-
$l_bUseParentImage = false;
|
| 251 |
-
if ($l_bHasParent && (!$_product->getImage() || 'no_selection' === $_product->getImage())) {
|
| 252 |
-
// product has parent we use the parent's image
|
| 253 |
-
$_img = Mage::helper('catalog/image')->init($parent, 'image', $parent->getImage())->resize(self::PRODUCT_IMAGE_SIZE);
|
| 254 |
-
$l_bUseParentImage = true;
|
| 255 |
-
}
|
| 256 |
-
else {
|
| 257 |
-
if ($_product->getImage() != 'no_selection' && $_product->getImage()):
|
| 258 |
-
$_img = Mage::helper('catalog/image')->init($_product, 'image')->resize(self::PRODUCT_IMAGE_SIZE);
|
| 259 |
-
else:
|
| 260 |
-
$_img = Mage::helper('catalog/image')->init($_product, 'image')->resize(self::PRODUCT_IMAGE_SIZE);
|
| 261 |
-
endif;
|
| 262 |
-
}
|
| 263 |
-
|
| 264 |
-
if($_item->getPrice()==$_product->getPrice()):
|
| 265 |
-
$price=$_item->getPrice(); $special_price=$price;
|
| 266 |
-
else:
|
| 267 |
-
$price=$_product->getPrice(); $special_price=$_item->getPrice();
|
| 268 |
-
endif;
|
| 269 |
-
|
| 270 |
-
//print items
|
| 271 |
-
$_output.='<tr>';
|
| 272 |
-
$_output.='<td>'.$_helper->productAttribute($l_bUseParentImage?$parent:$_product, $_img, 'image').'</td>';
|
| 273 |
-
$_output.='<td>'.$_item->getName().'</td>';
|
| 274 |
-
$_output.='<td>'.$_item->getSku().'</td>';
|
| 275 |
-
$_output.='<td>'.$product_url.'</td>';
|
| 276 |
-
$_output.='<td>'.$_product->getvisibility().'</td>';
|
| 277 |
-
$_output.='<td>'.$parentIdArray.'</td>';
|
| 278 |
-
$_output.='<td>'.$_product->getIdBySku($_item->getSku()).'</td>';
|
| 279 |
-
$_output.='<td>'.$price.'</td>';
|
| 280 |
-
$_output.='<td>'.$special_price.','.$_item->getCost().'</td>';
|
| 281 |
-
$_output.='</tr>';
|
| 282 |
-
|
| 283 |
-
$k++; endforeach;
|
| 284 |
-
|
| 285 |
-
/*get ordered items*/
|
| 286 |
-
$_output.='</table>';
|
| 287 |
-
}
|
| 288 |
-
|
| 289 |
-
return $_output;
|
| 290 |
-
}
|
| 291 |
-
else {
|
| 292 |
-
return false;
|
| 293 |
-
}
|
| 294 |
-
}
|
| 295 |
-
|
| 296 |
-
protected function _sanitizeDescription($p_oProduct) {
|
| 297 |
-
|
| 298 |
-
$_helper = Mage::helper('catalog/output');
|
| 299 |
-
|
| 300 |
-
$l_sDescription = $_helper->productAttribute($p_oProduct, strip_tags(str_replace(array("\r\n", "\r", "\n", "\t"), ' ', $p_oProduct->getShortDescription())), 'short_description');
|
| 301 |
-
$l_sDescription = str_replace('\'', '\\\'', $l_sDescription);
|
| 302 |
-
|
| 303 |
-
return $l_sDescription;
|
| 304 |
-
|
| 305 |
-
}
|
| 306 |
-
|
| 307 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Purchasesharingwidget/Helper/Event.php
DELETED
|
@@ -1,47 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
class Shopalize_Purchasesharingwidget_Helper_Event extends Mage_Core_Helper_Abstract {
|
| 4 |
-
|
| 5 |
-
public function core_block_abstract_to_html_after_checkout_success($p_oObserver) {
|
| 6 |
-
|
| 7 |
-
/* @var $l_oBlock Mage_Core_Block_Abstract */
|
| 8 |
-
$l_oBlock = $p_oObserver->getBlock();
|
| 9 |
-
|
| 10 |
-
if ('checkout.success' === $l_oBlock->getNameInLayout()) {
|
| 11 |
-
|
| 12 |
-
$l_oTransport = $p_oObserver->getTransport();
|
| 13 |
-
|
| 14 |
-
$_widget = Mage::helper('purchasesharingwidget');
|
| 15 |
-
|
| 16 |
-
$l_sHtml = $l_oTransport->getHtml();
|
| 17 |
-
$l_sHtml = $l_sHtml. '<div style="clear: both;"></div>'. $_widget->getWidget($l_oBlock->getOrderId());
|
| 18 |
-
$l_oTransport->setHtml($l_sHtml);
|
| 19 |
-
|
| 20 |
-
}
|
| 21 |
-
|
| 22 |
-
}
|
| 23 |
-
|
| 24 |
-
public function core_block_abstract_to_html_before_checkout_success($p_oObserver) {
|
| 25 |
-
|
| 26 |
-
/* @var $l_oBlock Mage_Core_Block_Abstract */
|
| 27 |
-
$l_oBlock = $p_oObserver->getBlock();
|
| 28 |
-
|
| 29 |
-
if ('checkout.success' === $l_oBlock->getNameInLayout()) {
|
| 30 |
-
|
| 31 |
-
if (Mage::getStoreConfig('purchasesharingwidget/settings/active')) {
|
| 32 |
-
|
| 33 |
-
$l_oChild = $l_oBlock->getLayout()->createBlock(
|
| 34 |
-
'core/template',
|
| 35 |
-
'purchasesharingwidget.success',
|
| 36 |
-
array(
|
| 37 |
-
'template' => 'purchasesharingwidget/widget.phtml'
|
| 38 |
-
)
|
| 39 |
-
);
|
| 40 |
-
|
| 41 |
-
$l_oBlock->append($l_oChild);
|
| 42 |
-
}
|
| 43 |
-
}
|
| 44 |
-
|
| 45 |
-
}
|
| 46 |
-
|
| 47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Purchasesharingwidget/controllers/IndexController.php
DELETED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* @company Ocean Websoft Pvt. Ltd.<www.oceanwebsoft.com>
|
| 4 |
-
* @author Ashwini Dinker<ashwini.owsm@gmail.com>
|
| 5 |
-
*
|
| 6 |
-
* @category Oceanwebsoft
|
| 7 |
-
* @package Oceanwebsoft_Shopalize_Social_widget
|
| 8 |
-
*/
|
| 9 |
-
|
| 10 |
-
class Shopalize_Purchasesharingwidget_IndexController extends Mage_Core_Controller_Front_Action
|
| 11 |
-
{
|
| 12 |
-
|
| 13 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Purchasesharingwidget/etc/adminhtml.xml
DELETED
|
@@ -1,33 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
-
<!--
|
| 3 |
-
/**
|
| 4 |
-
* @company Ocean Websoft Pvt. Ltd.<www.oceanwebsoft.com>
|
| 5 |
-
* @author Ashwini Dinker<ashwini.owsm@gmail.com>
|
| 6 |
-
*
|
| 7 |
-
* @category Oceanwebsoft
|
| 8 |
-
* @package Oceanwebsoft_Shopalize_Social_widget
|
| 9 |
-
*/
|
| 10 |
-
|
| 11 |
-
-->
|
| 12 |
-
<config>
|
| 13 |
-
<acl>
|
| 14 |
-
<resources>
|
| 15 |
-
<admin>
|
| 16 |
-
<children>
|
| 17 |
-
<system>
|
| 18 |
-
<children>
|
| 19 |
-
<config>
|
| 20 |
-
<children>
|
| 21 |
-
<purchasesharingwidget translate="title" module="purchasesharingwidget">
|
| 22 |
-
<title>Shpalize Purchase Sharing Widget</title>
|
| 23 |
-
|
| 24 |
-
</purchasesharingwidget>
|
| 25 |
-
</children>
|
| 26 |
-
</config>
|
| 27 |
-
</children>
|
| 28 |
-
</system>
|
| 29 |
-
</children>
|
| 30 |
-
</admin>
|
| 31 |
-
</resources>
|
| 32 |
-
</acl>
|
| 33 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Shopalize/Purchasesharingwidget/etc/config.xml
DELETED
|
@@ -1,81 +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_Purchasesharingwidget>
|
| 11 |
-
<version>1.1.1</version>
|
| 12 |
-
</Shopalize_Purchasesharingwidget>
|
| 13 |
-
</modules>
|
| 14 |
-
<global>
|
| 15 |
-
<helpers>
|
| 16 |
-
<purchasesharingwidget>
|
| 17 |
-
<class>Shopalize_Purchasesharingwidget_Helper</class>
|
| 18 |
-
</purchasesharingwidget>
|
| 19 |
-
</helpers>
|
| 20 |
-
|
| 21 |
-
<blocks>
|
| 22 |
-
<purchasesharingwidget>
|
| 23 |
-
<class>Shopalize_Purchasesharingwidget_Block</class>
|
| 24 |
-
</purchasesharingwidget>
|
| 25 |
-
<checkout>
|
| 26 |
-
<rewrite>
|
| 27 |
-
<success>Shopalize_Purchasesharingwidget_Block_Success</success>
|
| 28 |
-
</rewrite>
|
| 29 |
-
</checkout>
|
| 30 |
-
</blocks>
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
</global>
|
| 34 |
-
<frontend>
|
| 35 |
-
|
| 36 |
-
<events>
|
| 37 |
-
<core_block_abstract_to_html_before>
|
| 38 |
-
<observers>
|
| 39 |
-
<purchasesharingwidget_core_block_abstract_to_html_before>
|
| 40 |
-
<class>Shopalize_Purchasesharingwidget_Helper_Event</class>
|
| 41 |
-
<method>core_block_abstract_to_html_before_checkout_success</method>
|
| 42 |
-
</purchasesharingwidget_core_block_abstract_to_html_before>
|
| 43 |
-
</observers>
|
| 44 |
-
</core_block_abstract_to_html_before>
|
| 45 |
-
</events>
|
| 46 |
-
|
| 47 |
-
</frontend>
|
| 48 |
-
<adminhtml>
|
| 49 |
-
<acl>
|
| 50 |
-
<resources>
|
| 51 |
-
<admin>
|
| 52 |
-
<children>
|
| 53 |
-
<system>
|
| 54 |
-
<children>
|
| 55 |
-
<config>
|
| 56 |
-
<children>
|
| 57 |
-
<shopalizeinfo>
|
| 58 |
-
<title>Shopalize</title>
|
| 59 |
-
</shopalizeinfo>
|
| 60 |
-
<purchasesharingwidget>
|
| 61 |
-
<title>Post Purchase Sharing Plugin</title>
|
| 62 |
-
</purchasesharingwidget>
|
| 63 |
-
</children>
|
| 64 |
-
</config>
|
| 65 |
-
</children>
|
| 66 |
-
</system>
|
| 67 |
-
</children>
|
| 68 |
-
</admin>
|
| 69 |
-
</resources>
|
| 70 |
-
</acl>
|
| 71 |
-
</adminhtml>
|
| 72 |
-
<default>
|
| 73 |
-
<purchasesharingwidget>
|
| 74 |
-
<settings>
|
| 75 |
-
<active>0</active>
|
| 76 |
-
<widget_width>400</widget_width>
|
| 77 |
-
|
| 78 |
-
</settings>
|
| 79 |
-
</purchasesharingwidget>
|
| 80 |
-
</default>
|
| 81 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/layout/productsharingwidget.xml
CHANGED
|
@@ -25,8 +25,5 @@
|
|
| 25 |
</block>
|
| 26 |
</block>
|
| 27 |
</reference>
|
| 28 |
-
<reference name="before_body_end">
|
| 29 |
-
<block type="productsharingwidget/sa" name="shopalize_analytics" as="shopalize_analytics" template="productsharingwidget/sa.phtml" />
|
| 30 |
-
</reference>
|
| 31 |
</catalog_product_view>
|
| 32 |
</layout>
|
| 25 |
</block>
|
| 26 |
</block>
|
| 27 |
</reference>
|
|
|
|
|
|
|
|
|
|
| 28 |
</catalog_product_view>
|
| 29 |
</layout>
|
app/{code/community/Shopalize/Pinterest_bk/Helper/Data.php → design/frontend/default/default/layout/sbasic.xml}
RENAMED
|
@@ -1,20 +1,25 @@
|
|
| 1 |
-
<?
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
*
|
| 5 |
-
*
|
| 6 |
-
*
|
| 7 |
-
*
|
| 8 |
-
*
|
| 9 |
-
*
|
| 10 |
-
*
|
| 11 |
-
*
|
| 12 |
-
*
|
| 13 |
-
* @
|
| 14 |
-
* @
|
| 15 |
-
* @
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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/template/{productsharingwidget → basic}/sa.phtml
RENAMED
|
File without changes
|
app/design/frontend/default/default/template/productsharingwidget/button.phtml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
if($this->isEnabled()){
|
| 3 |
|
| 4 |
$_product = $this->getProduct();
|
| 5 |
-
|
| 6 |
?><!-- Shopalize Button Code BEGIN -->
|
| 7 |
<div class="shopalize-product-sharing shopalize-share-button shopalize-share-icon-24"
|
| 8 |
data-id = "<?php echo $_product->getSku()?>"
|
|
@@ -10,8 +10,8 @@ if($this->isEnabled()){
|
|
| 10 |
data-description = "<?php echo $this->getShortDescription($_product)?>"
|
| 11 |
data-url = "<?php echo $this->getProductUrl()?>"
|
| 12 |
data-image-url = "<?php echo $this->getProductImage($_product)?>"
|
| 13 |
-
data-list-price = "<?php echo $this->getProductPrice(); ?>"
|
| 14 |
-
data-current-price= "<?php echo $this->getProductSpecialPrice(); ?>">
|
| 15 |
<a href="#"><span class="shopalize-share-button-text">Share & Save</span></a>
|
| 16 |
</div>
|
| 17 |
<!-- Shopalize Button Code END -->
|
| 2 |
if($this->isEnabled()){
|
| 3 |
|
| 4 |
$_product = $this->getProduct();
|
| 5 |
+
|
| 6 |
?><!-- Shopalize Button Code BEGIN -->
|
| 7 |
<div class="shopalize-product-sharing shopalize-share-button shopalize-share-icon-24"
|
| 8 |
data-id = "<?php echo $_product->getSku()?>"
|
| 10 |
data-description = "<?php echo $this->getShortDescription($_product)?>"
|
| 11 |
data-url = "<?php echo $this->getProductUrl()?>"
|
| 12 |
data-image-url = "<?php echo $this->getProductImage($_product)?>"
|
| 13 |
+
data-list-price = "<?php echo $this->getProductPrice($_product); ?>"
|
| 14 |
+
data-current-price= "<?php echo $this->getProductSpecialPrice($_product); ?>">
|
| 15 |
<a href="#"><span class="shopalize-share-button-text">Share & Save</span></a>
|
| 16 |
</div>
|
| 17 |
<!-- Shopalize Button Code END -->
|
app/etc/modules/Shopalize_Basic.xml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<config>
|
| 3 |
+
<modules>
|
| 4 |
+
<Shopalize_Basic>
|
| 5 |
+
<active>true</active>
|
| 6 |
+
<codePool>community</codePool>
|
| 7 |
+
</Shopalize_Basic>
|
| 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>
|
| 23 |
<authors><author><name>Aditya Kothadiya</name><user>auto-converted</user><email>aditya@shopalize.com</email></author></authors>
|
| 24 |
-
<date>2012-08-
|
| 25 |
-
<time>10:
|
| 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.1</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 tracking code with product sharing. Its load before end of body tag.</notes>
|
| 23 |
<authors><author><name>Aditya Kothadiya</name><user>auto-converted</user><email>aditya@shopalize.com</email></author></authors>
|
| 24 |
+
<date>2012-08-17</date>
|
| 25 |
+
<time>18:10:52</time>
|
| 26 |
+
<contents><target name="magecommunity"><dir name="Shopalize"><dir name="Productsharingwidget"><dir name="Block"><dir name="System"><dir name="Config"><dir name="Info"><file name="About.php" hash="bf3d4532dde2bf3907762787f8acb9ec"/></dir><file name="Info.php" hash="1e05d67b820b279d0a10ae45edefdec6"/></dir></dir><file name="Button.php" hash="852728181e389331d3659d97c0fb9f72"/></dir><dir name="Helper"><file name="Data.php" hash="ade70c5def73b4f1655e94fc11e4ef3e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="58e1bbf1175cd056c0bb5f08f6ae8371"/><file name="config.xml" hash="1dbd2bcc8a5290e99dc6c384acdaef67"/><file name="system.xml" hash="00e838bcae2c3165a66f13340553a5ae"/></dir></dir><dir name="Basic"><dir name="Block"><dir name="System"><dir name="Config"><dir name="Info"><file name="About.php" hash="267e9a0169ef0958f073fa30fa7c6689"/></dir><file name="Info.php" hash="b020b2d243600b723196fc74e2484b03"/></dir></dir><file name="Sa.php" hash="fbbfd05235399229e9fc1f6b46a79aa3"/></dir><dir name="Helper"><file name="Data.php" hash="63d1fc27e1a6260268ad85d5900ea777"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1e64b73ef0d8242e56cf3f2a0ae216dd"/><file name="config.xml" hash="c81d803948546fc0c1caeb499e86e56e"/><file name="system.xml" hash="a50307711f3bbe91fd79c36da2562b13"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="productsharingwidget.xml" hash="0c334c46f0a2abd44913eaaa6afdbd68"/><file name="sbasic.xml" hash="7c857358e62756443964e038bf2fbb98"/></dir><dir name="template"><dir name="productsharingwidget"><file name="button.phtml" hash="9cded50c3bee9e6017009f97f8702d0d"/></dir><dir name="basic"><file name="sa.phtml" hash="5cf89471ad2ef9b386585a709bf86d3e"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Shopalize_Productsharingwidget.xml" hash="aec3a36581765de378ed5521098c9ee9"/><file name="Shopalize_Basic.xml" hash="46ffdbf1ea16cf1ca03cac825ff736c4"/></dir></target></contents>
|
| 27 |
<compatible/>
|
| 28 |
<dependencies/>
|
| 29 |
</package>
|
