Gravity Forms: WooCommerce Cart Capture
Automatically capture the contents of a users cart when they submit a gravity form. To use Set gravity form to pre-populate a field. Set the key as woocommerce_cart. The cart contents at the time of submission will automatically be captured.
★ 21stars
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/lucasstark/gravityforms-woocommerce-cart-capture/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Automatically capture the contents of a users cart when they submit a gravity form.
To use
- Add a hidden field to your form.
- On the advanced tab of the field editor select "Allow field to be populated dynamically".
- Set the fields "Parameter Name" to be woocommerce_cart
The plugin will automatically look for any field with that parameter set and fill in the cart details for you.