//Written by NovakSolutions
//https://novaksolutions.com
//2017-05-23
jQuery(document).ready(function(){
// jQuery('.checkoutLinksTop, .checkoutLinksBottom').parent().prepend('
Click Checkout to get an estimate
');
if (jQuery('.billMailTo').length > 0){
jQuery('#FULL_PRODUCT_SUMMARY').find('h1').html('Estimate Summary');
jQuery('#placeOrderButton').html('View Estimate');
}
jQuery('.continueButton').on('click', function(){
setTimeout(changeCheckToEstimate, 750);
});
function changeCheckToEstimate(){
jQuery('#paybycheck').closest('td').find('span').html('Get an Estimate').closest('td').find('.paymentIcon').hide();
jQuery('#paybycheck, #creditCardType').on('click', function(){
if (jQuery('#paybycheck').is(':checked')){
jQuery('#reviewOrderButton').html('Review Estimate');
} else {
jQuery('#reviewOrderButton').html('Review Order');
}
});
}
changeCheckToEstimate();
});