|
|
#1 |
|
Member
|
I have a cstom form on usercheckout step 3 so using the {$extra_listing_fields} will not work
I have hard coded the form but I need to use the if statement to check to see if the field is need in the category chosen. I have tried this below, but with no luck. It wont show this field even in categories that it is supposed to. Code:
{if $opt4=="Y"}
<tr>
<td width="50%" colspan="2" valign="top"><label for="opt4">* Name of chef: </label></td>
<td width="50%"><input type="text" id="opt4" name="opt4" value="" size="40" /></td>
</tr>
{/if}
Thanks in advance running v4.1.0 RC3 Developer |
|
|
|
|
|
#2 |
|
Member
|
This is what i did
Changed:- Code:
{if $opt4=="Y"}
<tr>
<td width="50%" colspan="2" valign="top"><label for="opt4">* Name of chef: </label></td>
<td width="50%"><input type="text" id="opt4" name="opt4" value="" size="40" /></td>
</tr>
{/if}
Code:
{if $category=="9"}
<tr>
<td width="50%" colspan="2" valign="top"><label for="opt4">* Field1: </label></td>
<td width="50%"><input type="text" id="Field1" name="Field1" value="" size="40" /></td>
</tr>
{elseif $category=="7"}
<tr>
<td width="50%" colspan="2" valign="top"><label for="opt4">* Field2: </label></td>
<td width="50%"><input type="text" id="Field2" name="Field2" value="" size="40" /></td>
</tr>
{/if}
{elseif $category=="8"}
<tr>
<td width="50%" colspan="2" valign="top"><label for="opt4">* Field3: </label></td>
<td width="50%"><input type="text" id="Field3" name="Field3" value="" size="40" /></td>
</tr>
{/if}
|
|
|
|
| Bookmarks |
| Tags |
| checkout, extra fields |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| checkout: extra fields don't hold value @ step 4 back to step 3 | Golfball | v4 Modules / Modifications | 6 | 11-04-2008 10:18 AM |
| 3 column checkout step3 mod - help! | centinel3 | v4 Modules / Modifications | 0 | 08-10-2008 08:04 AM |
| Custom checkout templates? | Mike-N-Tosh | v3.1 Modules & Modifications | 3 | 04-02-2007 08:32 AM |
| viewlistings and custom fields | summer | v3.1 Modules & Modifications | 16 | 10-04-2006 03:44 AM |