Shopalizes_Product_Sharing_Widget - Version 1.0.3

Version Notes

Provide configuration for share button class name and share button text

Download this release

Release Info

Developer Magento Core Team
Extension Shopalizes_Product_Sharing_Widget
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/code/community/Shopalize/Productsharing/Block/Button.php CHANGED
@@ -136,11 +136,15 @@ class Shopalize_Productsharing_Block_Button extends Mage_Core_Block_Template{
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
  }
136
  }
137
 
138
  public function isPurchaseSharingEnabled(){
 
 
 
 
 
139
  return Mage::getStoreConfig('purchasesharing/settings/active');
140
  }
141
+
142
+ public function getButtonClassName(){
143
+ return Mage::getStoreConfig('productsharing/settings/share_button_class');
144
+ }
145
+
146
+ public function getButtonTextName(){
147
+ return Mage::getStoreConfig('productsharing/settings/share_button_text');
148
+ }
149
+
150
  }
app/code/community/Shopalize/Productsharing/etc/config.xml CHANGED
@@ -79,4 +79,12 @@
79
  </resources>
80
  </acl>
81
  </adminhtml>
 
 
 
 
 
 
 
 
82
  </config>
79
  </resources>
80
  </acl>
81
  </adminhtml>
82
+ <default>
83
+ <productsharing>
84
+ <settings>
85
+ <share_button_class>shopalize-share-icon-24</share_button_class>
86
+ <share_button_text>Share &amp; Save</share_button_text>
87
+ </settings>
88
+ </productsharing>
89
+ </default>
90
  </config>
app/code/community/Shopalize/Productsharing/etc/system.xml CHANGED
@@ -72,6 +72,20 @@
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>
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
+ <share_button_class translate="label">
76
+ <label>Share Button Class Name</label>
77
+ <frontend_type>text</frontend_type>
78
+ <sort_order>22</sort_order><show_in_default>1</show_in_default>
79
+ <show_in_website>1</show_in_website>
80
+ <show_in_store>1</show_in_store>
81
+ </share_button_class>
82
+ <share_button_text translate="label">
83
+ <label>Share Button Text</label>
84
+ <frontend_type>text</frontend_type>
85
+ <sort_order>23</sort_order><show_in_default>1</show_in_default>
86
+ <show_in_website>1</show_in_website>
87
+ <show_in_store>1</show_in_store>
88
+ </share_button_text>
89
  </fields>
90
  </settings>
91
  </groups>
app/design/frontend/default/default/template/shopalizeproductsharing/product_integration.phtml CHANGED
@@ -4,7 +4,7 @@ if($this->isEnabled()){
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()?>"
9
  data-title = "<?php echo $this->getProductName()?>"
10
  data-description = "<?php echo $this->getShortDescription($_product)?>"
@@ -12,7 +12,7 @@ if($this->isEnabled()){
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 -->
18
  <?php } ?>
4
  $_product = $this->getProduct();
5
 
6
  ?><!-- Shopalize Button Code BEGIN -->
7
+ <div class="shopalize-product-sharing shopalize-share-button <?php echo $this->getButtonClassName() ?>"
8
  data-id = "<?php echo $_product->getSku()?>"
9
  data-title = "<?php echo $this->getProductName()?>"
10
  data-description = "<?php echo $this->getShortDescription($_product)?>"
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"><?php echo $this->getButtonTextName() ?></span></a>
16
  </div>
17
  <!-- Shopalize Button Code END -->
18
  <?php } ?>
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.2</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -19,11 +19,11 @@
19
  &#xD;
20
  &lt;ol&gt;&#xD;
21
  &lt;li&gt;Register an account with &lt;a href="http://www.shopalize.com"&gt;Shopalize.com&lt;/a&gt; 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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Shopalizes_Product_Sharing_Widget</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
19
  &#xD;
20
  &lt;ol&gt;&#xD;
21
  &lt;li&gt;Register an account with &lt;a href="http://www.shopalize.com"&gt;Shopalize.com&lt;/a&gt; before you start the installation to get your Account</description>
22
+ <notes>Provide configuration for share button class name and share button text</notes>
23
  <authors><author><name>Aditya Kothadiya</name><user>auto-converted</user><email>aditya@shopalize.com</email></author></authors>
24
+ <date>2012-08-24</date>
25
+ <time>03:15:29</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="bf1e32356f3db2a77d153c3df0ec179f"/></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="e44ccde85201ddae175315210a997104"/><file name="system.xml" hash="99e7130db5f0dc19a47f7b2eb70bae5e"/></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="7043a11cd07cf89fc537fce2635b591c"/></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>