How to Add a Quantity Field to a Stripe Payment Button

Variable Quantity is an add-on for the free Stripe Checkout plugin that can be used to add a quantity field to your Stripe payment buttons. This lets buyers specify the quantity of an item they want to purchase.

variable quantity using the Stripe payment gateway

How Variable Quantity with Stripe Works

When a Stripe payment button is rendered on the front end with variable quantity enabled, a quantity input field will appear that will let buyers set the number of items they want to purchase.

variable quantity field using the stripe checkout plugin

The default label for the quantity field (Quantity) can be customized in the add-on settings (Stripe Checkout > Variable Quantity).

quantity field label customization in the wp stripe checkout variable quantity extension

How to Enable Variable Quantity (Option 1)

You can enable variable quantity in the product interface of the Stripe Checkout plugin.

enable variable quantity in the wp stripe checkout plugin

Once you have created a new product or edited an existing one with this option enabled, add the shortcode for it to a post/page.

[wp_stripe_checkout id="1"]

Replace the value of id with your product ID.

How to Enable Variable Quantity (Option 2)

If you are using the “wp_stripe_checkout_session” shortcode in the Stripe Checkout plugin, you can change it to the following to enable variable quantity.

[wp_stripe_checkout_session name="My Product" price="2.99" quantity=""]

Leaving the quantity parameter empty implies that you wish to let buyers set the quantity for this item.

How to Enable Variable Quantity (Option 3)

If you are using the “wp_stripe_checkout_v3” shortcode in the Stripe Checkout plugin, you can change it to the following to enable variable quantity.

[wp_stripe_checkout_v3 price="price_UY9NozbEy7T3PUlk" quantity=""]

Get the Variable Quantity Add-on

WP Stripe Checkout Variable Quantity
WP Stripe Checkout Variable Quantity
Allow buyers to set the quantity for your Stripe payment buttons.

Note:
* Please do not purchase if you are not sure about a feature, contact us instead.
* Please do not purchase to ask for more features or make the product work in a certain way.
* Please do not try to scam us, we take it seriously. We are contributing to the WordPress community with free plugins and themes. If you cannot appreciate this our product is not the right choice for you.
* There is no refund/cancellation as it is a digital product.

Price: $29.99

Please contact us if you have any questions about the add-on.

2 thoughts on “How to Add a Quantity Field to a Stripe Payment Button”

  1. Your Stripe plugin was very helpful to set up my new site. I like the ability to enable test mode easily.

    Reply
    • @Mike, I’m glad you like the plugin 🙂

      Reply

Leave a Comment