i try to convert twig to tpl be able to use 3,0,0 payment extension in 2,3,0. using a convertor, convert most of it. compare the files and folders, they are same.
in converted tpl i have 2, 3 lines more which aren't converted.
twig lines
Code: Select all
<select name="payment_special_mode" class="form-control">
<option value="1" {{ payment_special_mode? 'selected' : '' }}>{{ text_enabled }}</option>
<option value="0" {{ payment_special_mode? '' : 'selected' }}>{{ text_disabled }}</option>
</select>
Code: Select all
<select name="payment_special_mode" class="form-control">
<?php if ($payment_special_mode) { ?>
<option value="1" selected="selected"><?php echo $text_enabled; ?></option>
<option value="0"><?php echo $text_disabled; ?></option>
<?php } else { ?>
<option value="1"><?php echo $text_enabled; ?></option>
<option value="0" selected="selected"><?php echo $text_disabled; ?></option>
<?php } ?>
</select>