WishlistPlus - Version 0.1.1

Version Notes

Support for Magento 1.5, 1.6, 1.7, 1.8 added

Download this release

Release Info

Developer Arvind Bhardwaj
Extension WishlistPlus
Version 0.1.1
Comparing to
See all releases


Code changes from version 1.0.2.3 to 0.1.1

app/code/local/Customwishlist/Customwishlist/controllers/IndexController.php CHANGED
@@ -20,8 +20,8 @@ class Customwishlist_Customwishlist_IndexController extends Mage_Core_Controller
20
$ids = Mage::helper('core')->htmlEscape($this->getRequest()->getParam('ids'));
21
$qtys = Mage::helper('core')->htmlEscape($this->getRequest()->getParam('qtys'));
22
23
- $ids_arr = split(',', $ids);
24
- $qtys_arr = split(',', $qtys);
25
26
$i=0;
27
foreach($ids_arr as $id)
@@ -59,10 +59,10 @@ class Customwishlist_Customwishlist_IndexController extends Mage_Core_Controller
59
//$item->delete();
60
}
61
}
62
- Mage::getSingleton('checkout/cart')->save();
63
}
64
$i++;
65
}
66
67
if (count($notSalableNames) > 0) {
68
Mage::getSingleton('checkout/session')
20
$ids = Mage::helper('core')->htmlEscape($this->getRequest()->getParam('ids'));
21
$qtys = Mage::helper('core')->htmlEscape($this->getRequest()->getParam('qtys'));
22
23
+ $ids_arr = explode(',', $ids);
24
+ $qtys_arr = explode(',', $qtys);
25
26
$i=0;
27
foreach($ids_arr as $id)
59
//$item->delete();
60
}
61
}
62
}
63
$i++;
64
}
65
+ Mage::getSingleton('checkout/cart')->save();
66
67
if (count($notSalableNames) > 0) {
68
Mage::getSingleton('checkout/session')
app/code/local/Customwishlist/Customwishlist/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
<config>
3
<modules>
4
<Customwishlist_Customwishlist>
5
- <version>0.1.0</version>
6
</Customwishlist_Customwishlist>
7
</modules>
8
<frontend>
2
<config>
3
<modules>
4
<Customwishlist_Customwishlist>
5
+ <version>0.1.1</version>
6
</Customwishlist_Customwishlist>
7
</modules>
8
<frontend>
app/code/local/Mage/Wishlist/Block/Customer/Wishlist.php DELETED
@@ -1,74 +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_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
@@ -161,7 +161,7 @@ $searchq = Mage::app()->getRequest()->getParam('wishq');
161
</thead>
162
<tbody>
163
<?php foreach ($this->getWishlistItems() as $item): ?>
164
- <?php
165
$color = "";
166
if(in_array($item->getProductId(),$cartItems))
167
{
@@ -170,35 +170,35 @@ $searchq = Mage::app()->getRequest()->getParam('wishq');
170
?>
171
<tr style="background-color: <?php echo $color ?> !important ;" >
172
<td style="text-align: center; !important ">
173
- <?php if($item->isSaleable()): ?>
174
- <input type="checkbox" id="<?php echo $item->getId() ?>"><br />
175
<?php endif; ?>
176
<?php
177
- if(in_array($item->getProductId(),$cartItems))
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
?>
185
</td>
186
<td>
187
- <a class="product-image" href="<?php echo $this->getProductUrl($item) ?>" title="<?php echo $this->htmlEscape($item->getName()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($item, 'small_image')->resize(113, 113); ?>" width="113" height="113" alt="<?php echo $this->htmlEscape($item->getName()) ?>" /></a>
188
<h2 class="product-name"><a href="<?php echo $this->getProductUrl($item) ?>"><?php echo $this->htmlEscape($item->getName()) ?></a></h2>
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">
196
</td>
197
<td>
198
<span class="nobr"><?php echo $this->getFormatedDate($item->getAddedAt()) ?></span>
199
</td>
200
<!--<td class="a-center">
201
- <?php if ($item->isSaleable()): ?>
202
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" onclick="setLocation('<?php echo $this->getItemAddToCartUrl($item) ?>')" class="button btn-cart"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
203
<?php else: ?>
204
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
161
</thead>
162
<tbody>
163
<?php foreach ($this->getWishlistItems() as $item): ?>
164
+ <?php
165
$color = "";
166
if(in_array($item->getProductId(),$cartItems))
167
{
170
?>
171
<tr style="background-color: <?php echo $color ?> !important ;" >
172
<td style="text-align: center; !important ">
173
+ <?php if($item->getProduct()->isSaleable()): ?>
174
+ <input type="checkbox" id="<?php echo $item->getProduct()->getId() ?>"><br />
175
<?php endif; ?>
176
<?php
177
+ if(in_array($item->getProduct()->getId(),$cartItems))
178
{
179
?>
180
<center><span style="color:green; font-weight:bold;">In Cart</span></center>
181
+ <p><strong><?php echo $cartqtys[$item->getProduct()->getId()][0] ?></strong> x <?php echo Mage::helper('core')->currency($item->getProduct()->getFinalPrice()) ?></p>
182
<?php
183
}
184
?>
185
</td>
186
<td>
187
+ <a class="product-image" href="<?php echo $this->getProductUrl($item) ?>" title="<?php echo $this->htmlEscape($item->getName()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($item->getProduct(), 'small_image')->resize(113, 113); ?>" width="113" height="113" alt="<?php echo $this->htmlEscape($item->getName()) ?>" /></a>
188
<h2 class="product-name"><a href="<?php echo $this->getProductUrl($item) ?>"><?php echo $this->htmlEscape($item->getName()) ?></a></h2>
189
+ <?php echo $this->getPriceHtml($item->getProduct()) ?>
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->getProduct()->getId(); ?>" class="input-text qty" name="qty">
196
</td>
197
<td>
198
<span class="nobr"><?php echo $this->getFormatedDate($item->getAddedAt()) ?></span>
199
</td>
200
<!--<td class="a-center">
201
+ <?php if ($item->getProduct()->isSaleable()): ?>
202
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" onclick="setLocation('<?php echo $this->getItemAddToCartUrl($item) ?>')" class="button btn-cart"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
203
<?php else: ?>
204
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
package.xml CHANGED
@@ -1,18 +1,22 @@
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>
1
<?xml version="1.0"?>
2
<package>
3
<name>WishlistPlus</name>
4
+ <version>0.1.1</version>
5
<stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">GNU General Public License</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>Customwishlist is the extension that extends default Magento wishlist feature. Here is the list of features that are provided by Customwishlist extension:&#xD;
11
+ &lt;br&gt;&lt;br&gt;&#xD;
12
+ 1. Pagination&lt;br&gt;&#xD;
13
+ 2. Wishlist Search&#xD;
14
+ 3. Selective Add to Cart</description>
15
+ <notes>Support for Magento 1.5, 1.6, 1.7, 1.8 added</notes>
16
+ <authors><author><name>Arvind</name><user>arvind07</user><email>bhardwajsonheight@gmail.com</email></author></authors>
17
+ <date>2014-05-20</date>
18
+ <time>13:46:10</time>
19
+ <contents><target name="magelocal"><dir name="Customwishlist"><dir name="Customwishlist"><dir name="controllers"><file name="IndexController.php" hash="572a78536935cf7e8f207657a8fdd5fb"/></dir><dir name="etc"><file name="config.xml" hash="477de2a5f34a3cc9c0cdc361d6041cea"/></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="08ef7235e6ba3b43cfcf55b63d97d0bf"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Customwishlist_Customwishlist.xml" hash="76f03ae1f3d1904758bd80b113dfe207"/></dir></target></contents>
20
<compatible/>
21
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
</package>