that checkmark to not redirect is great, but i've just learned that is does not apply when you're in a wishlist and you click add to cart.
in wlbuttons.tpl this is the code...
<td class="ButtonsRow">{include file="buttons/add_to_cart.tpl" href="cart.php?mode=wl2cart&wlitem=`$wlitem_data.w ishlistid`"}</td>
<td class="ButtonsRow">{include file="buttons/add_to_cart.tpl" href="cart.php?mode=wl2cart&fwlitem=`$wlitem_data. wishlistid`&eventid=`$eventid`"}</td>
how would you get the add to cart action to take place, but stay in the wishlist? i've tried messing with the urls, and i can get it to stay put, but i cannot get it to add the item.
***EDIT... i just found this... the call or action is wl2cart. so, go to wishlist.php and this appears to be the chunk of code that controls the action. anyone have any idea how to modify it to not redirect to the cart? or would we not even need to touch the php, and it can be done in the tpl's?
Code:
#
# Add to cart product from wish list
#
if (!empty($eventid)) {
$wishlistid = $fwlitem;
$login_cond = "event_id='$eventid' AND wishlistid='$fwlitem'";
$wlid = func_query_first_cell("SELECT login FROM $sql_tbl[wishlist] WHERE $login_cond");
$wlid = md5($wlid);
$wlid_eventid = $eventid;
}
else {
if ($wlitem) {
$wishlistid = $wlitem;
$login_cond = "login='$login' AND wishlistid='$wlitem'";
}
else {
$wishlistid = $fwlitem;
$login_cond = "MD5(login)='$wlid' AND wishlistid='$fwlitem'";
}
}
if (!empty($wlid)) {
$giftreg = array("wlid"=>$wlid, "eventid"=>$eventid);
$friends_wihlists[] = $giftreg;
}
$wlproduct = func_query_first("SELECT wishlistid, productid, amount-amount_purchased as amount, options, object FROM $sql_tbl[wishlist] WHERE $login_cond AND (productid='0' OR amount-amount_purchased>0)");