This has been broken for months and it's really annoying people! I can't figure it out, but anyone with decent PHP skills can really help me out. If you have a moment, I'd really appreciate some advice.
We are using a modified wishlist system, and on the product info page it works perfectly. When clicking on the wishlist button, a popup window lets you select which wishlist to add the product to. This code is here:
On the product info page:
BUT, on the product listing page, I can't figure out how to get the popup to work because the syntax is different. So, when you click on it, it adds to wishlist but the customer is taken to the wishlist page. This is really annoying because in our shop the product listing page is used almost entirely -- and it makes shopping take much longer when constantly going to the wishlist page.Code:<!--bof ADD wishlist button--> <div id="infoListButton"> <?php echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action')) . 'action=un_add_wishlist') . '" onclick="clickAddWL(); return false;">' . zen_image_submit(BUTTON_IMAGE_ADD_WISHLIST, BUTTON_ADD_WISHLIST_ALT) . '</a><div class="wlListMenu" id="wlLists"> </div>'; ?> </div> <!--eof ADD wishlist button-->
Can someone help me alter the following code to add the popup select window to the wishlist button?
Here's the code on the product listing page:
Code:// BEGIN Add wishlist button $lc_button2 = ''; $lc_button2 = '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, 'products_id=' . $listing->fields['products_id'] . '&action=un_add_wishlist') . '">' . zen_image_button(BUTTON_IMAGE_ADD_WISHLIST, BUTTON_ADD_WISHLIST_ALT, 'class="listingBuyNowButton"') . '</a>'; $the_button2 = $lc_button2; $products_link = ''; $lc_text .= zen_get_buy_now_button($listing->fields['products_id'], $the_button2, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($listing->fields['products_id']);



