1 2jQuery(document).ready(function(){ 3 4 jQuery( "#custom_price_field" ).focusout(function() { 5 var custom_price_value = jQuery(this).val().replace(',', '.'); 6 custom_price_value = parseFloat(custom_price_value) 7 if (isNaN(custom_price_value)){ 8 } 9 else { 10 var return_value = elex_cpp_check_constraint(custom_price_value, parseInt(jQuery(this).attr('min'))); 11 if ( return_value[0] ){ 12 jQuery(".price ins span ").html('â¹' + custom_price_value.toFixed(2)) 13 } 14 } 15 }); 16}); 17 18function elex_cpp_check_constraint(custom_price_value, min_price_value) { 19 if (typeof(custom_price_value) === "number"){ 20 return [true, ""]; 21 } 22 else{ 23 return [false, ""] 24 } 25} 26 27jQuery(document).ready(function(){ 28 jQuery("#custom_price_field").hover(function() { 29 jQuery(this).css('cursor','pointer').attr('title', 'Enter price for the current product which needs to be greater than default value.'); 30 }, function() { 31 jQuery(this).css('cursor','auto'); 32 }); 33}) 34 35 36jQuery(document).ready(function(){ 37 jQuery("#wcdpo_settings[custom_value]").hover(function() { 38 jQuery(this).css('cursor','pointer').attr('title', 'Enter the minimum price Which is to be set.'); 39 }, function() { 40 jQuery(this).css('cursor','auto'); 41 }); 42}) 43 44 45jQuery(document).ready(function() { 46 jQuery('#elex_cpp_settings_enable_min_product_price').hover(function() { 47 jQuery(this).css('cursor','pointer').attr('title', 'Click to enable product min price.'); 48 }, function() { 49 jQuery(this).css('cursor','auto'); 50 }); 51}) 52 53 54jQuery(document).ready(function() { 55 jQuery('#elex_cpp_settings_tab_min_product_price').hover(function() { 56 jQuery(this).css('cursor','pointer').attr('title', 'Set the minimum price which the customer can proceed with payment.'); 57 }, function() { 58 jQuery(this).css('cursor','auto'); 59 }); 60}) 61 62 63 64 65 66 67 68
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.