• Home
  • a1 wc 12 to 24 standard 2.0
  • a2 HM 26 to 30 ft Pre-Cert.
  • a3 HM Standard 12 to 24 Wide
  • a4 HM Pre Certified 12-24
  • a7 wc 12 to 24 standard
  • a8 WC 12-24 no pitch change
  • Contact Confirmation
  • golf
  • Home
  • Pre Cert 12 to 24 0ct 12
  • WC TEST WORKS endwalls wrong 12-24
  • WC Triple
  • Uncategorized
Skyliner Buildings

Thank You For Contacting Us!

We will get a hold of you as soon as possible

Serving Oregon and Washington

(541) 419-3203

hello@divicoffeeshop.com

  • Follow
  • Follow
  • Follow
document.addEventListener('DOMContentLoaded', function() { document.getElementById('wpforms-submit').addEventListener('click', function(event) { event.preventDefault(); // Prevents the default form submission to update the hidden fields first // Assuming 'calculateTotalPrice' updates 'totalPrice' and relevant option prices correctly calculateTotalPrice(); // Your existing function to calculate prices // Update WPForms hidden input fields with calculated prices document.querySelector("[name='frame_size_price']").value = selectedOptions["14 Gauge Vertical Roof Frame"]?.price || 0; document.querySelector("[name='sidewalls_price']").value = selectedOptions["Carport Sidewalls"]?.price || 0; document.querySelector("[name='endwalls_price']").value = selectedOptions["Endwalls"]?.price || 0; document.querySelector("[name='height_of_frame_price']").value = selectedOptions["Height of Frame"]?.price || 0; let extrasTotal = selectedOptions["Extras"]?.reduce((acc, curr) => acc + curr.price, 0) || 0; document.querySelector("[name='extras_price']").value = extrasTotal; // Finally, submit the form. Replace 'YOUR_WPFORMS_FORM_SELECTOR' with the actual form selector document.querySelector('#YOUR_WPFORMS_FORM_SELECTOR').submit(); // This might be something like '#wpforms-form-434' }); });