Clicking confirm order does nothing. My code sends form information (card exp. month,year) to paypals secure server for payment. Here is my code for the button:
Code: Select all
<div class="buttons">
<table>
<tr>
<td align="right"><a onclick="confirmSubmit();" class="button"><span><?php echo $button_confirm; ?></span></a></td>
</tr>
</table>
</div>
<script type="text/javascript"><!--
function confirmSubmit() {
var cardExMonth = $('#cardExMonth').attr("value");
var cardExYear = $('#cardExYear').attr("value");
cardExConcat = cardExMonth + cardExYear;
$('#cardEXP').val(cardExConcat);
$('#checkout').submit();
}
//--></script>
Just add the product and do a guest checkout to test and the button doesnt respond. It should go to paypal secure server for final payment.
Thanks in advance,
Christian
EDIT: This is in the .tpl file at catalog/view/theme/default/template/payment