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
  #1  
Old 01-15-2006, 07:33 PM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

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

Hello,

I am looking to set up the "add to wish list" button to all pages for all users (not just those who are signed in). If possible, when a person hits the add to wish list button and he/she is not a user, he/she should be redirected to become a member. After the membership is completed, he/she should be redirected to the "wish list" cart. If anyone could please help with this, it would be great.

Thanks,
David Saldana
__________________
4.4
Code:
Hello World
Reply With Quote
  #2  
Old 01-16-2006, 03:40 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

You would need to replace the wishlist button code with an if statement similar to this:

{if $login eq ""}

Show button but link to another page

{else}

Show actual wishlist button

{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-16-2006, 07:03 AM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default

Do you know which file actually needs to be edited?
__________________
4.4
Code:
Hello World
Reply With Quote
  #4  
Old 01-16-2006, 07:05 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

product.tpl for the product detail page
products_t.tpl for a multi-column product display
products.tpl for a single column display
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 01-16-2006, 07:34 PM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default

Thanks for that. It was so easy to do and I highly recommend this mod which will allow your "add to wishlist" button to be shown at all times. If the customer is not logged in, it will redirect them to the registration page.

Add to product.tpl:

Code:
{if $login eq "" and $active_modules.Wishlist ne""} {include file="buttons/add_to_wishlist.tpl" style="button" href="http://www.yoursite.com/store/register.php"}</a> {/if}

After:

Code:
{if $login ne "" and $active_modules.Wishlist ne ""} {include file="customer/add2wl.tpl"} {/if}
__________________
4.4
Code:
Hello World
Reply With Quote
  #6  
Old 04-06-2006, 12:24 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default

Thanks for this very usefull and easy to implement mod!
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #7  
Old 06-15-2006, 03:44 AM
 
katandmouse katandmouse is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 37
 

Default one problem with wishlist mod

That is a helpful mod, however there is one problem. What if the user already has an account and just needs to log in. Instead of sending them to the register page, it should send them to a log in page where they will be met with instructions to register if they haven't already. How do you do that easily? I'm creating a my account page with a login form that will do the trick, but if there is an easier way to send them to login, I'd like to know about it.
__________________
xcart version 4.0.18
Reply With Quote
  #8  
Old 06-15-2006, 03:48 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

The system has no idea if they are already registered or not when they aren't logged in, so sending them to a 'My Account' page is going to be your best solution.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 04-06-2007, 05:46 AM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

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

Quick Note, if you are using the HTML Catalog generator, this mod will not work with those static pages.
__________________
4.4
Code:
Hello World
Reply With Quote
  #10  
Old 04-06-2007, 06:16 AM
 
klong klong is offline
 

Member
  
Join Date: Nov 2006
Posts: 12
 

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

Here's how I handled it: www.bambinibliss.com. And yes, I had problems when using the html generator.
__________________
Version 4.1.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:48 PM.

   

 
X-Cart forums © 2001-2020