cart, FALSE,$uri);
// This displays the form to change the current shopper
if ($this->allowChangeShopper and !$this->isPdf){
echo $this->loadTemplate ('shopperform');
}
$taskRoute = '';
?>
';
if(name=='confirm'){
jQuery('#checkoutForm').attr('action','".$orderDoneLink."');
}
jQuery('#checkoutForm').append(div);
//Virtuemart.updForm();
jQuery('#checkoutForm').submit();
}
jQuery(document).ready(function($) {
jQuery(this).vm2front('stopVmLoading');
var el = jQuery('#checkoutFormSubmit');
el.unbind('click dblclick');
el.on('click dblclick',Virtuemart.bCheckoutButton);
});
");
if( !VmConfig::get('oncheckout_ajax',false)) {
vmJsApi::addJScript('vm.STisBT',"
jQuery(document).ready(function($) {
if ( $('#STsameAsBTjs').is(':checked') ) {
$('#output-shipto-display').hide();
} else {
$('#output-shipto-display').show();
}
$('#STsameAsBTjs').click(function(event) {
if($(this).is(':checked')){
$('#STsameAsBT').val('1') ;
$('#output-shipto-display').hide();
} else {
$('#STsameAsBT').val('0') ;
$('#output-shipto-display').show();
}
var form = jQuery('#checkoutFormSubmit');
form.submit();
});
});
");
}
$this->addCheckRequiredJs();
?>