Support Forums

Extra Fields on Custom checkout/step3

This is a discussion on Extra Fields on Custom checkout/step3 within the Technical Support forums, part of the Technical Support Forums category; I have a cstom form on usercheckout step 3 so using the {$extra_listing_fields} will not work I have hard coded ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 02-04-2009, 10:07 PM   #1
Member
 
marketingsolutions's Avatar
 
Join Date: Sep 2006
Location: Ilfracombe - England
Posts: 59
Rep Power: 23
marketingsolutions is on a distinguished road
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  
Old 02-05-2009, 09:40 AM   #2
Member
 
marketingsolutions's Avatar
 
Join Date: Sep 2006
Location: Ilfracombe - England
Posts: 59
Rep Power: 23
marketingsolutions is on a distinguished road
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  
Closed Thread

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 Modules / Plugins / Modifications 6 11-04-2008 11:18 AM
3 column checkout step3 mod - help! centinel3 Modules / Plugins / Modifications 0 08-10-2008 09:04 AM


All times are GMT -4. The time now is 06:23 AM.


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