I took some code from registrationForm.tpl and slotted it into paymentForm.tpl just before the Continue button, adding <table>...</table> and <form>...</form> tags, as follows:
- Code: Select all
<form>
<table class="data" width="100%">
{foreach from=$registrationOptions item=registrationOption name=registrationOptions}
{assign var=optionId value=$registrationOption->getOptionId()}
<tr valign="top">
{if $smarty.foreach.registrationOptions.first}
<td rowspan="{$registrationOptions|@count}" class="label">{translate key="schedConf.registration.options"}</td>
{/if}
<td class="value">
<input id="registrationOptions-{$optionId|escape}" {if $registrationoptionids && in_array($optionid, $registrationoptionids)}checked="checked" {/if}type="checkbox" name="registrationOptionIds[]" value="{$optionId|escape}]"/> <label for="registrationOptions-{$optionId|escape}">{$registrationOption->getRegistrationOptionName()}</label>
</td>
</tr>
{/foreach}
</table>
</form>
However, this does not find any registration options; the only code which is generated in the HTML page is:
- Code: Select all
<form><table class="data" width="100%">
</table></form>
What other changes do I need to make in order to have the registration options displayed? It doesn't have to be only those selected which are displayed; I don't mind if the non-selected ones are displayed as well, so long as the checkbox for the selected ones is ticked. I would be grateful for any help here!
Edited to add: I'm using version 2.1.2.
