Use jQuery to update WooCommerce product quantity based on GravityForms selection

I'm using the WooCommerce Gravity Forms plugin to integrate the flexibility of GravityForms with my product pages.

For reasons too lengthy to get into here (please just trust me that it's necessary), I'm using WooCommerce product variations on a product while also using a hidden GravityForms product with the same price. This is exemplified in the attached screenshots.

By doing this, I can use WooCommerce's inventory management and yet still use GravityForms' flexibility, particularly with being able to make the 'quantity' field something more human like 'How many people are you booking?' (Since each product is a stay at a hospitality business.)

And now finally to my main point. The issue is that if I have a (GF) quantity of 2, the price is correct since the hidden GF product is the same price as the WC product page that it's on, but when the order is submitted, it would only deduct a quantity of 1 from the WC product (since the WC quantity field isn't being used).

So! All I need to do is update the WC quantity field with the numeric value of the GF quantity. I believe that can fairly easily be done using jQuery, but I have no experience with it and to be honest, I think it'd be easier to simply pay someone who does. If that's you, I look forward to working with you :-)

Oops, almost forgot those screenshots! WC product data is highlighted in purple, and GF product data is highlighted in green. It's especially clear on the second screenshot that the WC product has a quantity of 1 (the WC product price is set to $0) and the GF product quantity is set to 2. So even though the total is correct, the WC product inventory isn't being synced properly with the hidden GF product. Hopefully that makes sense, but I welcome any questions you may have.

Skills: jQuery / Prototype, PHP, WooCommerce, WordPress

See more: pay me to do something, how to get into management, update quantity product cart page opencart, virtuemart shipping based quantity product type, quantity product substraction php, oscommerce quantity product list, oscommerce product price update, quantity product attributes mod, quantity product attributes mod easy populate, data entry product catalog update job description, oscommerce add quantity product, install quantity product attributes mod oscommerce

About the Employer:
( 23 reviews ) Lagrange, United States

Project ID: #10778037

Awarded to:


Hello, I can finish this task in the next hours, i'm expert on woocommerce + jquery, please contact me to give all details, Regards, CHERIF, R

$55 USD in 1 day
(55 Reviews)

5 freelancers are bidding on average $75 for this job


Hi there - My name is Yogesh. I’ve read your brief..My team has 4 years experience designing and developing mobile apps and Websites.I would approach your project by starting with wireframes and getting the site comple More

$69 USD in 10 days
(185 Reviews)

Hi, I can start work on your project immediately once you confirm me and i am also open for further discussion if you want. I have 5+ years in web designing & development with good experience in following skills More

$100 USD in 1 day
(56 Reviews)

I'm expert wordpress plugin developer.

$66 USD in 10 days
(20 Reviews)

Greetings I am very glad to present our efficiency as per your requirement. I have made 200+ website using Magento / Woo Commerce. Please check some of my past work: [login to view URL] [login to view URL] More

$86 USD in 10 days
(24 Reviews)