I'm looking for wishlist module. Please, post a link if you have it.
Printable View
I'm looking for wishlist module. Please, post a link if you have it.
Try:
http://www.zen-cart.com/forum/showth...light=wishlist
http://www.unevolution.com/downloads/access.php?id=1000
If you are using v1.3.0, you need to skip steps 2,3 and 4 in the installation manual that is supplied with the wishlist contribution. Instead create a new php file and paste the following php code into it:
Then save the new php file in the /includes/extra_cart_actions/ folder. Continue with steps 5 and 6 in the wishlist contribution installation manual.Code:<?php
/**
* Main shopping Cart actions supported.
*
* The main cart actions supported by the current shoppingCart class.
* This can be added to externally using the extra_cart_actions directory.
*
* @package initSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id:wishlist_cart_actions.php 3066 2006-02-25 22:14:00Z wilt $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
/**
* include the list of extra cart action files (*.php in the extra_cart_actions folder)
*/
switch ($_GET['action']) {
// (un): start mod for Wishlist v0.2
// Add item to wishlist
case 'un_add_wishlist':
if ($_SESSION['customer_id'] && isset($_GET['products_id'])) {
// use wishlist class
require_once(DIR_WS_CLASSES . 'un_wishlist.class.php');
$oWishlist = new un_wishlist($_SESSION['customer_id']);
$oWishlist->addProduct($_GET['products_id']);
}
zen_redirect(zen_href_link(UN_FILENAME_WISHLIST));
break;
// Remove item from wishlist
case 'un_remove_wishlist':
if ($_SESSION['customer_id'] && isset($_GET['products_id'])) {
// use wishlist class
require_once(DIR_WS_CLASSES . 'un_wishlist.class.php');
$oWishlist = new un_wishlist($_SESSION['customer_id']);
$oWishlist->removeProduct($_GET['products_id']);
}
zen_redirect(zen_href_link(UN_FILENAME_WISHLIST));
break;
// Update wishlist
case 'un_update_wishlist':
$cart_updated = false;
for ($i=0; $i<sizeof($_POST['products_id']); $i++) {
// use wishlist class
require_once(DIR_WS_CLASSES . 'un_wishlist.class.php');
$oWishlist = new un_wishlist($_SESSION['customer_id']);
$oWishlist->updateProduct((int)$_POST['products_id'][$i], (int)$_POST['wishlist_quantity'][$i], (int)$_POST['priority'][$i], $_POST['comment'][$i]);
if ( in_array($_POST['products_id'][$i], (is_array($_POST['add_to_cart']) ? $_POST['add_to_cart'] : array())) && $_POST['wishlist_quantity'][$i] != 0 ) {
$cart_updated = true;
$_SESSION['cart']->add_cart($_POST['products_id'][$i], $_SESSION['cart']->get_quantity(zen_get_uprid($_POST['products_id'][$i], ''))+$_POST['wishlist_quantity'][$i], '');
}
if ( in_array($_POST['products_id'][$i], (is_array($_POST['wishlist_delete']) ? $_POST['wishlist_delete'] : array())) or $_POST['wishlist_quantity'][$i] == 0 ) {
$oWishlist->removeProduct((int)$_POST['products_id'][$i]);
}
}
if ( $cart_updated == true ) {
zen_redirect(zen_href_link($goto, zen_get_all_get_params($parameters)));
} else {
zen_redirect(zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params($parameters)));
}
break;
// (un): end mod for Wishlist v0.2
}
?>
does it matter what the new php file is named? Other files pointing to a specific one?
It doesn't matter. The way 1.3.0 is designed: it just iterates through every file in the extra zen cart actions folder. I named my file: wishlist_cart_actions.php
Thanks.
hmm...and it worked right away? I get the sidebox option showing up in admin but nothing in the actual side bar even when it's turned on. No error though either. Any ideas...no other file changes for it to be compatible with 3.0?
Hello there,
I was just interersted to see if anyone had any luck with making this work for 1.3?
Regards,
Russ :thumbsup:
Read below. The answer is there.Quote:
Originally Posted by HeathenMagic
Not this helps you too much, but somehow I got it to work for mine (I'm using the newest Zen). honestly I just followed the instructions with the mod for zen 1.3+. At first it didn't work when I names the mod php file to a name I made up, but when I named it the same as the poster, it worked. So it can be done, I just can't tell you how I did it because I have no clue :unsure:
Andrea
I just changed mine to the same name but it still doesn't work :(
On your front-end, drill down to the detail on a product. The wishlist option only appears if you at the lowest detail page for a product.