addwish - Version 0.0.3

Version Notes

We've added the ability to remove Magento's default wish list, but keep "add to wish list button" which can be set to open addwish instead of the built-in wishlist:
We have also made some updates so the price is now being correctly displayed.

Download this release

Release Info

Developer Magento Core Team
Extension addwish
Version 0.0.3
Comparing to
See all releases


Code changes from version 0.0.2 to 0.0.3

app/code/local/Addwish/Addwish/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Addwish_Addwish>
5
- <version>0.0.2</version>
6
  </Addwish_Addwish>
7
  </modules>
8
  <frontend>
@@ -51,14 +51,12 @@
51
  </addwish>
52
  </helpers>
53
  </global>
54
- <!--<default>
55
  <addwish>
56
  <general>
57
- <enabled>1</enabled>
58
- <include_jquery>1</include_jquery>
59
- <include_waypoints>1</include_waypoints>
60
- <version>1.1.1</version>
61
  </general>
62
  </addwish>
63
- </default>-->
64
  </config>
2
  <config>
3
  <modules>
4
  <Addwish_Addwish>
5
+ <version>0.0.3</version>
6
  </Addwish_Addwish>
7
  </modules>
8
  <frontend>
51
  </addwish>
52
  </helpers>
53
  </global>
54
+ <default>
55
  <addwish>
56
  <general>
57
+ <!--<enabled>1</enabled>-->
58
+ <deactivate_standard_wishlist>1</deactivate_standard_wishlist>
 
 
59
  </general>
60
  </addwish>
61
+ </default>
62
  </config>
app/code/local/Addwish/Addwish/etc/system.xml CHANGED
@@ -45,6 +45,15 @@
45
  <show_in_website>1</show_in_website>
46
  <show_in_store>1</show_in_store>
47
  </id>
 
 
 
 
 
 
 
 
 
48
  </fields>
49
  </general>
50
  </groups>
45
  <show_in_website>1</show_in_website>
46
  <show_in_store>1</show_in_store>
47
  </id>
48
+ <deactivate_standard_wishlist translate="label">
49
+ <label>Deactivate Standard Wishlist</label>
50
+ <frontend_type>select</frontend_type>
51
+ <source_model>adminhtml/system_config_source_yesno</source_model>
52
+ <sort_order>30</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>1</show_in_website>
55
+ <show_in_store>1</show_in_store>
56
+ </deactivate_standard_wishlist>
57
  </fields>
58
  </general>
59
  </groups>
app/design/frontend/base/default/layout/addwish.xml CHANGED
@@ -2,6 +2,9 @@
2
  <layout version="0.1.0">
3
  <default>
4
  <block type="addwish/toggle"></block>
 
 
 
5
  </default>
6
  <catalog_product_view>
7
  <reference name="head">
2
  <layout version="0.1.0">
3
  <default>
4
  <block type="addwish/toggle"></block>
5
+ <reference name="top.links">
6
+ <action method="removeLinkBlock" ifconfig="addwish/general/deactivate_standard_wishlist"><blockName>wishlist_link</blockName></action>
7
+ </reference>
8
  </default>
9
  <catalog_product_view>
10
  <reference name="head">
app/design/frontend/base/default/template/addwish/catalog/product/view/addto.phtml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-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 design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php $_product = $this->getProduct(); ?>
29
+ <?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
30
+
31
+ <ul class="add-to-links">
32
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
33
+ <li><a href="#" onclick="ADDWISH_PARTNER_NS.link_click()" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
34
+ <?php endif; ?>
35
+ <?php
36
+ $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
37
+ ?>
38
+ <?php if($_compareUrl) : ?>
39
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
40
+ <?php endif; ?>
41
+ </ul>
app/design/frontend/base/default/template/addwish/js.phtml CHANGED
@@ -8,5 +8,18 @@
8
  'addwish.com/scripts/company/awAddGift.js#<?php echo $addwishId ?>';
9
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gms, s);
10
  })();
 
 
 
 
 
 
 
 
 
 
 
 
11
  //]]>
12
  </script>
 
8
  'addwish.com/scripts/company/awAddGift.js#<?php echo $addwishId ?>';
9
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gms, s);
10
  })();
11
+
12
+ <?php if (Mage::getStoreConfigFlag('addwish/general/deactivate_standard_wishlist')): ?>
13
+ document.observe("dom:loaded", function() {
14
+ $$('.link-wishlist').each(Element.hide);
15
+
16
+ wishlist = $$('.catalog-product-view .add-to-links .link-wishlist')[0];
17
+ wishlist.show();
18
+ wishlist.href = "javascript:void(0)";
19
+ wishlist.setAttribute("onclick", "ADDWISH_PARTNER_NS.link_click()");
20
+ });
21
+
22
+ <?php endif; ?>
23
  //]]>
24
  </script>
25
+
app/design/frontend/base/default/template/addwish/product_meta.phtml CHANGED
@@ -13,8 +13,7 @@
13
  <meta property="og:image" content="<?php echo $this->helper('catalog/image')->init($_product, 'image'); ?>" />
14
  <?php endif; ?>
15
  <meta property="og:title" content="<?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?>" />
16
- <meta property="og:price" content="<?php echo $_product->getFinalPrice() ?>" />
17
- <?php endif; ?>
18
 
19
  <script type="text/javascript">
20
  document.observe("dom:loaded", function() {
@@ -43,4 +42,5 @@ document.observe("dom:loaded", function() {
43
  }
44
  }
45
  });
46
- </script>
 
13
  <meta property="og:image" content="<?php echo $this->helper('catalog/image')->init($_product, 'image'); ?>" />
14
  <?php endif; ?>
15
  <meta property="og:title" content="<?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?>" />
16
+ <meta property="og:price" content="<?php echo number_format($_product->getFinalPrice(), 2) ?>" />
 
17
 
18
  <script type="text/javascript">
19
  document.observe("dom:loaded", function() {
42
  }
43
  }
44
  });
45
+ </script>
46
+ <?php endif; ?>
package.xml CHANGED
@@ -1,18 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>addwish</name>
4
- <version>0.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Free wish list functionality on your web shop plus promotion of your products on the addwish.com site.</summary>
10
  <description>Addwish is a wish list that lets users share the products they want with the people who want to buy them. But unlike other wish lists, with addwish your products also appear as inspiration in searches for similar products on addwish.com.</description>
11
- <notes>minor bug fixes</notes>
 
12
  <authors><author><name>addwish</name><user>auto-converted</user><email>sales@addwish.com</email></author></authors>
13
- <date>2013-10-07</date>
14
- <time>18:27:41</time>
15
- <contents><target name="magelocal"><dir name="Addwish"><dir name="Addwish"><dir name="Block"><file name="Toggle.php" hash="319a199b5fdea2ac85662e4b36e7cf57"/></dir><dir name="Helper"><file name="Data.php" hash="3b59bdb805d9736d854906b15b28269b"/></dir><dir name="etc"><file name="config.xml" hash="a35f10130300327cd6e5abef4e35c231"/><file name="system.xml" hash="44a585d05ce2715eba8aedc4b76cc3f2"/></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Addwish_Addwish.xml" hash="e48317efb40c5cb1bd2b2c76f7ad3c84"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="addwish.xml" hash="355a937614a77cd7f10f1e5df1ab0f6d"/></dir><dir name="template"><dir name="addwish"><file name="js.phtml" hash="270fedf45e9b16f4e40c826e15976f5d"/><file name="product_meta.phtml" hash="4051463221d7ccb76edc2b6afa67e147"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>addwish</name>
4
+ <version>0.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Free wish list functionality on your web shop plus promotion of your products on the addwish.com site.</summary>
10
  <description>Addwish is a wish list that lets users share the products they want with the people who want to buy them. But unlike other wish lists, with addwish your products also appear as inspiration in searches for similar products on addwish.com.</description>
11
+ <notes>We've added the ability to remove Magento's default wish list, but keep "add to wish list button" which can be set to open addwish instead of the built-in wishlist:&#xD;
12
+ We have also made some updates so the price is now being correctly displayed.</notes>
13
  <authors><author><name>addwish</name><user>auto-converted</user><email>sales@addwish.com</email></author></authors>
14
+ <date>2013-11-28</date>
15
+ <time>14:17:24</time>
16
+ <contents><target name="magelocal"><dir name="Addwish"><dir name="Addwish"><dir name="Block"><file name="Toggle.php" hash="319a199b5fdea2ac85662e4b36e7cf57"/></dir><dir name="Helper"><file name="Data.php" hash="3b59bdb805d9736d854906b15b28269b"/></dir><dir name="etc"><file name="config.xml" hash="6f27458c65ed9b43b1e84949893de6d5"/><file name="system.xml" hash="876588894b57c7d91ec72457fcd93a06"/></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Addwish_Addwish.xml" hash="e48317efb40c5cb1bd2b2c76f7ad3c84"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="addwish.xml" hash="03e84b1cf01ef280901e41c9ead76c24"/></dir><dir name="template"><dir name="addwish"><dir name="catalog"><dir name="product"><dir name="view"><file name="addto.phtml" hash="198c269e765335e7be8205f2f7da95ae"/></dir></dir></dir><file name="js.phtml" hash="1cdedb760736b7be4ef5a9cd05b0b8ba"/><file name="product_meta.phtml" hash="cf688bd4168b6f94316ede1f8483cc7e"/></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies/>
19
  </package>