Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Viewing "Add to Wish List" button at all times

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:13 PM.

   

 
X-Cart forums © 2001-2020