Thread: Wishlist

Page 8 of 38 FirstFirst ... 67891018 ... LastLast
Results 71 to 80 of 378
  1. #71
    Join Date
    Dec 2005
    Location
    NY
    Posts
    188
    Plugin Contributions
    0

    Default Re: Wishlist

    Coding isn't my thing, but if you look at JenRed's post above, it could give you some ideas.

    The wishlist doc also goes into create a wishlist link. If you look at my site in a product screen, I have a link right under the price, and one in the add to cart box below. I implemented JenRed's code in both and both will show "Add to Wish List" when logged in (very slick). If you do not log in, it will show as you are probably seeing it on my site, asking you to log in to add to the wish list.

    I think there are also some posts dealing with adding a button, and I think in the wishlist doc.

    Not sure why it is not adding anything...

  2. #72
    Join Date
    Jan 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Wishlist

    Thanks for your help, ive managed to get it running with 1 or 2 small problems, i wont double post so here my problems:

    http://www.zen-cart.com/forum/showth...406#post330406


    Thanks again for your help

  3. #73

    Default Re: Wishlist

    Hello!

    I have a problem, when i add produkts to my wish list, the images when I go to my wishlist become so big. biger than the site. how can I make so the wish list shows tumbnails insted for the big image?

    I have a example here:

    http://www.trendhouse.no/wish/wish.jpg

    if you see the image is to big for the site!

    thansk for help:)

  4. #74
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: Wishlist

    Kenobi!

    DO you have IH2?

    Check this Thread: http://www.zen-cart.com/forum/showthread.php?t=38564

    Oh and I made some progress on this: having the wishlist mod box/link not display when item is out of stock:

    maybe if I add something like this:

    PHP Code:
    if ($_SESSION['cart']->count_contents() <= 0) { 
    to this:

    PHP Code:
    $display false;
    if ( isset(
    $_GET['products_id']) && zen_products_id_valid($_GET['products_id']) ) {
        if ( !
    preg_match('/^un_wishlist/',$_GET['main_page']) ) { 
    But am unsure how to discribe in php such a statement in ZC php:

    ????? ['un_wislist]->quantity() <= 0) { ???????

    Has anybody done this before?

    Quote Originally Posted by dharma View Post
    I am using JenRed's code (thank you!) from above (no sidebox) is there some sort of "if" statement that can be added in order for "add to wishlist" to not display if out of stock? (I must delete out of stock items after a week, so they disappear off wishlist too)

    PHP Code:
    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
      
    // do nothing
    } else {
    ?>
                <?php
        $display_qty 
    = (($flag_show_product_info_in_cart_qty == and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' PRODUCTS_ORDER_QTY_TEXT_IN_CART $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' '');
                if (
    $products_qty_box_status == or $products_quantity_order_max== 1) {
                  
    // hide the quantity box and default to 1
                  
    $the_button '<input type="hidden" name="cart_quantity" value="1" />' zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CARTBUTTON_IN_CART_ALT);
                } else {
                  
    // show the quantity box
        
    $the_button PRODUCTS_ORDER_QTY_TEXT '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CARTBUTTON_IN_CART_ALT);
                }
        
    $display_button zen_get_buy_now_button($_GET['products_id'], $the_button);
      
    ?>
      <?php if ($display_qty != '' or $display_button != '') { ?>
        <div id="cartAdd">
        <?php
          
    echo $display_qty;
          echo 
    $display_button;
                
    ?>

    <br clear=all><br><center>
    <?php 
    // (un): start wishlist link
    if ( $_SESSION['customer_id'] ) {
    echo 
    '<a href="' zen_href_link(UN_FILENAME_WISHLISTzen_get_all_get_params(array('action''products_id')) . 'products_id='.(int)$_GET['products_id'].'&action=un_add_wishlist') . '">' UN_TEXT_ADD_WISHLIST '</a>'
    } else {

    $_SESSION['navigation']->set_snapshot();
    echo 
    'please <a href=http://WWW.YOURSITE.COM/index.php?main_page=login>log in</a><br />to add this to<br />your Wish List'
    }
    // (un): end wishlist link
    ?>
    </center>

     </div>
      <?php // display qty and button ?>
    <?php 
    // CUSTOMERS_APPROVAL == 3 ?>
    <!--eof Add to Cart Box-->
    ps. Thank You tcustomgolf for the button nav code!
    Last edited by dharma; 17 Feb 2007 at 10:19 PM. Reason: Too Much Coffee

  5. #75
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: Wishlist

    Whoops! the code would go in JenRed's contribution:

    PHP Code:

    // (un): start wishlist link
    if ( $_SESSION['customer_id'] ) {
    echo 
    '<a href="' zen_href_link(UN_FILENAME_WISHLISTzen_get_all_get_params(array('action''products_id')) . 'products_id='.(int)$_GET['products_id'].'&action=un_add_wishlist') . '">' UN_TEXT_ADD_WISHLIST '</a>'
    } else {

    $_SESSION['navigation']->set_snapshot();
    echo 
    'please <a href=http://WWW.YOURSITE.COM/index.php?main_page=login>log in</a><br />to add this to<br />your Wish List'
    }
    // (un): end wishlist link 

  6. #76
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: Wishlist

    This is an IF statement added to JenRed's code that will make the wishlist mod link only appear when the product is IN of stock....
    PHP Code:
    <?php
    // (un): start wishlist link
     
    if (zen_get_products_stock($_GET['products_id']) != 0)  {
    if ( 
    $_SESSION['customer_id'] ) {
    echo 
    '<a href="' zen_href_link(UN_FILENAME_WISHLIST,
    zen_get_all_get_params(array('action''products_id')) .
    'products_id='.(int)$_GET['products_id'].'&action=un_add_wishlist') .
    '">' UN_TEXT_ADD_WISHLIST '</a>';
    } else {

    $_SESSION['navigation']->set_snapshot();
    echo 
    'please <a
    href=https://YOUR_SITE/index.php?main_page=login>log
    in</a><br />to add this to<br />your Wish List'
    ;
    }
    // (un): end wishlist link
    }
    ?>

  7. #77
    Join Date
    Oct 2006
    Posts
    42
    Plugin Contributions
    0

    Default Re: Wishlist

    Anyone else have this problem?? I have google analytics installed, and when I go and add an item to the wish list. I get these errors on the bottom of the page..

    Warning: main(includes/templates/template_default/un_wishlist/google_analytics.php) [function.main]: failed to open stream: No such file or directory in /homepages/11/d93880114/htdocs/includes/templates/template_default/common/tpl_main_page.php on line 180

    Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/un_wishlist/google_analytics.php' (include_path='.:/usr/local/lib/php') in /homepages/11/d93880114/htdocs/includes/templates/template_default/common/tpl_main_page.php on line 180

  8. #78
    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 ?

  9. #79
    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.

  10. #80
    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.

 

 
Page 8 of 38 FirstFirst ... 67891018 ... 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