As you can see from the attached screenshots it is possible that when one is entitled to a coupon based on the points it is already pre-selected?
thanks a lot
stefano
<?php if ( count( $this->points->payout_coupon ) == 1 && isset( $this->points->payout_coupon['all'] ) ) { ?>
<input type="button" class="btn btn-success" value="<?php echo JText::_('COM_AWOREWARDS_REQUEST_COUPON_PAYMENT'); ?>" onclick="payout()" />
<input type="hidden" name="payout_coupon" value="all" />
<?php } else { ?>
<?php } elseif ( count( $this->points->payout_coupon ) == 1 ) { $row = current( $this->points->payout_coupon );?>
<input type="button" class="btn btn-success" value="<?php echo $row->description; ?>" onclick="payout()" />
<input type="hidden" name="payout_coupon" value="<?php echo $row->id; ?>" />
<?php } else { ?>