
Untitled
By: a guest on
Aug 12th, 2012 | syntax:
None | size: 1.06 KB | hits: 7 | expires: Never
paypal doesnt go through ask shipping statement if lower then 30
function askShipping(){
var amount = $("#amount").val();
if(amount == ''){
alert('Please enter Donation amount');
return false;
}
if(amount >= 30){
var ret = shipSuccess();
return false;
}
return false;
}
function shipSuccess(){
$( "#dialog:ui-dialog" ).dialog( "destroy" );
$( "#dialog-success" ).dialog({
height: 260,
modal: true,
buttons: {
"yes": function(){
$( this ).dialog( "close" );
shippingForm();
// document.donationForm.submit();
},
Cancel: function() {
$( this ).dialog( "close" );
document.donationForm.submit();
}
}
});
}
function askShipping () {
if ($("#amount").val() == '') {
alert('Please enter Donation amount');
} else if (amount >= 30) {
shipSuccess();
} else {
document.donationForm.submit();
}
return false;
}