Thread: Wishlist

Page 1 of 37 12311 ... LastLast
Results 1 to 10 of 370
  1. #1
    Join Date
    May 2006
    Posts
    1
    Plugin Contributions
    0

    Default Wishlist

    I'm looking for wishlist module. Please, post a link if you have it.

  2. #2
    Join Date
    Apr 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Wishlist

    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:

    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
    }
    ?>
    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.

  3. #3
    Join Date
    Mar 2006
    Posts
    199
    Plugin Contributions
    0

    Default Re: Wishlist

    does it matter what the new php file is named? Other files pointing to a specific one?
    Zen Cart: Diva Knitting

  4. #4
    Join Date
    Apr 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Wishlist

    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

  5. #5
    Join Date
    Mar 2006
    Posts
    199
    Plugin Contributions
    0

    Default Re: Wishlist

    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?
    Zen Cart: Diva Knitting

  6. #6
    Join Date
    May 2005
    Location
    England
    Posts
    563
    Plugin Contributions
    0

    Default Re: Wishlist

    Hello there,

    I was just interersted to see if anyone had any luck with making this work for 1.3?

    Regards,

    Russ

  7. #7
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,412
    Plugin Contributions
    1

    Default Re: Wishlist

    Quote Originally Posted by HeathenMagic
    Hello there,

    I was just interersted to see if anyone had any luck with making this work for 1.3?

    Regards,

    Russ
    Read below. The answer is there.

  8. #8
    Join Date
    May 2006
    Posts
    43
    Plugin Contributions
    0

    Default Re: Wishlist

    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

    Andrea

  9. #9
    Join Date
    Mar 2006
    Posts
    199
    Plugin Contributions
    0

    Default Re: Wishlist

    I just changed mine to the same name but it still doesn't work
    Zen Cart: Diva Knitting

  10. #10
    Join Date
    Apr 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Wishlist

    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.

 

 
Page 1 of 37 12311 ... LastLast

Similar Threads

  1. v151 Wishlist
    By Kevin205 in forum General Questions
    Replies: 0
    Last Post: 15 Jan 2013, 01:45 AM
  2. Wishlist
    By simplemedia in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 20 Apr 2012, 08:40 PM
  3. Wishlist 0.9
    By vinnyna in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Nov 2011, 03:52 PM
  4. 1.5.0 wishlist?
    By trickobrien in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 21 Oct 2011, 07:16 PM
  5. Wishlist
    By Dutchman in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 3 Oct 2007, 02:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR