M5 Fuel - Makes More Power Than Standard Methanol | VP Racing Fuels (2024)

$68.00$593.00

'); } } // if ends //-------------------------------------------------- if(backorders_allowed > 0 && c_qty > stock){ var backorder_qty = c_qty - stock; // 20 - 5 ship_now_qty = c_qty - backorder_qty; // 20 - 15 var backorder_msg = (ship_now_qty > 0) ? ship_now_qty + " will ship now
" + backorder_qty + " on backorder and will ship 1-2 weeks" : backorder_qty+ " on backorder and will ship 1-2 weeks"; var backorder_msg_html = '' + backorder_msg + ''; jQuery('#qty_msg').append(backorder_msg_html); } } // ends //---------------------------------------- function manage_product_price_qty_vp() { // empty errors jQuery('#error_msg').empty(); jQuery('#qty_msg').empty(); jQuery('#vp_product_sku').text(''); // getting vars var var_id = parseInt(jQuery('#variation_id').val()); //console.log('var_id: ' + var_id); var_id = (var_id > 0) ? var_id : 0; if(typeof var_id === 'undefined' || var_id == 0) { jQuery('.quantity input.qty').val(1); return false; } // getting stock var stock = parseInt(product_var_total_stock[var_id]); stock = (stock > 0) ? stock : 0; console.log('stock: ' + stock); var backorders_allowed = parseInt(product_var_backorders_allowed[var_id]); // for backorder backorders_allowed = (backorders_allowed > 0) ? backorders_allowed : 0; console.log('backorders_allowed: ' + backorders_allowed); var hide_add_to_cart_btn = parseInt(product_var_add_to_cart[var_id]); // for add to cart hidden button hide_add_to_cart_btn = (hide_add_to_cart_btn > 0) ? hide_add_to_cart_btn : 0; //console.log('hide_add_to_cart_btn: ' + hide_add_to_cart_btn); // getting quantity var c_qty = parseInt(jQuery('.quantity input.qty').val()); console.log('c_qty: ' + c_qty); c_qty = (c_qty > 0) ? c_qty : 1; // getting price var display_price = product_var_display_price[var_id]; var display_regular_price = product_var_display_regular_price[var_id]; var price_html = product_var_price_html[var_id]; //console.log(price_html); //-------------------------------------------------- // setting up sku //-------------------------------------------------- if( product_var_sku[var_id] != '' ) { jQuery('#vp_product_sku').text('SKU: ' + product_var_sku[var_id]); } else { jQuery('#vp_product_sku').text(''); } //-------------------------------------------------- // for backorders //-------------------------------------------------- if( backorders_allowed > 0 && c_qty > stock ){ var backorder_qty = c_qty - stock; // 20 - 5 ship_now_qty = c_qty - backorder_qty; // 20 - 15 var backorder_msg = (ship_now_qty > 0) ? ship_now_qty + " will ship now
" + backorder_qty + " on backorder and will ship 1-2 weeks" : backorder_qty+ " on backorder and will ship 1-2 weeks"; var backorder_msg_html = '' + backorder_msg + ''; jQuery('#qty_msg').append(backorder_msg_html); } //-------------------------------------------------- // for less stock msg //-------------------------------------------------- if( backorders_allowed == 0 && stock < 10 && stock > 0 ) { //console.log('check 2'); jQuery('#qty_msg').html('

Only '+stock+' left in Stock!

'); } // if ends //-------------------------------------------------- // setting up qty //-------------------------------------------------- if( backorders_allowed == 0 && c_qty >= stock ) { var new_stock = (stock > 0) ? stock : 1; jQuery('.quantity input[name="quantity"].qty').val(new_stock); jQuery('#error_msg').html('

You are trying to exceed the quantity available to purchase at this time.

'); } else if( backorders_allowed == 0 && c_qty >= stock && hide_add_to_cart_btn == 1 ) { var new_stock = (stock > 0) ? stock : 1; jQuery('.quantity input[name="quantity"].qty').val(new_stock); jQuery('#error_msg').html('

You are trying to exceed the quantity available to purchase at this time.

'); } // manage price by qty if ( c_qty > 0 && hide_add_to_cart_btn == 0) { if(typeof price_html !== "undefined"){ // setting html // getting html var regex = /[+-]?\d+(\.\d+)?/g; var price_arr = price_html.match(regex).map(function(v) { return parseFloat(v); }); var ins_price, del_price; var c_qty = jQuery('.quantity input.qty').val(); if(price_arr.length <= 2){ ins_price = (price_arr[1]) ? parseFloat(price_arr[1] * c_qty) : parseFloat(price_arr[0] * c_qty); ins_price = ins_price.toFixed(2); ins_price = ins_price.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); price_html = ''+currency_symbol+''+ins_price+''; } else if(price_arr.length <= 4) { del_price = (price_arr[1]) ? parseFloat(price_arr[1] * c_qty) : parseFloat(price_arr[0] * c_qty); del_price = del_price.toFixed(2); del_price = del_price.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); ins_price = (price_arr[3]) ? parseFloat(price_arr[3] * c_qty) : parseFloat(price_arr[2] * c_qty); ins_price = ins_price.toFixed(2); ins_price = ins_price.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); price_html = '' + ''+currency_symbol+''+del_price+'' + '' + '' + ''; } jQuery('.woocommerce-variation-price').html(price_html); } else if (typeof display_price !== "undefined" && typeof display_regular_price !== "undefined"){ //console.log('price: ' + price); var sales_price = (display_price != display_regular_price) ? parseFloat(display_price * c_qty) : 0; sales_price = (sales_price > 0) ? sales_price.toFixed(2) : 0; var display_regular_price = parseFloat(display_regular_price * c_qty); var display_regular_price = display_regular_price.toFixed(2); //console.log(display_regular_price); if(sales_price == 0){ jQuery('.price .woocommerce-Price-amount') .html('

$'+display_regular_price.replace(/\B(?=(\d{3})+(?!\d))/g, ",")+'

'); } else { jQuery('.price del .woocommerce-Price-amount') .html('

$'+display_regular_price.replace(/\B(?=(\d{3})+(?!\d))/g, ",")+'

'); jQuery('.price ins .woocommerce-Price-amount') .html('

$'+sales_price.replace(/\B(?=(\d{3})+(?!\d))/g, ",")+'

'); } } // if ends } // if ends } // ends //---------------------------------------- jQuery(function($){ // making read only qty field and put price error msg div jQuery('.quantity input.qty').prop('readonly', true); // make qty input readyonly jQuery('.quantity input.qty').val('1'); // set default quantity jQuery('.product .summary .product_title').after('


'); // add error div html // checking low stock on page load setTimeout(function(){ manage_product_price_qty_vp(); }, 2000); // checking low stock on select box change jQuery('body').on('change', 'table.variations select', function() { jQuery('.quantity input.qty').val('1'); // set default quantity manage_product_price_qty_vp(); }); // updating price on qty change jQuery('body').on('change', '[name=quantity]', function() { manage_product_price_qty_vp(); }); });

SKU: N/ACategories: Racing Fuels, Circle Track, Drag Racing

  • Download Spec Sheet

View Fuel Table

M5 Fuel - Makes More Power Than Standard Methanol | VP Racing Fuels (2024)
Top Articles
Latest Posts
Article information

Author: Nathanial Hackett

Last Updated:

Views: 5663

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Nathanial Hackett

Birthday: 1997-10-09

Address: Apt. 935 264 Abshire Canyon, South Nerissachester, NM 01800

Phone: +9752624861224

Job: Forward Technology Assistant

Hobby: Listening to music, Shopping, Vacation, Baton twirling, Flower arranging, Blacksmithing, Do it yourself

Introduction: My name is Nathanial Hackett, I am a lovely, curious, smiling, lively, thoughtful, courageous, lively person who loves writing and wants to share my knowledge and understanding with you.