Results 1 to 10 of 312

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Plugin Contributions
    0

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

    Quote Originally Posted by novastar View Post
    MAJOR problems with this mod. I just realized that the only list that functions correctly is the default list. Does anyone else experience these problems?

    2. When ever I try to add an item to the wishlist it will add the item to my cart.

    Any help or insight appreciated.
    So I have this same issue and here is something I noticed.

    In my tpl_product_info_display.php template, I added this code:

    Code:
                <!--bof Wishlist button -->
                <?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_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT) . '</a>'); ?>
                <!--eof Wishlist button -->
    next to my add to cart button. It appears exactly where I want it, however when you add to the wishlist, the item gets added to the cart too.

    Now, in the readme, there is this code:

    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
    ?>
    This is pretty much the same code, however instead of a image button, it display the text "Add to Wishlist". THIS WORKS and adds the item to the wishlist and NOT the cart.

    So in either case, I can use both pcs of code, but if I use

    zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT)

    instead of

    UN_TEXT_ADD_WISHLIST

    it goes to the cart to. (So Image button adds item to cart, text link doesn't)

    Next, I enabled the side column module, and that works as it should, but the code (when I view the source of the page) is different, and is in a <form>.

    My guess is, using the image button option utilizes input fields of a form, and the store gets confused when the button is pushed and the item goes to both the cart and the wishlist. Is there a way I can just use <img src.....> in place of zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT)???

    Any idea why this is. You can see my store here: http://joessecuritydepot.com (It's still in the works, but is active for testing purposes. Any help or suggestions you may have would be greatly appreciated. Thank you.

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

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

    Quote Originally Posted by markbolyard View Post
    Any idea why this is. You can see my store here: http://joessecuritydepot.com (It's still in the works, but is active for testing purposes. Any help or suggestions you may have would be greatly appreciated. Thank you.
    i didn't see any wishlist, not even after creating account, did you remove it?
    I like the cart item in the bar, would you mind telling me where or how you got it implemented? (use pm as probably off topic here, thanks)

 

 

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