Thread: Adding WishList

Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Adding WishList

    Hello All,

    trying to add the wishlist addon, and I have the text link from the mod
    working and all is well but I would like to have the IMAGE for the add to wishlist
    not the text, anyone know how to make this an image from the text ?

    <?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
    ?>

    Image code from the mods TPL file for the sidebox--
    $content .= zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT);

    can the two be combined ?

    Thx
    Erick

  2. #2
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Re: Adding WishList

    GOT IT..

    I changed to

    <?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') . '">' . zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT). '</a>';
    // (un): end wishlist link
    ?>

    hope this can help others :-)

    Now I just have to work it in next to the add to cart button with out it performing the add to CART function.

    Thx
    Erick

  3. #3
    Join Date
    Nov 2006
    Posts
    296
    Plugin Contributions
    2

    Default Re: Adding WishList

    Quote Originally Posted by gloerick View Post
    GOT IT..

    I changed to

    <?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') . '">' . zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT). '</a>';
    // (un): end wishlist link
    ?>

    hope this can help others :-)

    Now I just have to work it in next to the add to cart button with out it performing the add to CART function.

    Thx
    Erick
    use zen_image_button instead of submit

 

 

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. adding wishlist link to header
    By ctcentralinfo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Jun 2008, 12:42 AM
  4. Wishlist !!
    By spottedhaggis in forum All Other Contributions/Addons
    Replies: 26
    Last Post: 24 Nov 2007, 07:52 AM
  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