// PIN SHELF LTD. var business_website_url = 'https://propertyinvestorsnetwork.co.uk'; var business_terms_url = 'https://propertyinvestorsnetwork.co.uk/meetings/terms-conditions/'; var business_contact_url = 'https://propertyinvestorsnetwork.co.uk/contact-us/'; var business_registered_number = 'PIN SHELF LTD - Registered Number: 08166332';// Terms and Conditions. jQuery(document).ready(function() { // Terms Confirmation Check. var terms_confirmation = function(p_event) { if(!jQuery("#termsandconditions").is(":checked")) { p_event.preventDefault(); alert("You must agree to the business_terms_url and conditions before placing your order."); return false; } else { return true; } }; var terms_footer = function() { return '
' + '
' + 'Card details are entered on a secure page and they are transferred using SSL' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + '

' + 'Terms and Conditions' + '

' + '
' + business_registered_number + '
' + 'Trading Address: 54 Hagley Road, Birmingham, B16 8PE
' + 'Tel: +44 (0)121 228 2223 / Enquiries: Contact Us Here
' + '' + business_website_url + '' + '
' + '
' + '
'; }; // Check if there is a Spiffy Styling on the Current Form. if(jQuery("#PAYMENT_SELECTION").length && jQuery('#spiffyCustomStyles').length) { // Add the Footer. jQuery('#customFooter').prepend(terms_footer()); // Spiffy could have Terms and Conditions, so if one is missing, we add it in. if(jQuery('#spiffy_gdpr_terms').length === 0) { jQuery("#PAYMENT_SELECTION").before( '
' + '' + '' + '' + '' + '' + '' + '' + '
Terms and Conditions
' + ' ' + '' + '
' + '
' ); jQuery("a.continueButton:first").click(function(event) { // We need to prevent the Default Click otherwise it will trigger repeated Field Warnings. event.preventDefault(); var result = terms_confirmation(event); if(result) { new Function(jQuery(this).prop('href').replace(/javascript:/g, ''))(); } return result; }); } return; } // Current Order Forms. if(jQuery("#PAYMENT_SELECTION").length) { jQuery("#PAYMENT_SELECTION").before( '
' + '' + '' + '' + '' + '' + '' + '' + '
Terms and Conditions
' + ' ' + '' + '
' + '
' ); jQuery('#customFooter').prepend(terms_footer()); jQuery("a.continueButton:first").click(function(event) { // We need to prevent the Default Click otherwise it will trigger repeated Field Warnings. event.preventDefault(); var result = terms_confirmation(event); if(result) { new Function(jQuery(this).prop('href').replace(/javascript:/g, ''))(); } return result; }); return; } // Legacy Order Form (2). if(jQuery('td.sale-header:contains("Total Amount You Pay Right Now")').length) { jQuery('td.sale-header:contains("Total Amount You Pay Right Now")').parent().before( '' + 'Terms and Conditions' + '' + '' + '' + ' ' + '' + '' + '' + '' + '' + '' ); jQuery('div#branding').prepend(terms_footer()); // Hide the original Order Button. jQuery('#Order').hide(); // Add in a replacement button. jQuery('#Order').before(''); //jQuery("#Order").click(function(event){ jQuery('#orderForm').submit(function(event) { return terms_confirmation(event); }); return; } // Legacy Order Form (1). if(jQuery('td.sale-header:contains("Process")').length) { jQuery('td.sale-header:contains("Process")').parent().before( '' + 'Terms and Conditions' + '' + '' + '' + ' ' + '' + '' + '' + '' + '' + '' ); // Add the Footer. jQuery('div#branding').prepend(terms_footer()); // Hide the original Order Button. jQuery('#Order').hide(); // Add in a replacement button. jQuery('#Order').before(''); //jQuery("#Order").click(function(event){ jQuery('#orderForm').submit(function(event) { return terms_confirmation(event); }); return; } // Legacy Shopping Cart. if(jQuery('td.h2:contains("Payment Information")').length) { jQuery('td.h2:contains("Payment Information")').closest('tr').parent().closest('tr').before( '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '
Terms and Conditions
' + '' + '' + '
' + '' + '' + '' + ' ' + '' ); jQuery('div#branding').prepend(terms_footer()); jQuery('img#checkout').click(function(event) { return terms_confirmation(event); }); return; } });