Support Forums

Old 02-04-2009, 09:07 PM   #1
Member
 
marketingsolutions's Avatar
 
Join Date: Sep 2006
Location: Ilfracombe - England
Posts: 58
Rep Power: 12
marketingsolutions is on a distinguished road
Send a message via Skype? to marketingsolutions
Default Extra Fields on Custom checkout/step3

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}
Is there another way of doing this?

Thanks in advance

running v4.1.0 RC3 Developer
marketingsolutions is offline   Reply With Quote
Old 02-05-2009, 08:40 AM   #2
Member
 
marketingsolutions's Avatar
 
Join Date: Sep 2006
Location: Ilfracombe - England
Posts: 58
Rep Power: 12
marketingsolutions is on a distinguished road
Send a message via Skype? to marketingsolutions
Default Fixed

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}
To this:-
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}
marketingsolutions is offline   Reply With Quote

Bookmarks

Tags
checkout, extra fields

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 03:11 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0