Strict Standards: Non-static method Foxee_utils::get_action_id() should not be called statically, assuming $this from incompatible context in /home/felanet/public_html/knittingfactoryrecords/cms/modules/foxee/mod.foxee.php on line 2964 Warning: Cannot modify header information - headers already sent by (output started at /home/felanet/public_html/knittingfactoryrecords/cms/modules/foxee/mod.foxee.php:2964) in /home/felanet/public_html/knittingfactoryrecords/cms/modules/foxee/mod.foxee.php on line 2985 Warning: Cannot modify header information - headers already sent by (output started at /home/felanet/public_html/knittingfactoryrecords/cms/modules/foxee/mod.foxee.php:2964) in /home/felanet/public_html/knittingfactoryrecords/cms/modules/foxee/mod.foxee.php on line 2986 Warning: Cannot modify header information - headers already sent by (output started at /home/felanet/public_html/knittingfactoryrecords/cms/modules/foxee/mod.foxee.php:2964) in /home/felanet/public_html/knittingfactoryrecords/cms/modules/foxee/mod.foxee.php on line 2987 getProductsInCart = function() { var product = jQuery(".foxee_products:first").clone(true); jQuery("div#foxee_products_container").empty(); if(typeof fc_json != 'undefined' && fc_json.products.length > 0) { jQuery.each(fc_json.products, function() { fe_prod = this, new_options = null; jQuery.each(fe_json.field_map, function(fe_key) { val = ''; if( typeof fe_prod[this] != 'undefined' ) val = fe_prod[this]; if( fe_key.match(/price/) ) val = formatPrice(val); if( fe_key.match(/percent/) ) val = formatPercent(val); if( fe_key.match(/weight/)) val = formatFloat(val, null); if( fe_key =='foxee_remove_link' ) { val = jQuery(product).find('a.fe_RemoveProduct'); jQuery(val).attr('id', fe_prod.id); } jQuery(product).find("."+fe_key).text(val); }); var option_count = 0; jQuery.each(fe_prod.options, function(index) { option = jQuery(product).find('.foxee_product_options:eq(0)').clone(true); jQuery('.foxee_option_name', option).text(index.toString()); jQuery('.foxee_option_value', option).text(this.toString()); if(new_options == null) { new_options = jQuery('
').append(option.clone(true)); } else { jQuery(new_options).append(option); } ++option_count; }); if(option_count == 0) { jQuery(product).find('.foxee_product_options:gt(0)').remove(); jQuery(product).find('.foxee_product_options').css({'display': 'none'}); } else { jQuery(product).find('.foxee_product_options').replaceWith(jQuery(new_options).find('.foxee_product_options')); jQuery(product).find('.foxee_product_options').css({'display': 'block'}); } jQuery("div#foxee_products_container").append(product); product = jQuery(product).clone(true); }); jQuery("div#foxee_products_container").show(); } else { jQuery("div#foxee_products_container").append(product); jQuery("div#foxee_products_container").hide(); } } formatFloat = function(amount, type) { var i = parseFloat(amount); if(isNaN(i)) { i = 0.00; } var minus = ""; if(i < 0) { minus = "-"; } i = Math.abs(i); i = parseInt((i + .005) * 100); i = i / 100; s = new String(i); if(s.indexOf(".") < 0) { s += ".00"; } if(s.indexOf(".") == (s.length - 2)) { s += "0"; } s = minus + s; if( type == 'price' ) { if( fe_json.currency_before == '1' ) s = fe_json.currency_symbol+s; else s = s+fe_json.currency_symbol; } else if( type == 'percent' ) { s = s+'%'; } else { s = parseFloat(s); } return s; } formatPercent = function(val) { return formatFloat(val, 'percent'); } formatPrice = function(val) { return formatFloat(val, 'price'); } fe_UpdateCoupons = function() { if( typeof fc_json == 'undefined' || typeof fc_json.coupons != 'object') return; var coupon = jQuery('div.foxee_coupons:first').clone(true); jQuery("div#foxee_coupons_container").empty(); if(jQuery(fc_json.coupons).length > 0 ) { jQuery.each(fc_json.coupons, function(cp, val) { jQuery(coupon).find(".foxee_coupon").text(cp.toString()+': '+formatPrice(val)); }); jQuery("div#foxee_coupons_container").append(coupon); jQuery("div#foxee_coupons_container").show(); coupon = jQuery(coupon).clone(true); } else { jQuery("div#foxee_coupons_container").append(coupon); jQuery("div#foxee_coupons_container").hide(); } } fe_UpdateCart = function() { if( typeof fe_json == 'undefined' ) return; getProductsInCart(); jQuery.each(fe_json.field_map, function(fe_key) { val = ''; if( typeof fc_json != 'undefined' && typeof fc_json[this] != 'undefined' ) val = fc_json[this]; if( fe_key == 'foxee_coupons' ) fe_UpdateCoupons(); if( typeof val == 'object' ) return; if( fe_key.match(/price/) ) val = formatPrice(val); if( fe_key.match(/percent/) ) val = formatPercent(val); if( fe_key.match(/weight/)) val = formatFloat(val, null); jQuery("div#foxee_cart_container #"+fe_key).text(val); }); var hide_cart = jQuery('div#foxee_cart_container').attr('rel'); if( hide_cart && hide_cart.match(/hide_cart\=true/) && fc_json.products.length == 0 ) jQuery("div#foxee_cart_container").hide(); else jQuery("div#foxee_cart_container").show(); jQuery('a.foxycart').unbind('click'); fc_tb_init('a.foxycart'); jQuery('a.fe_RemoveProduct').unbind('click'); jQuery('a.fe_RemoveProduct').bind('click', fe_RemoveProduct); } fe_UpdateRelated = function() { if(typeof fe_related_updates == "undefined") return false; jQuery.each(fe_related_updates, function() { var params = {ACT: fe_AjaxACT, func: 'foxee_relate_updates', fcsid: fc_json.session_id}; jQuery.extend(params, this); if( typeof params.replace == "undefined" ) return; var $replace = jQuery('.'+params.replace); delete params.replace; if( $replace.length == 0 ) return; jQuery.ajax({ url: fe_url, data: params, dataType: 'html', type: 'GET', success: function(data) { $replace.empty(); $replace.append(data); } }); }); } fe_RemoveProduct = function() { var id = jQuery(this).attr('id'); var url = "https://" + FoxyDomain + "/cart.php?cart=update&output=json&callback=fc_FoxyJSON&id="+id+"&quantity=0"+fc_AddSession(); jQuery.getScript(url); return false; } //this is called from fc_PreProcess. fe_DonationProduct = function(id) { var ret = true; jQuery('#'+id+' input[name$="donation_amount"]').each(function(index){ ++index; var field = jQuery(this); var amount = formatFloat(field.val(), null); var number = (index > 1) ? index+':' : ''; var min = jQuery('#'+id+' input[name="x:'+number+'donation_min"]'); min = (min != null) ? formatFloat(min.val(), null) : 0; if( min != 0 && amount < min ) { alert("Donation Amount must be more then "+formatPrice(min)); ret = false; } var max = jQuery('#'+id+' input[name="x:'+number+'donation_max"]'); max = (max != null) ? formatFloat(max.val(), null) : 0; if( max != 0 && amount > max ) { alert("Donation Amount must be less then "+formatPrice(max)); ret = false; } jQuery('#'+id+' input[name="'+number+'price"]').val(amount); }); return ret; } fc_PreProcess = function(data, id) { if(fe_DonationProduct(id) == false) { return false; } data = jQuery('#'+id).serialize(); if(typeof fe_PreProcess != "undefined" && fe_PreProcess(data, id) == false) { return false; } fe_BuildCart(data); return false; } fc_BuildFoxyCart = function() { jQuery.each(fe_update, function(index, value) { if(typeof value == "function") value(); }); if(typeof fe_BuildFoxyCart != "undefined") { fe_BuildFoxyCart(); } } fe_FoxeeJSON = function(json) { fe_json = json; fe_UpdateCart(); } fe_ResizeCheckoutIframe = function(height) { jQuery('iframe.foxycart').css('height', height + 'px'); } fe_BuildCart = function(MyFoxyData) { MyFoxyData += '&h:hash='+fe_AddHash(); // if we want to go directly to the checkout or do a redirect, don't show the foxybox if(MyFoxyData.match("cart=checkout")) { if(typeof fe_checkout_iframe != "undefined" && fe_checkout_iframe != '') { var $insert = jQuery('.'+fe_checkout_iframe); if( $insert.length > 0 ) { $insert.empty().append('