Woodenspasolutions news

Woodenspasolutions news

Wooden Spa Solutions Announces the Launch of New Website

Wooden Spa Solutions Announces the Launch of New Company Website
Market Harborough, Leicestershire – United Kingdom – 5 October 2014 – Wooden Spa Solutions, an established leader in Health Spas and Outdoor Recreation, today announced the launch of a new website to provide customers with a vivid display of their spa and grilling products. The website […]

By |October 7th, 2014|Categories: Woodenspasolutions news||0 Comments
jQuery(document).ready(function($) { console.log('swx'); // Whenever a .wapf-input is selected (or deselected), calculate the total $('.wapf-input').on('change', function() { console.log('change'); // Step 1: Sum selected .wapf-input values with data-wapf-price="300" var sumSelected = 0; $('.wapf-input:checked').each(function() { if($(this).data('wapf-price') === "300") { sumSelected += parseFloat($(this).data('wapf-price')); } }); // Step 2: Get the value from the specified span and remove non-numeric characters var priceSpanValue = $('.woocommerce-Price-amount.amount').text(); var numericValue = parseFloat(priceSpanValue.replace(/[^\d.-]/g, '')); // Step 3: Calculate the total and display it (or use it as needed) var total = sumSelected + numericValue; console.log("Total: £" + total); // You might want to display this total somewhere on the page // $('#someElement').text("Total: £" + total); }); });