Hi,
I have created configurable options for the product. I have the "Hidden" checkbox selected because I do not want to show them in the order form. Everything works great here. The problem is that they have also been hidden in the client's arena. I want to edit the template to show the upgrade configurable options in the client arena, even if the "Hidden" checkbox is selected.
I found the code in the template (six/upgrade.tpl) responsible for displaying these options:
{elseif $type eq "configoptions"}
<p>{$LANG.upgradechooseconfigoptions}</p>
{if $errormessage}
{include file="$template/includes/alert.tpl" type="error" errorshtml=$errormessage}
{/if}
<form method="post" action="{$smarty.server.PHP_SELF}">
<input type="hidden" name="step" value="2" />
<input type="hidden" name="type" value="{$type}" />
<input type="hidden" name="id" value="{$id}" />
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>{$LANG.upgradecurrentconfig}</th>
<th></th>
<th>{$LANG.upgradenewconfig}</th>
</tr>
</thead>
<tbody>
{foreach key=num item=configoption from=$configoptions}
<tr>
<td>{$configoption.optionname}</td>
<td>
{if $configoption.optiontype eq 1 || $configoption.optiontype eq 2}
{$configoption.selectedname}
{elseif $configoption.optiontype eq 3}
{if $configoption.selectedqty}{$LANG.yes}{else}{$LANG.no}{/if}
{elseif $configoption.optiontype eq 4}
{$configoption.selectedqty} x {$configoption.options.0.name}
{/if}
</td>
<td>=></td>
<td>
{if $configoption.optiontype eq 1 || $configoption.optiontype eq 2}
<select name="configoption[{$configoption.id}]">
{foreach key=num item=option from=$configoption.options}
{if $option.selected}<option value="{$option.id}" selected>{$LANG.upgradenochange}</option>{else}<option value="{$option.id}">{$option.nameonly} {$option.price}{/if}</option>
{/foreach}
</select>
{elseif $configoption.optiontype eq 3}
<input type="checkbox" name="configoption[{$configoption.id}]" value="1"{if $configoption.selectedqty} checked{/if}> {$configoption.options.0.name}
{elseif $configoption.optiontype eq 4}
<input type="text" name="configoption[{$configoption.id}]" value="{$configoption.selectedqty}" size="5"> x {$configoption.options.0.name}
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
<p class="text-center">
<input type="submit" value="{$LANG.ordercontinuebutton}" class="btn btn-primary" />
</p>
</form>
{/if}
Can anyone help me to modify this code, to display the configurable options even if the "Hidden" checkbox is selected?