GEOIP_CONTINENT_CODE not set!
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w014e551/wpfilebase.com/w3tc_pgcache_tweaks.php:13) in /www/htdocs/w014e551/wpfilebase.com/wp-content/plugins/ebook-seller/classes/Core.php on line 337
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w014e551/wpfilebase.com/w3tc_pgcache_tweaks.php:13) in /www/htdocs/w014e551/wpfilebase.com/wp-content/plugins/ebook-seller/classes/Core.php on line 338
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w014e551/wpfilebase.com/w3tc_pgcache_tweaks.php:13) in /www/htdocs/w014e551/wpfilebase.com/wp-content/plugins/ebook-seller/classes/Core.php on line 339
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w014e551/wpfilebase.com/w3tc_pgcache_tweaks.php:13) in /www/htdocs/w014e551/wpfilebase.com/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 371
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w014e551/wpfilebase.com/w3tc_pgcache_tweaks.php:13) in /www/htdocs/w014e551/wpfilebase.com/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 371
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w014e551/wpfilebase.com/w3tc_pgcache_tweaks.php:13) in /www/htdocs/w014e551/wpfilebase.com/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 371
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w014e551/wpfilebase.com/w3tc_pgcache_tweaks.php:13) in /www/htdocs/w014e551/wpfilebase.com/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 371
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w014e551/wpfilebase.com/w3tc_pgcache_tweaks.php:13) in /www/htdocs/w014e551/wpfilebase.com/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 371
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w014e551/wpfilebase.com/w3tc_pgcache_tweaks.php:13) in /www/htdocs/w014e551/wpfilebase.com/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 371
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w014e551/wpfilebase.com/w3tc_pgcache_tweaks.php:13) in /www/htdocs/w014e551/wpfilebase.com/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 371
jQuery(document).ready(function($){var params=aelia_eu_vat_assistant_params;var tax_based_on=params.tax_based_on;var vat_country='';var $self_certification_element=$('#woocommerce_location_self_certification');var $eu_vat_element;var $eu_vat_field;var last_vat_number='';var get_vat_country=function(){if((tax_based_on=='shipping')&&$('#ship-to-different-address input').is(':checked')){var country_field_selector='#shipping_country';}
else{var country_field_selector='#billing_country';}
return $(country_field_selector).val();}
var sufficient_location_evidence=function(){var country_count={};country_count[$('#billing_country').val()]=++country_count[$('#billing_country').val()]||1;if(params.use_shipping_as_evidence&&(params.use_shipping_as_evidence!=0)){if($('#ship-to-different-address-checkbox').is(':checked')&&($('#shipping_country').length>0)){country_count[$('#shipping_country').val()]=++country_count[$('#shipping_country').val()]||1;}}
country_count[params.ip_address_country]=++country_count[params.ip_address_country]||1;for(var country_id in country_count){if((country_id!='')&&(country_count[country_id]>=2)){return true;}}
return false;}
var update_self_certification_element=function(){var show_element=true;if(($eu_vat_field)&&$eu_vat_field.prop('valid')&&(params.hide_self_cert_field_with_valid_vat==1)){show_element=false;}
else{switch(params.show_self_cert_field){case'yes':show_element=true;break;case'conflict-only':show_element=!sufficient_location_evidence();break;}}
var self_cert_label=params.user_interface.self_certification_field_title;$self_certification_element.find('.self_certification_label').html(self_cert_label.replace('{billing_country}',$('#billing_country option:selected').text()));if(show_element){$self_certification_element.fadeIn();}
else{$self_certification_element.fadeOut();}}
var hide_vat_number_field=function(){return!params.show_eu_vat_number_for_base_country&&(vat_country==params.shop_base_country);}
var validate_vat_number=function(){var vat_number=$eu_vat_field.val();if((vat_country+vat_number)==last_vat_number){return;}
if((vat_country=='')||(vat_number=='')){return;}
last_vat_number=vat_country+vat_number;var ajax_args={'action':'validate_eu_vat_number','country':vat_country,'vat_number':vat_number};$.get(params.ajax_url,ajax_args,function(response){$eu_vat_field.prop('valid',response.valid);update_self_certification_element();});}
var is_vat_number_required=function(vat_country){var vat_country_is_in_eu=($.inArray(vat_country,params.eu_vat_countries)>=0);var company_field_filled=($('form #billing_company').val().trim()!='');if(hide_vat_number_field()){return false;}
var result=(params.eu_vat_field_required=='required')||((params.eu_vat_field_required=='required_for_eu_only')&&vat_country_is_in_eu)||((params.eu_vat_field_required=='required_if_company_field_filled')&&company_field_filled)||((params.eu_vat_field_required=='required_if_company_field_filled_eu_only')&&company_field_filled&&vat_country_is_in_eu);return result;}
var set_eu_vat_field_handlers=function(){var eu_vat_countries=params.eu_vat_countries;switch(tax_based_on){case'billing':var event_selector='select#billing_country';break;case'shipping':var event_selector='select#billing_country, select#shipping_country, input#ship-to-different-address-checkbox';break;default:var event_selector='select#billing_country';}
event_selector=event_selector+', #billing_company';$('form.checkout, #order_review').on('change',event_selector,function(){var previous_vat_country=vat_country;vat_country=get_vat_country();if($eu_vat_element.length>0){var vat_field_required=is_vat_number_required(vat_country);if(vat_country&&(($.inArray(vat_country,params.eu_vat_countries)>=0)&&!hide_vat_number_field())||vat_field_required){$eu_vat_element.fadeIn();}
else{$eu_vat_element.fadeOut(function(){$eu_vat_field.val('');});}
if($eu_vat_element.is(':visible')&&vat_field_required){$eu_vat_element.find('.form-row').addClass('validate-required');}
else{$eu_vat_element.find('.form-row').removeClass('validate-required');}
validate_vat_number();}
if($self_certification_element.length>0){update_self_certification_element();}});if($eu_vat_element.length>0){$eu_vat_field.on('blur',function(){validate_vat_number();});}}
if($('.woocommerce form.checkout').length>0){$eu_vat_element=$('#woocommerce_eu_vat_number');if($eu_vat_element.length>0){$eu_vat_field=$eu_vat_element.find('#vat_number');}
set_eu_vat_field_handlers();$('select#billing_country').change();}});