Thread: wishlists 0.6

Page 7 of 24 FirstFirst ... 5678917 ... LastLast
Results 61 to 70 of 236
  1. #61
    Join Date
    Aug 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    Edit3: Sidebox has appeared..

    Edit4: Sidebox seems to take me to a wishlist page.. but adding item to wishlist doesn't. Also there is no "see my wishlist" in the my account area. Is there some way I could sort that out?

  2. #62
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    Quote Originally Posted by Gothi View Post
    Hey there,

    Tried installing this today and having a few problems.

    I am using ZC V1.3.9h and followed all the instructions.
    It was a clean install, no upgrade or anything.

    I don't like leaving it like this but for you to see I have go to http://voluptupuss.co.uk/index.php?m...roducts_id=308

    As you can see the wishlist has no button, I couldn't see an image supplied with the zip file and have my own image but not sure where to change the info to show it.

    Also when I click on the wishlist it just adds item to cart, even when logged in, there. Is there something I am missing?

    Sorry if this has been covered in previous messages, I am trying to find a solution but may have missed it.

    Thanks for your time.
    to replace the default image you just need to put the one you made---named exactly as the one being replaced...into the folder of your template

    includes/templates/your_template/buttons/english/wishlist_add.gif

    then it should show in the store right

    I just tried the button--not registered though and it took me to registration/login page so not sure...but yes it has been addressed...somewhere in this section will take a look and see if I can find it


    about the other problem make sure you have all the files in the correct places. It should work...recently I had to reupload the files cause with my host move one got corrupted and the admin link under tools was missing...lol these stores have a mind of their own!

  3. #63
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    @Gothi

    did you read these about .09?

    What happens when you use the add to cart depends on a few things including your store settings regarding what to do when placing the product in the cart (go to cart or stay on product page). There is also the factor of the attributes: if your products has attributes the add to cart button will take you to the product page. this is currently what we want as product attributes are not saved in the wishlist. Even if these attributes are not mandatory, if there is any attribute option, you will end up on the product page, only if there are no attributes used, again...depending on your store settings... you will end up adding the product to the cart instantly and receive either a message succes in the top header bar or you will be taken to the cart where you will see the product is added.

    ----------------------------------

    So if you want to use the wishlist from 0.9 onwards, you will need to place the add to wishlist button within the form on the product page and you can no longer use the sidebox for adding products to the wishlist. All this is clearly stated in the readme, please correct me if i didn't put it in there?

    As previously stated, not all attribute types are fully working as expected yet, if you are using checkboxes or text input, these are treansferred into the class and into the serialized string in the table, but they aren't yet shown on the wishlist itself when you look at the products.

    --------------------------------

    instructions for file edit:

    http://www.zen-cart.com/forum/showpo...1&postcount=50

  4. #64
    Join Date
    Aug 2011
    Posts
    1
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    I've gone through this entire thread and found no answer to my issue.
    The code for a user to visit the wishlist page is (as shown in documentation)

    <?php if (UN_MODULE_WISHLISTS_ENABLED) { ?>
    <a href=""><?php echo UN_HEADER_TITLE_WISHLIST; ?></a>
    <?php } else {} ?></li>

    However, if you notice the a tag, there is no link code there. Just empty quotes. Can someone shed some light on how to link to the wishlist page ?

    Thanks.

  5. #65
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    Quote Originally Posted by neilb4me View Post
    I've gone through this entire thread and found no answer to my issue.
    The code for a user to visit the wishlist page is (as shown in documentation)

    <?php if (UN_MODULE_WISHLISTS_ENABLED) { ?>
    <a href=""><?php echo UN_HEADER_TITLE_WISHLIST; ?></a>
    <?php } else {} ?></li>

    However, if you notice the a tag, there is no link code there. Just empty quotes. Can someone shed some light on how to link to the wishlist page ?

    Thanks.
    I wrote mine like this for the area in the includes/yourtemplate/common/tpl_header.php

    I works for whichever customer too :

    <!--//wishlist link-->

    <li><a href="http://your_shop_link_here/index.php?main_page=wishlist">View Wishlist</a></li>


    <!--//end wishlist link-->

    or you can add the http bit to the actual coding for yours when you put it where you want it to show. AND leave off the <li> tags if yours in not in list order...sorry

  6. #66
    Join Date
    Dec 2009
    Posts
    206
    Plugin Contributions
    2

    Default Re: wishlists 0.6

    Quote Originally Posted by DarkAngel View Post
    I wrote mine like this for the area in the includes/yourtemplate/common/tpl_header.php

    I works for whichever customer too :

    <!--//wishlist link-->

    <li><a href="http://your_shop_link_here/index.php?main_page=wishlist">View Wishlist</a></li>


    <!--//end wishlist link-->

    or you can add the http bit to the actual coding for yours when you put it where you want it to show. AND leave off the <li> tags if yours in not in list order...sorry
    A little bit safer way to do it is using zen_href_link. In your case, it would be

    <li><?php echo '<a href="' . zen_href_link(FILENAME_UN_WISHLISTS) . '">'; ?><?php echo UN_HEADER_TITLE_WISHLIST; ?></a></li>

  7. #67
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    Quote Originally Posted by kamelion0927 View Post
    A little bit safer way to do it is using zen_href_link. In your case, it would be

    <li><?php echo '<a href="' . zen_href_link(FILENAME_UN_WISHLISTS) . '">'; ?><?php echo UN_HEADER_TITLE_WISHLIST; ?></a></li>

    please clarify why is the way I have it unsafe? Nobody can access the wishlist unless they are logged in. you got my curiosity going...lol

  8. #68
    Join Date
    Jul 2008
    Location
    San Diego, CA
    Posts
    45
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    Know this is on the "ToDo" list, but had client want ability to add to Wish List for cart. Sharing changes encase it is helpful to others.

    Modify tpl_shoppign_cart_defualt.php to add new column to product display table. Around line 52.
    Add line to header row of table.
    Code:
    <table  border="0" width="100%" cellspacing="0" cellpadding="0" id="cartContentsDisplay">
         <tr class="tableHeading">
            <th scope="col" id="scQuantityHeading"><?php echo TABLE_HEADING_QUANTITY; ?></th>
            <th scope="col" id="scUpdateQuantity">&nbsp;</th>
            <th scope="col" id="scWishList">&nbsp;</th>
            <th scope="col" id="scProductsHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
            <th scope="col" id="scUnitHeading"><?php echo TABLE_HEADING_PRICE; ?></th>
            <th scope="col" id="scTotalHeading"><?php echo TABLE_HEADING_TOTAL; ?></th>
            <th scope="col" id="scRemoveHeading">&nbsp;</th>
         </tr>
    Then add new cell to table
    Code:
    <!-- Add Wish List Button  8/20/2011 -->
    <td class="cartWishList">
            <?php
        // start wishlist link
        if (UN_MODULE_WISHLISTS_ENABLED) {
           // first step clean up the Product ID: starting array string is sturctured like producID:numberic string.
           $productID = substr($product['id'],0,strcspn($product['id'],':'));  //strips numeric string after :
                  
           echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, 'products_id=' . $productID . '&action=wishlist_cartAdd_product') . '">' . UN_TEXT_ADD_WISHLIST .'</a>';
        }
        // end wishlist link
        ?>
    </td>       
     <!-- EOF Wish List Button -->
    I did add the new class cartWishList, to styles.css with a few items.

    I did not want the redirect back to the product when the item was added. So create a new case option in wishlist_cart_actions.php New case is named wishlist_cartAdd_product. Note the redirect is back to the shopping cart.

    Code:
            case 'wishlist_cartAdd_product':
            global $messageStack;
                if (!$_SESSION['customer_id']) {
                    $_SESSION['navigation']->set_snapshot();
                    zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
                }
                if ($_SESSION['customer_id'] && isset($_GET['products_id'])) {
    
                    // use wishlist class
                    require_once(DIR_WS_CLASSES . 'wishlist_class.php');
                    $oWishlist = new un_wishlist($_SESSION['customer_id']);
                    $oWishlist->addProduct($_GET['products_id']);
                    
                }
                if ( DISPLAY_WISHLIST == 'true' ) {
                    zen_redirect(zen_href_link(UN_FILENAME_WISHLIST));
                  } else {
                      $messageStack->add_session('header', SUCCESS_ADDED_TO_WISHLIST_PRODUCT, 'success');
                    zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
                }    
                break;
    Hope this may help others. However, this has not been tested on any other configurations other than what I am using in this one store (1.3.8a), make backups, use at your own risk, blah, blah, blah...

  9. #69
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    I have also searched this thread and have not found my problem listed. I previously had an older version of this module installed on my site. I went through the instructions and uninstalled/deleted everything, then ran the uninstall sql patch file. I then ran the new install sql file and added the new files for the .09 version. But when I run the sql patch file I get this error:


    Code:
    1062 Duplicate entry '1' for key 'PRIMARY'
    in:
    [INSERT INTO znc_un_wishlists VALUES (1, 0, now(), now(), 'donotuse', 'donotuse', 0, 0);]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    Does anyone know what this means and how I can fix it?

    The sidebox is showing up just fine, but when I click to add a product to the wish list, it takes me to my wish list and tells me that nothing has been added. Any help here would be very much appreciated.

  10. #70
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    Quote Originally Posted by rweeks View Post
    Know this is on the "ToDo" list, but had client want ability to add to Wish List for cart. Sharing changes encase it is helpful to others.

    Modify tpl_shoppign_cart_defualt.php to add new column to product display table. Around line 52.
    Add line to header row of table.
    Code:
    <table  border="0" width="100%" cellspacing="0" cellpadding="0" id="cartContentsDisplay">
         <tr class="tableHeading">
            <th scope="col" id="scQuantityHeading"><?php echo TABLE_HEADING_QUANTITY; ?></th>
            <th scope="col" id="scUpdateQuantity">&nbsp;</th>
            <th scope="col" id="scWishList">&nbsp;</th>
            <th scope="col" id="scProductsHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
            <th scope="col" id="scUnitHeading"><?php echo TABLE_HEADING_PRICE; ?></th>
            <th scope="col" id="scTotalHeading"><?php echo TABLE_HEADING_TOTAL; ?></th>
            <th scope="col" id="scRemoveHeading">&nbsp;</th>
         </tr>
    Then add new cell to table
    Code:
    <!-- Add Wish List Button  8/20/2011 -->
    <td class="cartWishList">
            <?php
        // start wishlist link
        if (UN_MODULE_WISHLISTS_ENABLED) {
           // first step clean up the Product ID: starting array string is sturctured like producID:numberic string.
           $productID = substr($product['id'],0,strcspn($product['id'],':'));  //strips numeric string after :
                  
           echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, 'products_id=' . $productID . '&action=wishlist_cartAdd_product') . '">' . UN_TEXT_ADD_WISHLIST .'</a>';
        }
        // end wishlist link
        ?>
    </td>       
     <!-- EOF Wish List Button -->
    I did add the new class cartWishList, to styles.css with a few items.

    I did not want the redirect back to the product when the item was added. So create a new case option in wishlist_cart_actions.php New case is named wishlist_cartAdd_product. Note the redirect is back to the shopping cart.

    Code:
            case 'wishlist_cartAdd_product':
            global $messageStack;
                if (!$_SESSION['customer_id']) {
                    $_SESSION['navigation']->set_snapshot();
                    zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
                }
                if ($_SESSION['customer_id'] && isset($_GET['products_id'])) {
    
                    // use wishlist class
                    require_once(DIR_WS_CLASSES . 'wishlist_class.php');
                    $oWishlist = new un_wishlist($_SESSION['customer_id']);
                    $oWishlist->addProduct($_GET['products_id']);
                    
                }
                if ( DISPLAY_WISHLIST == 'true' ) {
                    zen_redirect(zen_href_link(UN_FILENAME_WISHLIST));
                  } else {
                      $messageStack->add_session('header', SUCCESS_ADDED_TO_WISHLIST_PRODUCT, 'success');
                    zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
                }    
                break;
    Hope this may help others. However, this has not been tested on any other configurations other than what I am using in this one store (1.3.8a), make backups, use at your own risk, blah, blah, blah...
    great you get it to work on your system but I would think about upgrading to 1.3.9h cause I have had to bail out quite a few people due to hacking of their 1.3.8 versions and their hosts suspended their accounts for spam

 

 
Page 7 of 24 FirstFirst ... 5678917 ... LastLast

Similar Threads

  1. Wishlists & Attributes
    By glamourdolleyes in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Jul 2011, 08:28 PM
  2. Allow non-members access to search wishlists?
    By boutique in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 5 Feb 2009, 11:16 AM
  3. Wishlists
    By fbords in forum Basic Configuration
    Replies: 1
    Last Post: 8 Sep 2007, 05:43 AM

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