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

User registration.
 
Reply
   X-Cart forums > X-Cart 4 > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-10-2003, 12:28 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default User registration.

Sorry if this is in the wrong section, but as it's editing something in the template I guess this is ok.

what im trying to do, is on the registration page remove the need for the customer to have to choose between non-member and premium.

Is it possible to change the listbox to a hidden field and set the value to premium??

I've tried looking in register.php and can't seem to find where I should do this.
Reply With Quote
  #2  
Old 03-10-2003, 12:58 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

cotc,

the file to amend is the admin/main/membership_signup.tpl

This should be relatively easy to spot the amends to make it a hidden field as it is only a short template.

hth
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 03-10-2003, 01:13 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

So I should just change it from this

Code:
{* $Id: membership_signup.tpl,v 1.3 2002/09/09 12:50:27 zorg Exp $ *} <tr valign=middle> <td align=right>Signup for membership</td> <td></td> <td nowrap> <select name=pending_membership> <option value="">Not member</option> {section name=level loop=$membership_levels} {if ($smarty.get.usertype eq "" and $membership_levels[level].usertype eq "C")or(($smarty.get.usertype eq $membership_levels[level].usertype) or ($active_modules.Simple_Mode ne "" and $smarty.get.usertype eq "P" and $membership_levels[level].usertype eq "A"))} <option value="{$membership_levels[level].membership}" {if $userinfo.pending_membership eq $membership_levels[level].membership}selected{/if}>{$membership_levels[level].membership}</option> {/if} {/section} </select> </td> </tr>

to this:

Code:
{* $Id: membership_signup.tpl,v 1.3 2002/09/09 12:50:27 zorg Exp $ *} <tr valign=middle> <td align=right>Signup for membership</td> <td></td> <td nowrap> <input name="pending_membership" type="hidden" value="P"> </td> </tr>

and then obviously change remove the txt that says membership type
Reply With Quote
  #4  
Old 03-10-2003, 01:22 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

dat'll work
__________________
ex x-cart guru
Reply With Quote
  #5  
Old 03-10-2003, 03:55 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

yup it worked.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > 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 10:05 PM.

   

 
X-Cart forums © 2001-2020