Well I thought this was a great idea & tried it in my x-cart version, works, good! Only one issue & I want to make sure it's just me... or not. When you visit the x-cart URL
http://www.website.com/a/cart.php?mode=friend_wl&wlid=4a537c1ed8e512c09bd9e 2c130a02100 (example only) and you see the wishlist, do you see an "Add to Cart" button? or just the "Details" button?
I would think it would be best to see the "Add to Cart" button whether the visiting friend is logged in or not (which of course they probably wouldn't be logged in since they just clicked that public URL).
Now I do have the setting for view product details before adding to cart checked (but I cannot find where to change that setting yet). However, I don't even know if that would have an impact on the "Add to Cart" button showing on this public wishlist URL any way, because by looking at the code from the include called ( File: /modules/Wishlist/wl_buttons.tpl ) on ( File: /modules/Wishlist/wl_products.tpl ) the section where the "Add to Cart" button would be displayed or not shows:
PHP Code:
{if (($wl_products and $wl_products[product].amount_purchased < $wl_products[product].amount and $wl_products[product].avail gt "0") or $config.General.unlimited_products eq "Y") or $main_mode eq "manager" or $buttons_for eq "giftcerts" or $wl_products[product].product_type eq "C"}
{if $login}
{if $giftregistry eq ""}
<td class="ButtonsRow">{include file="buttons/add_to_cart.tpl" href="cart.php?mode=wl2cart&wlitem=`$wlitem_data.wishlistid`"}</td>
{else}
<td class="ButtonsRow">{include file="buttons/add_to_cart.tpl" href="cart.php?mode=wl2cart&fwlitem=`$wlitem_data.wishlistid`&eventid=`$eventid`"}</td>
{/if}
{/if}
{else}
{if $wl_products[product].amount > $wl_products[product].avail}
<td class="ButtonsRow"><b>{$lng.txt_out_of_stock}</b></td>
{/if}
{/if}
if $login and if $giftregistry eq ""
before it's deciding to show the "Add to Cart" button or not...
Of course I'm going to play around a bit with it & see if I can get it to show
without being logged in, just wondering are you seeing the "Add to Cart" button on your x-cart version? I know mine is different. Thanks for your post & reply, it's a neat & good idea.