View Single Post
  #11  
Old 11-07-2007, 07:40 AM
 
ryhan_balboa ryhan_balboa is offline
 

Member
  
Join Date: Nov 2007
Posts: 14
 

Default Re: Viewing "Add to Wish List" button at all times

Hi All..

I've tried putting following code on customer/main/cart.tpl:

{if $login ne "" and $active_modules.Wishlist ne ""}
{
include file="customer/add2wl.tpl"
}
{else}
{
include file="buttons/add_to_wishlist.tpl" style="button" href="register.php"
}
{/if}

The idea is, when a customer has added something to his/ her basket, I want a link that offeres to add the product to his/her wishlist. The register function works, when not logged in But when logged in, it doesn't take me anywhere, instead says that an object is expected.

Then I tried
{if $login ne "" and $active_modules.Wishlist ne ""}
{
include file="buttons/add_to_wishlist.tpl" style="button" href="cart.php?mode=wishlist&wl_productid.value=`$ products[product].productid`"
}
{else}
{
include file="buttons/add_to_wishlist.tpl" style="button" href="register.php"
}
{/if}

This time, it does take me to the wishlist page, but does not actually add the product to the wishlist.

Lots of Thanks if someone can help??
__________________
Tawhid

X-Cart 4.0.14 - heavily modified! (Linux)
www.lasertechgroup.com/uk
Reply With Quote