X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   User registration. (https://forum.x-cart.com/showthread.php?t=1818)

cotc2001 03-10-2003 12:28 AM

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.

funkydunk 03-10-2003 12:58 AM

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

cotc2001 03-10-2003 01:13 AM

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

funkydunk 03-10-2003 01:22 AM

dat'll work :D

cotc2001 03-10-2003 03:55 AM

yup it worked.


All times are GMT -8. The time now is 09:28 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.