Page 4 of 32 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 312
  1. #31
    Join Date
    Feb 2004
    Posts
    61
    Plugin Contributions
    0

    Default Re: WishList v0.4 -- ZenCart 1.3.7 compatible

    Quote Originally Posted by dharma View Post
    I am trying to get the default wishlist to default to "private" instead of public, is there a code tweak to do this?
    file "./includes/classes/un_wishlist.class.php":
    find (line 655):
    Code:
    function createWishlist($name='', $comment='', $default_status=0, $public_status=1)
    change to:
    Code:
    function createWishlist($name='', $comment='', $default_status=0, $public_status=0)
    Quote Originally Posted by dharma View Post
    and a way to block/not display the name of the city that a customer lives in, and name also? when their wishlist is public?
    file "./includes/templates/template_default/un_wishlist_find/tpl_un_wishlist_find_form.php":
    modify lines 53 through 64 as desired.
    eg, to suppress display of user's location, delete:
    Code:
    <?php $location = un_get_citystate($records->fields['entry_city'], $records->fields['entry_state'], 'Unknown'); ?>
    <?php if ( !un_is_empty($location) ) { ?>
    <li>Customer location: <?php echo $location; ?></li>
    <?php } ?>

  2. #32
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: WishList v0.4 -- ZenCart 1.3.7 compatible

    Thank you untitled for your help!

    I was not successful in changing the customers 1st (default) wishlist to "private" instead of public with your code change.

    Is there another tweak for this?
    ------------

    I was successful in editing the tpl_un_wishlist_find_form.php as you suggested to hide the customers info, yet still access the wishlist:

    I am not a programmer but I made some addtional changes...it works, For the benefit of others please correct this if incorrect:

    PHP Code:
    <?php if ( isset($records) && $records->RecordCount() > ) { ?>

                <dl>
                <?php $rows 0?>
                <?php while (!$records->EOF) { ?>
                    <?php $rows++; ?>
                    <dt><?php echo $rows?>. <a href="<?php echo zen_href_link(UN_FILENAME_WISHLIST_FIND'wid='.$records->fields['id']); ?>"><?php echo un_get_fullname($records->fields['name']); ?>: Wish List</a></dt>
                    <?php $records->MoveNext(); ?>
                <?php // end while records ?>
                </dl>
    I also edited the tpl_un_wishlist_find_default.php:

    and removed :

    PHP Code:
    <h1><?php echo TEXT_WISHLIST_FOR $customers_name?></h1>
    to hide the customers name also from the wishlist display page.

  3. #33
    Join Date
    Feb 2004
    Posts
    61
    Plugin Contributions
    0

    Default Re: WishList v0.4 -- ZenCart 1.3.7 compatible

    Quote Originally Posted by dharma View Post
    I was not successful in changing the customers 1st (default) wishlist to "private" instead of public with your code change...
    my mistake. try this:

    file "./includes/classes/un_wishlist.class.php":

    find (line 602):
    Code:
    $result = $this->createWishlist('Default', '', 1, 1);
    replace with:
    Code:
    $result = $this->createWishlist('Default', '', 1, 0);

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

    Default Re: WishList v0.4 -- ZenCart 1.3.7 compatible

    That code works great! The default is now private.

    Thanks again for your smoking! contribution!

  5. #35
    Join Date
    Feb 2005
    Location
    New Jersey
    Posts
    646
    Plugin Contributions
    0

    Default Re: WishList v0.4 -- ZenCart 1.3.7 compatible

    Hi,

    I just added this contribution and I really love it. I would like to know if it's possible to add a button under my add to cart button for the add to wishlist? Does anyone know if this is possible?

    Thanks in advance!
    Kelly

  6. #36
    Join Date
    Feb 2004
    Posts
    61
    Plugin Contributions
    0

    Default Re: WishList v0.4 -- ZenCart 1.3.7 compatible

    Quote Originally Posted by sleepless View Post
    I would like to know if it's possible to add a button under my add to cart button for the add to wishlist?
    As the readme states:

    Code:
    <?php 
    // (un): start wishlist link
    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>'; 
    // (un): end wishlist link
    ?>
    If you want an image as opposed to a textual link (like above), replace "UN_TEXT_ADD_WISHLIST" with an image tag.

  7. #37
    Join Date
    Feb 2005
    Location
    New Jersey
    Posts
    646
    Plugin Contributions
    0

    Default Re: WishList v0.4 -- ZenCart 1.3.7 compatible

    Thank you. I saw the read me but wasn't sure as far as the image went.

    Thanks again.
    Kelly

  8. #38
    Join Date
    Jun 2007
    Posts
    239
    Plugin Contributions
    0

    Default Re: WishList v0.4 -- ZenCart 1.3.7 compatible

    Getting this error with wishlist v0.4.

    1146 Table 'trendsde_zc1.un_wishlists' doesn't exist
    in:
    [SELECT id FROM un_wishlists w WHERE w.customers_id=1 and w.default_status=1 ]

    Please help

  9. #39
    Join Date
    Feb 2004
    Posts
    61
    Plugin Contributions
    0

    Default Re: WishList v0.4 -- ZenCart 1.3.7 compatible

    Quote Originally Posted by james739 View Post
    ... Table 'trendsde_zc1.un_wishlists' doesn't exist
    in...
    check your mysql database. does the database "trendsde_zc1" exist? does the table "un_wishlists" exist? this problem has been noted before. check the forum. reread the setup steps in the readme. if you spend the time, you can figure it out on your own and you can learn about your web app in the process.

  10. #40
    Join Date
    Jun 2007
    Posts
    239
    Plugin Contributions
    0

    Default Re: WishList v0.4 -- ZenCart 1.3.7 compatible

    I went back and read over all the post. I still couldn't find a resolution. I am getting the same error:

    1146 Table 'trendsde_zc2.un_wishlists' doesn't exist
    in:
    [SELECT id FROM un_wishlists w WHERE w.customers_id=1 and w.default_status=1 ]

    How can I create a trendsde_zc2 table?

 

 
Page 4 of 32 FirstFirst ... 2345614 ... LastLast

Similar Threads

  1. Wishlist 0.9
    By vinnyna in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Nov 2011, 03:52 PM
  2. 1.3 Compatible Contributions
    By borzoid in forum All Other Contributions/Addons
    Replies: 83
    Last Post: 26 Apr 2009, 11:50 PM
  3. MZMT compatible?
    By robeartoesart in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 4 Oct 2006, 01:29 PM

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