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)
-   -   If Satement For Membership Help (https://forum.x-cart.com/showthread.php?t=62569)

Duramax 6.6L 02-06-2012 04:30 PM

If Satement For Membership Help
 
I am trying to code an if statement for membership where the actual membership level is hidden on the checkout page but defaults to the membership level that I choose.

I believe the code I need to alter is listed below. I have the default membership loading to Premium, just can not figure out how to hide the selection box from the customer.


<tr>
<td class="data-name">{$lng.lbl_signup_for_membership}</td>
<td></td>
<td>
<select name="pending_membershipid">
{*<option value="">{$lng.lbl_not_member}</option>*}
{foreach from=$membership_levels item=v}
<option value="{$v.membershipid}"{if $userinfo.pending_membershipid eq $v.membershipid} selected="selected"{/if}>{$v.membership}</option>
{/foreach}
</select>
</td>
</tr>

cflsystems 02-07-2012 08:42 AM

Re: If Satement For Membership Help
 
You can comment out that whole section and replace it with

<input type="hidden" name="pending_membership" value="xxx" />

where xxx is the membershipid.


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

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