Thread: wishlists 0.6

Page 13 of 24 FirstFirst ... 3111213141523 ... LastLast
Results 121 to 130 of 236
  1. #121
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    Quote Originally Posted by neparker View Post
    When I change the tpl_product_info_display.php for the wislist from

    <!--bof Wishlist button -->
    <!--<br class="clearBoth" />
    optional depending where the code is added-->

    <?php if (UN_MODULE_WISHLISTS_ENABLED) {
    if ( $_SESSION['customer_id'] ) {
    echo '<div id="productWishlistLink" class="buttonRow back">';
    echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
    echo '</div>';

    <!--eof Wishlist button -->

    to

    <!--bof Wishlist button -->
    <?php
    if (UN_MODULE_WISHLISTS_ENABLED) {
    echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, 'products_id=' . (int)$_GET['products_id'] . '&action=wishlist_add_product', 'NONSSL') . '">' . zen_image_button(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"') . '</a>';
    }
    ?>
    <!--eof Wishlist button -->
    question is...why did you change the coding to the one you changed it to...

    as it is the original code was not all in your post either...it should have been the part in red was not in your post...maybe it needs to be in the new code you did insert:

    <!--bof Wishlist button -->
    <!--&ltbr class="clearBoth" />
    optional depending where the code is added-->

    <?php if (UN_MODULE_WISHLISTS_ENABLED) {
    if ( $_SESSION['customer_id'] ) {
    echo '&ltdiv id="productWishlistLink" class="buttonRow back">';
    echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
    echo '</div>';
    } else {
    echo '&ltdiv>';
    echo UN_BOX_WISHLIST_LOGIN_TEXT;
    echo '</div>';
    }
    } else {}
    ?>

    <!--eof Wishlist button -->

  2. #122
    Join Date
    Apr 2009
    Posts
    80
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    I was just saying that either code I get an error:

    I am using the original code as suggested in the installation read me files:

    <!--bof Wishlist button -->
    <!--<br class="clearBoth" />
    optional depending where the code is added-->

    <?php if (UN_MODULE_WISHLISTS_ENABLED) {
    if ( $_SESSION['customer_id'] ) {
    echo '<div id="productWishlistLink" class="buttonRow back">';
    echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
    echo '</div>';
    } else {
    echo '<div>';
    echo UN_BOX_WISHLIST_LOGIN_TEXT;
    echo '</div>';
    }
    } else {}
    ?>
    <!--eof Wishlist button -->

    and when I use the above code, which is what I should be using, I get the following error:

    1054 Unknown column 'attributes' in 'field list'
    in:
    [INSERT INTO un_products_to_wishlists ( `products_id`, `un_wishlists_id`, `created`, `modified`, `quantity`, `priority`, `comment`, `attributes` ) VALUES ( '5769', '1', NOW(), NOW(), '1', '2', '', 'a:1:{i:1;s:1:"1";}' )]


    I am thinking the error is the unknown column attributes in the field list. Whatever or however I fix that.

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

    Default Re: wishlists 0.6

    Quote Originally Posted by neparker View Post
    I was just saying that either code I get an error:

    I am using the original code as suggested in the installation read me files:

    <!--bof Wishlist button -->
    <!--<br class="clearBoth" />
    optional depending where the code is added-->

    <?php if (UN_MODULE_WISHLISTS_ENABLED) {
    if ( $_SESSION['customer_id'] ) {
    echo '<div id="productWishlistLink" class="buttonRow back">';
    echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
    echo '</div>';
    } else {
    echo '<div>';
    echo UN_BOX_WISHLIST_LOGIN_TEXT;
    echo '</div>';
    }
    } else {}
    ?>
    <!--eof Wishlist button -->

    and when I use the above code, which is what I should be using, I get the following error:

    1054 Unknown column 'attributes' in 'field list'
    in:
    [INSERT INTO un_products_to_wishlists ( `products_id`, `un_wishlists_id`, `created`, `modified`, `quantity`, `priority`, `comment`, `attributes` ) VALUES ( '5769', '1', NOW(), NOW(), '1', '2', '', 'a:1:{i:1;s:1:"1";}' )]


    I am thinking the error is the unknown column attributes in the field list. Whatever or however I fix that.
    alright here is another thought...I have combed thru the read me and can't find where it tells you that code you are using---either one.

    but I did see that for that file you need to insert this code to get the button to appear on the product page

    Code:
    <!--bof Wishlist button -->
    <?php if (UN_MODULE_WISHLISTS_ENABLED) { ?>
     <div id="productWishlistLink" class="buttonRow back"><?php 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') . '">' . zen_image_button(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT) . '</a>'); ?></div>
    <?php }
        else
        {}
    ?>
    <!--eof Wishlist button -->
    it is different from what you have written down too.

    This is the actual code from the example file found in the zip of installation

  4. #124
    Join Date
    Apr 2009
    Posts
    80
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    I used the code in the readme under 'how to use'
    I did try this code before, it's added now.

    When you click to add a product, you now don't get an error, but the product doesn't add at all.

    - if you did create a store account to see, go check it out if you would please.

  5. #125
    Join Date
    Apr 2009
    Posts
    80
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    Any suggestions anyone?

    Everything is there, I don't get an error with the following code in my tpl_product_info_display.php but when you click Add To Wishlist to add the product to your wishlist, it doesn't add it to anywhere and just brings you to the wishlist.

    <!--bof Wishlist button -->
    <?php if (UN_MODULE_WISHLISTS_ENABLED) { ?>
    <div id="productWishlistLink" class="buttonRow back"><?php 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') . '">' . zen_image_button(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT) . '</a>'); ?></div>
    <?php }
    else
    {}
    ?>
    <!--eof Wishlist button -->

  6. #126
    Join Date
    Apr 2009
    Posts
    80
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    so, I added back the original code:

    <!--bof Wishlist button -->

    <?php if (UN_MODULE_WISHLISTS_ENABLED) { ?>
    <div id="productWishlistLink" class="buttonRow back">
    <?php echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
    //print_r($_REQUEST);
    ?></div>

    <?php }
    else
    {}
    ?>
    <!--eof Wishlist button -->

    I get the error:
    1054 Unknown column 'attributes' in 'field list'
    in:
    [INSERT INTO un_products_to_wishlists ( `products_id`, `un_wishlists_id`, `created`, `modified`, `quantity`, `priority`, `comment`, `attributes` ) VALUES ( '6463', '1', NOW(), NOW(), '1', '2', '', 'a:5:{i:1;s:1:"1";i:2;s:1:"2";i:3;s:1:"3";i:4;s:1:"4";i:5;s:1:"5";}' )]

    I went into my cpanel and into the table un_products_to_wishlists

    I do not have the column attributes as I originally thought the problem was coming from.

    So I added the column attributes using the info from the wishlist.sql file in the installation. It works fine now.

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

    Default Re: wishlists 0.6

    Quote Originally Posted by neparker View Post
    I used the code in the readme under 'how to use'
    I did try this code before, it's added now.

    When you click to add a product, you now don't get an error, but the product doesn't add at all.

    - if you did create a store account to see, go check it out if you would please.
    BTW, love your store...the buttons are so cute did you make them or did they come with the template.

    now I went to my account at your store and added 2 items to the wishlist.

    I randomly chose the products, clicked the add to wishlist button and it returned me to the product page...I think it is supposed to do that

    Then I went to the link in the header (under your logo) and clicked it which took me to my wishlist and sure enough there they were.

    Now mind you this is in Firefox on my ancient Macintosh that still is able to go to some sites.

    I have not had a chance to check it on the pc cause it is being occupied by my daughter for a little bit but I will try it then too and let you know.

    no error messages either

  8. #128
    Join Date
    Apr 2009
    Posts
    80
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    Thanks, yes, that is what I want it to do, works in IE and in Chrome too.

    I started with a free template and have edited it, A LOT, to make it better. I'm in the process of revamping my entire site, so yes, I did make the buttons, background, everything. Thanks.

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

    Default Re: wishlists 0.6

    Quote Originally Posted by neparker View Post
    Thanks, yes, that is what I want it to do, works in IE and in Chrome too.

    I started with a free template and have edited it, A LOT, to make it better. I'm in the process of revamping my entire site, so yes, I did make the buttons, background, everything. Thanks.

    it is a very nice looking store., REMEMBER, which I am sure you know and are doing it but still:

    make a duplicate of the file you are editing code on and use it in a folder with your stores template name on it for it to be "in charge" as the override folder for edits...this way when the store updates files to keep our stuff safe so you will not have to go in and re-edit and lose the codes you edited.

    Also keep a copy of store files on your hard drive to make it easier to reupload files should something happen and they get corrupted.

  10. #130
    Join Date
    Apr 2009
    Posts
    80
    Plugin Contributions
    0

    Default Re: wishlists 0.6

    So, another question/problem, lol.

    When a product is added to the wishlist, the title and the 'tell a friend', 'find a friend', 'manage', 'move', as well as the drop down boxes and the products title and back button are all squished to the left, I need them moved over to the right a little and I can't find where in css I do this. Could also be that I'm tired, but any suggestions would be greatly appreciated.

 

 
Page 13 of 24 FirstFirst ... 3111213141523 ... 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