![]() |
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?? |
All times are GMT -8. The time now is 12:54 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.