jQuery(function($){ $('[id*="price-item-click"]').click(function() { var selector = $(this).attr('id').replace('-item-click', ''); var $price = $('#' + selector); var sum = 0; $price.toggle(); $price.toggleClass('price-active'); $(this).toggleClass('price-item-active'); $('.price-active').each(function(){ sum += parseFloat($(this).text().replace(/\D/g,'')); }); if (sum > 0){ $("#total-price-cal").show(); $("#total-price-cal").text("$" + sum + "k"); } else { $("#total-price-cal").hide(); } }); });

Get a full-featured online store with fast, simple setup.

  • 1 website
  • Unlimited storage
  • Unlimited visits per month
  • Website backup protection with 1-click restore
  • Automatic daily malware scans
  • SEO optimizer
  • SSL certificate
  • 1-click testing site
  • Unlimited malware removal and hack repair
  • Automatic installation of WooCommerce
  • No transaction fees
  • Unlimited products
  • Bookings and appointment scheduling
  • Real-time shipping rates
  • Free Premium WooCommerce Storefront design themes
  • Free access to over $1,500 of WooCommerce addon extensions
$29.99 / per month