WishlistPlus - Version 1.0.2.3

Version Notes

WishlistPlus adds the features of Pagination, search and selective add to cart to your wishlist module.

Download this release

Release Info

Developer Magento Core Team
Extension WishlistPlus
Version 1.0.2.3
Comparing to
See all releases


Code changes from version 1.0.2.2 to 1.0.2.3

app/code/local/Customwishlist/Customwishlist/controllers/IndexController.php CHANGED
@@ -54,7 +54,7 @@ class Customwishlist_Customwishlist_IndexController extends Mage_Core_Controller
54
 
55
  $urls[] = $url;
56
  $messages[] = $e->getMessage();
57
- $wishlistIds[] = $item->getId();
58
  } else {
59
  //$item->delete();
60
  }
54
 
55
  $urls[] = $url;
56
  $messages[] = $e->getMessage();
57
+ $wishlistIds[] = $id;
58
  } else {
59
  //$item->delete();
60
  }
app/code/local/Mage/Wishlist/Block/Customer/Wishlist.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_Wishlist
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
+ /**
29
+ * Wishlist block customer items
30
+ *
31
+ * @category Mage
32
+ * @package Mage_Wishlist
33
+ * @author Magento Core Team <core@magentocommerce.com>
34
+ */
35
+ class Mage_Wishlist_Block_Customer_Wishlist extends Mage_Wishlist_Block_Abstract
36
+ {
37
+ /**
38
+ * Preparing global layout
39
+ *
40
+ * @return Mage_Wishlist_Block_Customer_Wishlist
41
+ */
42
+ protected function _prepareLayout()
43
+ {
44
+ /* parent::_prepareLayout();
45
+ $headBlock = $this->getLayout()->getBlock('head');
46
+ if ($headBlock) {
47
+ $headBlock->setTitle($this->__('My Wishlist'));
48
+ }*/
49
+ parent::_prepareLayout();
50
+ $pager = $this->getLayout()->createBlock('page/html_pager', 'wishlist.customer.pager')
51
+ ->setCollection($this->getWishlist());
52
+ $this->setChild('pager', $pager);
53
+ $this->getWishlist()->load();
54
+ return $this;
55
+ }
56
+
57
+ /**
58
+ * Retrieve Back URL
59
+ *
60
+ * @return string
61
+ */
62
+ public function getBackUrl()
63
+ {
64
+ if ($this->getRefererUrl()) {
65
+ return $this->getRefererUrl();
66
+ }
67
+ return $this->getUrl('customer/account/');
68
+ }
69
+
70
+ public function getPagerHtml()
71
+ {
72
+ return $this->getChildHtml('pager');
73
+ }
74
+ }
app/design/frontend/default/default/template/wishlist/view.phtml CHANGED
@@ -150,7 +150,7 @@ $searchq = Mage::app()->getRequest()->getParam('wishq');
150
  <col width="1" />
151
  <thead>
152
  <tr>
153
- <th style="text-align: center; !important " ><input type="checkbox" name="chck" onclick="doSelectAll(this.checked)" ></th>
154
  <th><?php echo $this->__('Product') ?></th>
155
  <th><?php echo $this->__('Comment') ?></th>
156
  <th><?php echo $this->__('Qty') ?></th>
@@ -178,7 +178,7 @@ $searchq = Mage::app()->getRequest()->getParam('wishq');
178
  {
179
  ?>
180
  <center><span style="color:green; font-weight:bold;">In Cart</span></center>
181
- <p><strong><?php echo $cartqtys[$item->getProductId()][0] ?></strong> x <?php echo Mage::helper('core')->currency($cartprices[$item->getProductId()][0]) ?></p>
182
  <?php
183
  }
184
  ?>
@@ -189,7 +189,7 @@ $searchq = Mage::app()->getRequest()->getParam('wishq');
189
  <?php echo $this->getPriceHtml($item) ?>
190
  </td>
191
  <td>
192
- <textarea name="description[<?php echo $item->getWishlistItemId() ?>]" rows="3" cols="5" onfocus="focusComment(this)" onblur="focusComment(this)" title="<?php echo $this->__('Comment') ?>"><?php echo $this->hasDescription($item) ? $this->getEscapedDescription($item) : $this->helper('wishlist')->defaultCommentString() ?></textarea>
193
  </td>
194
  <td>
195
  <input type="text" value="1" maxlength="12" id="qty_<?php echo $item->getId(); ?>" class="input-text qty" name="qty">
150
  <col width="1" />
151
  <thead>
152
  <tr>
153
+ <th style="text-align: center; !important " >Select All<br /><input type="checkbox" name="chck" onclick="doSelectAll(this.checked)" ></th>
154
  <th><?php echo $this->__('Product') ?></th>
155
  <th><?php echo $this->__('Comment') ?></th>
156
  <th><?php echo $this->__('Qty') ?></th>
178
  {
179
  ?>
180
  <center><span style="color:green; font-weight:bold;">In Cart</span></center>
181
+ <p><strong><?php echo $cartqtys[$item->getProductId()][0] ?></strong> x <?php echo Mage::helper('core')->currency($item->getFinalPrice()) ?></p>
182
  <?php
183
  }
184
  ?>
189
  <?php echo $this->getPriceHtml($item) ?>
190
  </td>
191
  <td>
192
+ <textarea name="description[<?php echo $item->getWishlistItemId() ?>]" rows="2" cols="5" onfocus="focusComment(this)" onblur="focusComment(this)" title="<?php echo $this->__('Comment') ?>"><?php echo $this->hasDescription($item) ? $this->getEscapedDescription($item) : $this->helper('wishlist')->defaultCommentString() ?></textarea>
193
  </td>
194
  <td>
195
  <input type="text" value="1" maxlength="12" id="qty_<?php echo $item->getId(); ?>" class="input-text qty" name="qty">
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>WishlistPlus</name>
4
- <version>1.0.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>WishlistPlus adds the features of Pagination, search and selective add to cart to your wishlst module.</summary>
10
  <description>WishlistPlus adds the features of Pagination, search and selective add to cart to your wishlst module.</description>
11
- <notes>WishlistPlus adds the features of Pagination, search and selective add to cart to your wishlst module.</notes>
12
  <authors><author><name>Arvind Bhardwaj</name><user>auto-converted</user><email>bhardwajsonheight@gmail.com</email></author></authors>
13
- <date>2011-02-12</date>
14
- <time>08:33:27</time>
15
- <contents><target name="magelocal"><dir name="Customwishlist"><dir name="Customwishlist"><dir name="controllers"><file name="IndexController.php" hash="10b92133ffaa20d5dd6d31da009701eb"/></dir><dir name="etc"><file name="config.xml" hash="b8a2e5b2694ec258fd4ca90124e074f5"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="wishlist"><file name="view.phtml" hash="8a2a83127edb746386a1e6a4e2f90fd1"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Customwishlist_Customwishlist.xml" hash="76f03ae1f3d1904758bd80b113dfe207"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>WishlistPlus</name>
4
+ <version>1.0.2.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>WishlistPlus adds the features of Pagination, search and selective add to cart to your wishlst module.</summary>
10
  <description>WishlistPlus adds the features of Pagination, search and selective add to cart to your wishlst module.</description>
11
+ <notes>WishlistPlus adds the features of Pagination, search and selective add to cart to your wishlist module.</notes>
12
  <authors><author><name>Arvind Bhardwaj</name><user>auto-converted</user><email>bhardwajsonheight@gmail.com</email></author></authors>
13
+ <date>2011-02-27</date>
14
+ <time>06:26:31</time>
15
+ <contents><target name="magelocal"><dir name="Customwishlist"><dir name="Customwishlist"><dir name="controllers"><file name="IndexController.php" hash="1d0ad1cc37271302cdf03681332ba839"/></dir><dir name="etc"><file name="config.xml" hash="b8a2e5b2694ec258fd4ca90124e074f5"/></dir></dir></dir><dir name="Mage"><dir name="Wishlist"><dir name="Block"><dir name="Customer"><file name="Wishlist.php" hash="81fba9bf2a0feba560be25585c055917"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="wishlist"><file name="view.phtml" hash="ec4b556905b13abdda6bb940ebcd660d"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Customwishlist_Customwishlist.xml" hash="76f03ae1f3d1904758bd80b113dfe207"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>