Thread: Wishlist

Page 1 of 3 123 LastLast
Results 1 to 10 of 378

Hybrid View

  1. #1
    vaclav Guest

    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
    626
    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
    Mar 2007
    Location
    Cheshire
    Posts
    81
    Plugin Contributions
    0

    Default Re: Wishlist

    I could do with a little help on this one, im new to zen cart and only created my first php file today, ive read this whole thread but am really stuck.

    Ive managed to create the tables, copy the files over etc etc. The wishlist side box comes up on my shop but when i click to add a product i get a blank page,
    with the following URL domain/shop/index.php?main_page=un_wishlist&action=un_add_wishlist&products_id=25
    any ideas ?

  8. #8
    Join Date
    Apr 2005
    Location
    Spokane, Washington
    Posts
    372
    Plugin Contributions
    0

    Default Re: Wishlist

    I just installed wishlist into my 1.2.6 ZC but after adding an item to the wishlist it is still empty.

    I've seen the same problem in previous posts but no answer.

    Any suggestions?


    jacque
    http://www.freshabundance.com

    Just knowledgeable enough to be dangerous.

  9. #9
    Join Date
    Apr 2005
    Location
    Spokane, Washington
    Posts
    372
    Plugin Contributions
    0

    Default Re: Wishlist

    Found the issue, when copying and pasting the code from the read-me into application_top it palced some "o"'s infront of a few words. Did a search and replace and now it works fine.

    Just knowledgeable enough to be dangerous.

  10. #10
    Join Date
    Feb 2007
    Posts
    39
    Plugin Contributions
    0

    Default Re: Wishlist

    Gday guys...

    I have been searching for this mod all around the place and I end up really confused. I know that the mod was programmed for 1.2.7 and earlier and has no support anymore. But as always, geniune people on this forum somehow make it work for 1.3.7.

    My questions are:

    1.) WishList: Does this mod allow you to add/remove wishlists ONLY when you are logged in or also see other peoples wishlists when you are not login? (as in amazon.com does)
    1.) Where can I get the original mod? (or an updated fitted to 1.3.7 version?)
    2.) I dont know at all what (all) to change to the original mod (with all the bugfixes Ive been scrolling through) - is there somebody capable out there to shorten all the numerous threads to the essentials? Really kind! (concnerning the fitting to 1.3.7)

    Any help is needed and greatly appreciated!

 

 
Page 1 of 3 123 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