Gravity Forms Cart Add-On

Gravity Forms Cart Add-On turns product forms into a WordPress store with one checkout form. Shoppers fill a persistent cart, use a slide-out drawer, and apply coupons. Notifications and feeds wait until the order is paid.

Description

Who This Is Built For

The Gravity Forms Cart Add-On lets a shopper fill a persistent cart from several different product forms and pay for all of it through a single checkout form. If you already build with Gravity Forms and want to sell more than one thing per order without installing a full store framework, this is the piece that was missing.

Consider a caterer who publishes a form for sandwich platters, another for desserts, and a third for drink service. Each form has its own Product field, its own Option fields, its own quantities. A customer orders from all three, and one payment covers the lot. Or a workshop organizer who sells event tickets on one page and merchandise on another. Or a small studio offering design packages, add-on revisions, and printed proofs as separate forms. Anyone who has built order forms in Gravity Forms and watched customers pay three times for one basket of goods will see the problem this solves.

It also suits agencies that deliver custom order systems for clients. You keep full control of field design, conditional logic, and styling, and the client gets a cart that behaves the way shoppers expect. Because the add-on is GPL-licensed, you can use it across client projects without wrestling with per-site restrictions on the code.

What Gravity Forms Cart Add-On Does

The idea is simple. Every form on your site gets a role. A product form adds its submission to a cart instead of ending the transaction. The checkout form collects payment for everything in that cart. You assign the role per form under Form Settings → Cart, so nothing about your existing forms changes until you decide it should.

When a shopper submits a product form, the submission is stored as a tagged entry on that form. The confirmation then offers three choices: Checkout, View cart, and Add another. Shoppers who want one more item go back and add it. Shoppers who are done head to checkout. A header icon displays the item count, and a slide-out drawer, which you can anchor to the right or left edge, lists what is in the cart without sending anyone off the page they were reading.

The checkout form is an ordinary Gravity Forms form with two special fields: a Cart Summary field that lists every line, and a Total field. Add the customer fields you need plus the field your payment add-on requires, then create a payment feed and set Payment Amount to Form Total. The gateway receives every line from the cart, not just a single product. Place the checkout form on a page, enter that page’s address under Forms → Settings → Cart, and the drawer, mini-cart, and add-to-cart confirmation all point shoppers there.

Carts that remember people

Guest carts live in a cookie and stay with the shopper for the number of days you choose. Logged-in carts are stored in user meta. When a guest logs in, the two merge, so someone who browsed anonymously on Monday and signed in on Tuesday does not lose their basket. Abandoned items are trashed or deleted on a schedule you control, which keeps your entries list from filling up with leftovers.

Holding back notifications and feeds

Here is where the add-on does something a generic cart cannot. On any product form you can choose to hold that form’s notifications and feeds until checkout is complete. Without this, an admin email would fire the moment someone added a platter to a cart they might never pay for. With it, nothing runs until the payment add-on reports the order as paid. Then the checkout form sends a Customer Receipt, and the held product-form notifications and feeds go out together. Your CRM feed, your fulfillment email, your webhook: all of them wait for real money.

Key Capabilities

  • One checkout for many forms. Take payment for several product forms through a single checkout form and a single gateway transaction.
  • Paid-only notifications and feeds. Hold each product form’s notifications and feeds until the payment add-on confirms the order.
  • Header cart icon and slide-out drawer. Show the item count anywhere with the icon shortcode, and let the drawer open after an item is added.
  • Cart page shortcode. Place the cart shortcode on a dedicated page when you prefer a full-page view.
  • Flexible coupons. Create percentage or flat-amount codes under Forms → Cart, with usage limits, start and end dates, and a minimum subtotal. Shoppers apply one coupon at checkout through an optional code box on the Cart Summary field.
  • Design controls. Match the cart to the checkout form’s colors, or set accent, text, background, border, radius, and drawer width yourself.
  • Customer Receipt. When the order completes, the receipt goes to the Email field with the shopper’s details and the order summary.
  • Persistent guest and member carts. Cookie-based guest carts and user-meta carts for logged-in members, merged at login.
  • Scheduled cleanup. Choose whether abandoned cart items are trashed or deleted.

Coupons that follow your rules

A discount code can take a percentage or a fixed amount off the cart subtotal. You can cap how many times it is redeemed, set the dates it is valid, and require a minimum subtotal before it applies. A spring promotion that only works above a certain basket size and expires on a set date takes a few minutes to set up. Shoppers see the discount reflected in the Cart Summary before they pay.

A cart that looks like your site

The drawer and mini-cart can inherit the checkout form’s colors, which is the fastest route to a consistent look. If you want something distinct, set the accent color, text color, background, border, corner radius, and drawer width directly. The result is a cart that fits a minimalist theme as comfortably as a bold one.

Getting Results

Setup follows a clear path. Build a product form with a Product field, adding Option or Quantity fields where the item calls for them. Open Form Settings → Cart, set the role to a product form, and decide whether its notifications and feeds should wait for payment. Embed it on a product page. Repeat for every product form you sell.

Next, build the checkout form: a Cart Summary field, a Total field, the customer details you need, and your payment add-on’s field. Set its role to the checkout form, add a payment feed with Payment Amount set to Form Total, and embed it on its own page. Enter that page’s address in the Cart settings, turn on the drawer, and pick which edge it slides from. Drop the cart icon shortcode into your header or menu area, and add the cart shortcode to a cart page if you want one.

From the shopper’s side, the flow is short. They add an item, see the confirmation, open the drawer if they like, review the lines at checkout, apply a coupon, and pay. Once the gateway reports payment, the order is complete, the receipt arrives in their inbox, and the held notifications and feeds fire. For you, that means one clean order record instead of a trail of half-finished submissions.

One note before you launch: this is a Gravity Labs project and is not officially supported. A notice about that appears on Forms → Settings → Cart and on the coupons screen. It is expected, so there is nothing to fix. Test the full flow on a staging copy with your chosen payment add-on, confirm that receipts and held feeds behave as you want, and then go live.

Frequently Asked Questions

Do I need a payment add-on to use the Gravity Forms Cart Add-On WordPress plugin?

Only if checkout charges for the order. The checkout form relies on a Gravity Forms payment add-on to take money and report back that the order is paid. That confirmation is what triggers the receipt and releases any held notifications and feeds. For a free or quote-style flow, you would not need the gateway.

What happens to notifications on a product form before the customer pays?

You choose per form. If you tell the product form to hold its notifications and feeds, nothing is sent when an item is added to the cart. They run after the payment add-on reports the order paid. This stops admin emails, CRM entries, and webhooks from firing for carts that are abandoned.

Can a shopper use more than one coupon on an order?

No. Shoppers apply a single coupon at checkout. You can still run several codes at the same time, each with its own limits, dates, and minimum subtotal, and shoppers choose whichever applies. To show the code box, turn on the coupon option in the Cart Summary field.

What if a customer leaves and comes back later?

Guest carts are kept in a cookie for the number of days you set. Logged-in shoppers have their carts saved to their user account, and a guest cart merges into it when they sign in. Items that sit unpaid are trashed or deleted on the schedule you choose.

Can I control how the cart drawer looks?

Yes. You can let the cart pick up the checkout form’s colors, or set the accent, text, background, border, radius, and drawer width yourself. The drawer opens from the right or left edge, and the cart icon can sit wherever you place its shortcode.

Category: