Noor's Plugin

WordPress Plugins, Themes, Hosting, Tutorials & more!

  • Home
  • Plugins
    • Themes
  • Hosting
  • Contact
    • Privacy Policy
  • About

How to Add a Quantity Field to a Stripe Payment Button

Variable Quantity is an extension of the 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.

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 extension 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 Extension

WP Stripe Checkout Variable Quantity
WP Stripe Checkout Variable Quantity
Allow buyers to set the quantity for your Stripe payment buttons.
Price: $39.99
Price: $29.99

Related

Written by Noor Alam · Categorized: Plugin, wordpress

Comments

  1. Mike says

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

    Reply
    • Noor Alam says

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

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search Noor’s Plugin

Recent Posts

  • How to Add a Quantity Field to a Stripe Payment Button
  • How to Add a Price Field to a PayPal Button
  • Hide Product Image for WooCommerce Plugin
  • How to Show a Download Button to Logged in Users Only
  • How to Add a Price Field to a Stripe Payment Button
  • How to Disable/Hide Featured Images in WordPress Astra Theme
  • What is the White Screen of Death in WordPress?
  • How to Fix YouTube Error The uploader has not made this video available in your country
  • How to Configure SendGrid SMTP in WordPress
  • Checkout for PayPal WordPress Plugin

Copyright © 2022 · Noor's Plugin

This website uses cookies to improve your experience. By continuing, you agree to their use.Got it! Learn More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT