Netgo_Favouritelist - Version 1.0.1

Version Notes

Second Preview Release

Download this release

Release Info

Developer NetGo
Extension Netgo_Favouritelist
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

User_Manual.pdf DELETED
Binary file
app/code/community/Netgo/Favouritelist/Block/Index.php CHANGED
@@ -1,16 +1,4 @@
1
- <?php
2
- /***************************************
3
- *** My Favourite List ***
4
- ***************************************
5
- *
6
- * @copyright Copyright (c) 2015
7
- * @company NetAttingo Technologies
8
- * @package Netgo_Favouritelist
9
- * @author NetGo
10
- * @dev netattingomails@gmail.com
11
- *
12
- */
13
-
14
  class Netgo_Favouritelist_Block_Index extends Mage_Core_Block_Template{
15
 
16
 
1
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
2
  class Netgo_Favouritelist_Block_Index extends Mage_Core_Block_Template{
3
 
4
 
app/code/community/Netgo/Favouritelist/Block/Links.php CHANGED
@@ -1,15 +1,5 @@
1
  <?php
2
- /***************************************
3
- *** My Favourite List ***
4
- ***************************************
5
- *
6
- * @copyright Copyright (c) 2015
7
- * @company NetAttingo Technologies
8
- * @package Netgo_Favouritelist
9
- * @author NetGo
10
- * @dev netattingomails@gmail.com
11
- *
12
- */
13
  class Netgo_Favouritelist_Block_Links extends Mage_Core_Block_Template
14
  {
15
 
1
  <?php
2
+
 
 
 
 
 
 
 
 
 
 
3
  class Netgo_Favouritelist_Block_Links extends Mage_Core_Block_Template
4
  {
5
 
app/code/community/Netgo/Favouritelist/Helper/Data.php CHANGED
@@ -1,16 +1,4 @@
1
  <?php
2
- /***************************************
3
- *** My Favourite List ***
4
- ***************************************
5
- *
6
- * @copyright Copyright (c) 2015
7
- * @company NetAttingo Technologies
8
- * @package Netgo_Favouritelist
9
- * @author NetGo
10
- * @dev netattingomails@gmail.com
11
- *
12
- */
13
-
14
  class Netgo_Favouritelist_Helper_Data extends Mage_Core_Helper_Abstract
15
  {
16
 
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
2
  class Netgo_Favouritelist_Helper_Data extends Mage_Core_Helper_Abstract
3
  {
4
 
app/code/community/Netgo/Favouritelist/Model/Favouritelist.php CHANGED
@@ -1,15 +1,5 @@
1
  <?php
2
- /***************************************
3
- *** My Favourite List ***
4
- ***************************************
5
- *
6
- * @copyright Copyright (c) 2015
7
- * @company NetAttingo Technologies
8
- * @package Netgo_Favouritelist
9
- * @author NetGo
10
- * @dev netattingomails@gmail.com
11
- *
12
- */
13
  class Netgo_Favouritelist_Model_Favouritelist extends Mage_Core_Model_Abstract
14
  {
15
  protected function _construct(){
1
  <?php
2
+
 
 
 
 
 
 
 
 
 
 
3
  class Netgo_Favouritelist_Model_Favouritelist extends Mage_Core_Model_Abstract
4
  {
5
  protected function _construct(){
app/code/community/Netgo/Favouritelist/Model/Mysql4/Favouritelist.php CHANGED
@@ -1,16 +1,4 @@
1
  <?php
2
- /***************************************
3
- *** My Favourite List ***
4
- ***************************************
5
- *
6
- * @copyright Copyright (c) 2015
7
- * @company NetAttingo Technologies
8
- * @package Netgo_Favouritelist
9
- * @author NetGo
10
- * @dev netattingomails@gmail.com
11
- *
12
- */
13
-
14
  class Netgo_Favouritelist_Model_Mysql4_Favouritelist extends Mage_Core_Model_Mysql4_Abstract
15
  {
16
  protected function _construct()
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
2
  class Netgo_Favouritelist_Model_Mysql4_Favouritelist extends Mage_Core_Model_Mysql4_Abstract
3
  {
4
  protected function _construct()
app/code/community/Netgo/Favouritelist/Model/Mysql4/Favouritelist/Collection.php CHANGED
@@ -1,16 +1,4 @@
1
  <?php
2
- /***************************************
3
- *** My Favourite List ***
4
- ***************************************
5
- *
6
- * @copyright Copyright (c) 2015
7
- * @company NetAttingo Technologies
8
- * @package Netgo_Favouritelist
9
- * @author NetGo
10
- * @dev netattingomails@gmail.com
11
- *
12
- */
13
-
14
  class Netgo_Favouritelist_Model_Mysql4_Favouritelist_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
15
  {
16
 
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
2
  class Netgo_Favouritelist_Model_Mysql4_Favouritelist_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
  {
4
 
app/code/community/Netgo/Favouritelist/controllers/IndexController.php CHANGED
@@ -1,15 +1,4 @@
1
  <?php
2
- /***************************************
3
- *** My Favourite List ***
4
- ***************************************
5
- *
6
- * @copyright Copyright (c) 2015
7
- * @company NetAttingo Technologies
8
- * @package Netgo_Favouritelist
9
- * @author NetGo
10
- * @dev netattingomails@gmail.com
11
- *
12
- */
13
  class Netgo_Favouritelist_IndexController extends Mage_Core_Controller_Front_Action{
14
  public function IndexAction() {
15
 
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
2
  class Netgo_Favouritelist_IndexController extends Mage_Core_Controller_Front_Action{
3
  public function IndexAction() {
4
 
app/code/community/Netgo/Favouritelist/etc/adminhtml.xml CHANGED
@@ -1,17 +1,4 @@
1
  <?xml version="1.0"?>
2
- <!--
3
- /***************************************
4
- *** My Favourite List ***
5
- ***************************************
6
- *
7
- * @copyright Copyright (c) 2015
8
- * @company NetAttingo Technologies
9
- * @package Netgo_Favouritelist
10
- * @author NetGo
11
- * @dev netattingomails@gmail.com
12
- *
13
- */
14
- -->
15
  <config>
16
  <acl>
17
  <resources>
1
  <?xml version="1.0"?>
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  <config>
3
  <acl>
4
  <resources>
app/code/community/Netgo/Favouritelist/etc/config.xml CHANGED
@@ -1,21 +1,8 @@
1
  <?xml version="1.0"?>
2
- <!--
3
- /***************************************
4
- *** My Favourite List ***
5
- ***************************************
6
- *
7
- * @copyright Copyright (c) 2015
8
- * @company NetAttingo Technologies
9
- * @package Netgo_Favouritelist
10
- * @author NetGo
11
- * @dev netattingomails@gmail.com
12
- *
13
- */
14
- -->
15
  <config>
16
  <modules>
17
  <Netgo_Favouritelist>
18
- <version>0.1.0</version>
19
  </Netgo_Favouritelist>
20
  </modules>
21
  <frontend>
1
  <?xml version="1.0"?>
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  <config>
3
  <modules>
4
  <Netgo_Favouritelist>
5
+ <version>1.0.1</version>
6
  </Netgo_Favouritelist>
7
  </modules>
8
  <frontend>
app/code/community/Netgo/Favouritelist/etc/system.xml CHANGED
@@ -1,21 +1,8 @@
1
  <?xml version="1.0"?>
2
- <!--
3
- /***************************************
4
- *** My Favourite List ***
5
- ***************************************
6
- *
7
- * @copyright Copyright (c) 2015
8
- * @company NetAttingo Technologies
9
- * @package Netgo_Favouritelist
10
- * @author NetGo
11
- * @dev netattingomails@gmail.com
12
- *
13
- */
14
- -->
15
  <config>
16
  <tabs>
17
  <netgofavouritelist translate="label" module="favouritelist">
18
- <label>Netgo Favourite List</label>
19
  <sort_order>0</sort_order>
20
  </netgofavouritelist>
21
  </tabs>
@@ -30,7 +17,7 @@
30
  <show_in_store>1</show_in_store>
31
  <groups>
32
  <favouritelistsetting translate="label">
33
- <label>Settings Favourite List</label>
34
  <frontend_type>text</frontend_type>
35
  <sort_order>0</sort_order>
36
  <show_in_default>1</show_in_default>
1
  <?xml version="1.0"?>
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  <config>
3
  <tabs>
4
  <netgofavouritelist translate="label" module="favouritelist">
5
+ <label>Netgo</label>
6
  <sort_order>0</sort_order>
7
  </netgofavouritelist>
8
  </tabs>
17
  <show_in_store>1</show_in_store>
18
  <groups>
19
  <favouritelistsetting translate="label">
20
+ <label>Settings</label>
21
  <frontend_type>text</frontend_type>
22
  <sort_order>0</sort_order>
23
  <show_in_default>1</show_in_default>
app/code/community/Netgo/Favouritelist/sql/favouritelist_setup/{mysql4-install-0.1.0.php → mysql4-install-1.0.1.php} RENAMED
@@ -1,16 +1,4 @@
1
  <?php
2
- /***************************************
3
- *** My Favourite List ***
4
- ***************************************
5
- *
6
- * @copyright Copyright (c) 2015
7
- * @company NetAttingo Technologies
8
- * @package Netgo_Favouritelist
9
- * @author NetGo
10
- * @dev netattingomails@gmail.com
11
- *
12
- */
13
-
14
  $installer = $this;
15
  $installer->startSetup();
16
  $sql=<<<SQLTEXT
@@ -19,8 +7,5 @@ create table favouritelist(favouritelist_id int not null auto_increment, custome
19
  SQLTEXT;
20
 
21
  $installer->run($sql);
22
- //demo
23
- //Mage::getModel('core/url_rewrite')->setId(null);
24
- //demo
25
  $installer->endSetup();
26
 
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
2
  $installer = $this;
3
  $installer->startSetup();
4
  $sql=<<<SQLTEXT
7
  SQLTEXT;
8
 
9
  $installer->run($sql);
 
 
 
10
  $installer->endSetup();
11
 
app/design/frontend/base/default/layout/favouritelist.xml CHANGED
@@ -1,17 +1,4 @@
1
  <?xml version="1.0"?>
2
- <!--
3
- /***************************************
4
- *** My Favourite List ***
5
- ***************************************
6
- *
7
- * @copyright Copyright (c) 2015
8
- * @company NetAttingo Technologies
9
- * @package Netgo_Favouritelist
10
- * @author NetGo
11
- * @dev netattingomails@gmail.com
12
- *
13
- */
14
- -->
15
  <layout version="0.1.0">
16
  <default>
17
  <reference name="head" >
1
  <?xml version="1.0"?>
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  <layout version="0.1.0">
3
  <default>
4
  <reference name="head" >
app/design/frontend/base/default/template/favouritelist/addto.phtml CHANGED
@@ -1,14 +1,27 @@
1
  <?php
2
- /***************************************
3
- *** My Favourite List ***
4
- ***************************************
5
  *
6
- * @copyright Copyright (c) 2015
7
- * @company NetAttingo Technologies
8
- * @package Netgo_Favouritelist
9
- * @author NetGo
10
- * @dev netattingomails@gmail.com
11
  *
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  */
13
  ?>
14
 
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@magento.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.magento.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2006-2014 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
  */
26
  ?>
27
 
app/design/frontend/base/default/template/favouritelist/index.phtml CHANGED
@@ -1,17 +1,7 @@
1
  <?php
2
- /***************************************
3
- *** My Favourite List ***
4
- ***************************************
5
- *
6
- * @copyright Copyright (c) 2015
7
- * @company NetAttingo Technologies
8
- * @package Netgo_Favouritelist
9
- * @author NetGo
10
- * @dev netattingomails@gmail.com
11
- *
12
- */
13
-
14
- $favouritelist = $this->getFavouritelist();
15
 
16
  ?>
17
 
1
  <?php
2
+
3
+ $favouritelist = $this->getFavouritelist();
4
+
 
 
 
 
 
 
 
 
 
 
5
 
6
  ?>
7
 
app/etc/modules/Netgo_Favouritelist.xml CHANGED
@@ -1,23 +1,10 @@
1
  <?xml version="1.0"?>
2
- <!--
3
- /***************************************
4
- *** My Favourite List ***
5
- ***************************************
6
- *
7
- * @copyright Copyright (c) 2015
8
- * @company NetAttingo Technologies
9
- * @package Netgo_Favouritelist
10
- * @author NetGo
11
- * @dev netattingomails@gmail.com
12
- *
13
- */
14
- -->
15
  <config>
16
  <modules>
17
  <Netgo_Favouritelist>
18
  <active>true</active>
19
  <codePool>community</codePool>
20
- <version>1.0.0</version>
21
  </Netgo_Favouritelist>
22
  </modules>
23
  </config>
1
  <?xml version="1.0"?>
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  <config>
3
  <modules>
4
  <Netgo_Favouritelist>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
+ <version>0.1.0</version>
8
  </Netgo_Favouritelist>
9
  </modules>
10
  </config>
package.xml CHANGED
@@ -1,25 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Netgo_Favouritelist</name>
4
- <version>1.0.0</version>
5
- <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension helps customers to add the favourite product in their account dashboard.</summary>
10
- <description>This extension is developed with the purpose of adding any product to the account of favorites. Any type of product can be added to favorites. For adding any product, you just need to go to any product and click on ADD TO FAVORITES which will add the product to FAVORITE LIST. You can checkout that product. Even if you will checkout the product, then also favorite list account will have that product and you can always buy your favorite products.&#xD;
11
- &#xD;
12
- Features:&#xD;
13
- a. Add products to FAVORITES&#xD;
14
- b. FAVORITE LIST is always maintained even ADD TO CART is done.&#xD;
15
- c. Easy to track your favorite products&#xD;
16
- d. Maintains record of all favorite products. &#xD;
17
- e. Manageable for all types of products in Magento.</description>
18
- <notes>First Preview Release</notes>
19
  <authors><author><name>NetGo</name><user>NetGo</user><email>netattingomails@gmail.com</email></author></authors>
20
- <date>2015-08-18</date>
21
- <time>10:42:32</time>
22
- <contents><target name="magecommunity"><dir name="Netgo"><dir name="Favouritelist"><dir name="Block"><file name="Index.php" hash="7635ee93805906e12c736c56b765cd97"/><file name="Links.php" hash="abe88b15b6cde8df37292a0841460588"/></dir><dir name="Helper"><file name="Data.php" hash="33d0f05538c5fc835784b82de49c1c59"/></dir><dir name="Model"><file name="Favouritelist.php" hash="c5956af05f11506f575f0c41cb480d95"/><dir name="Mysql4"><dir name="Favouritelist"><file name="Collection.php" hash="ebc091ae5a3aa2f73ef0ea386ca7df3b"/></dir><file name="Favouritelist.php" hash="a20748942ec8473ace73283fabc1c71c"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="326b6165fe14d5b7e825285b294cb1ae"/></dir><dir name="etc"><file name="adminhtml.xml" hash="629ff5074262ff9a1bb3472281aaebfa"/><file name="config.xml" hash="e660d5114c485d94febf42055c628afe"/><file name="system.xml" hash="19e2dfd2f79320f5dc70cbc8197e9528"/></dir><dir name="sql"><dir name="favouritelist_setup"><file name="mysql4-install-0.1.0.php" hash="d44f480bb1bbf35e7d887138edaf318d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="favouritelist.xml" hash="631f06841bcb3e60ceb13498fb34a3fd"/></dir><dir name="template"><dir name="favouritelist"><file name="addto.phtml" hash="d83d0b92ed438f215e25467c52f4fdaf"/><file name="index.phtml" hash="b325e16cbb92767708d7f52cceda558d"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="."><file name="User_Manual.pdf" hash="89b2127a24d5a663157dd13a52b56f1a"/><file name="readme.txt" hash="404543a25e296a10c04438b49b943d51"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="favouritelist"><file name="favouritelist.css" hash="ebf268189c74b2dfb9b5c8c134d222cb"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Netgo_Favouritelist.xml" hash="4f6b27876a9d5cdef69da939811c1f63"/></dir></target></contents>
23
  <compatible/>
24
- <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
25
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Netgo_Favouritelist</name>
4
+ <version>1.0.1</version>
5
+ <stability>devel</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension helps customers to add the favourite product in their account dashboard.</summary>
10
+ <description>This extension is developed with the purpose of adding any product to the account of favorites. Any type of product can be added to favorites. For adding any product, you just need to go to any product and click on ADD TO FAVORITES which will add the product to FAVORITE LIST. You can checkout that product. Even if you will checkout the product, then also favorite list account will have that product and you can always buy your favorite products.</description>
11
+ <notes>Second Preview Release</notes>
 
 
 
 
 
 
 
12
  <authors><author><name>NetGo</name><user>NetGo</user><email>netattingomails@gmail.com</email></author></authors>
13
+ <date>2015-12-12</date>
14
+ <time>16:04:42</time>
15
+ <contents><target name="magecommunity"><dir name="Netgo"><dir name="Favouritelist"><dir name="Block"><file name="Index.php" hash="1656573a3ff401082010e06930a18b17"/><file name="Links.php" hash="2b9e8211715947649bbb24c42a1e50b7"/></dir><dir name="Helper"><file name="Data.php" hash="f1025a09bbca5211c9536ee39757b29e"/></dir><dir name="Model"><file name="Favouritelist.php" hash="65b59d47a8dc03684f915e66e01ebbde"/><dir name="Mysql4"><dir name="Favouritelist"><file name="Collection.php" hash="1689752c797cb6a85399b9414d4abe25"/></dir><file name="Favouritelist.php" hash="ac45c48f2aa466491d8718057cadb457"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="2c5560ec4f0b9c70e68fe0e4beb9dd57"/></dir><dir name="etc"><file name="adminhtml.xml" hash="54825ddba055a58a4493c45c16b5e899"/><file name="config.xml" hash="bfb809e9a6b3430dbee0abf1fad359ae"/><file name="system.xml" hash="e158d4f9dd767cf3d8135a37507a76b5"/></dir><dir name="sql"><dir name="favouritelist_setup"><file name="mysql4-install-1.0.1.php" hash="c4e89575a467c8b01485d171432c1f18"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="favouritelist.xml" hash="891959b0ee6957038e43dbe02ed0c2f9"/></dir><dir name="template"><dir name="favouritelist"><file name="addto.phtml" hash="5669bc5070ad2a89aad0eeeeb85f1902"/><file name="index.phtml" hash="7844fd02ff3ce04ea397d26cd2c95195"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="favouritelist"><file name="favouritelist.css" hash="ebf268189c74b2dfb9b5c8c134d222cb"/></dir></dir></dir></dir></target><target name="mage"><dir name="."><file name="readme.txt" hash="e5d4e93270f603d18e59bd3c75da7de2"/></dir></target><target name="mageetc"><dir name="modules"><file name="Netgo_Favouritelist.xml" hash="89d64f9c26d5c0e8f7438756af95d908"/></dir></target></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
readme.txt CHANGED
@@ -1,11 +1,15 @@
1
- /******************************************************************************************
2
- Note: Use this code in list.phtml. If you want to show favourite list link on the list page.
3
- /******************************************************************************************
4
 
5
- <?php if (Mage::helper('favouritelist')->isAllow()) : ?>
6
 
7
- <a title="<?php echo $this->__('Add to FavouriteList') ?>" href="<?php echo Mage::helper('favouritelist')->getUrl($_product) ?>" class="link-favourite">
8
- <?php echo $this->__('Add to Favourite List') ?>
9
- </a>
10
 
 
 
 
 
 
 
 
 
11
  <?php endif; ?>
1
+ /********** Usage in product listing page ***********/
 
 
2
 
3
+ If you want to show the link of Favourite list, add below code in the following path:
4
 
5
+ app/design/frontend/THEME_PACKAGE_NAME/THEME_NAME/template/catalog/product/list.phtml
 
 
6
 
7
+ add below code for both Grid and List section of product listing page.
8
+
9
+
10
+ <?php if (Mage::helper('favouritelist')->isAllow()) : ?>
11
+
12
+ <a href="<?php echo Mage::helper('favouritelist')->getUrl($_product) ?>" class="link-favourite">
13
+ <?php echo $this->__('Add to Favourite List') ?>
14
+ </a>
15
  <?php endif; ?>