WordPress HowTo

How-to guide for WordPress

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

How to Add a Quantity Field to a PayPal Button

Variable Quantity is an add-on for the Payment Button for PayPal WordPress plugin (also known as WP PayPal or WordPress PayPal) that can be used to add a quantity field to your PayPal Buy buttons.

variable quantity using paypal website payments standard

Table of Contents

  • How Variable Quantity with WP PayPal Works
  • Minimum Quantity
  • Maximum Quantity
  • Quantity Range
  • Buy the Variable Quantity Add-on

How Variable Quantity with WP PayPal Works

In order to add a quantity field you can use the following shortcode.

[wp_paypal button="buynow" name="My product" amount="1.00" quantity=""]

Leaving the quantity parameter empty implies that you wish to allow buyers to enter a quantity for this item.

When the button is rendered on the front end, a quantity box will appear with it.

quantity field created using the WordPress PayPal plugin

Minimum Quantity

In order to restrict buyers to a minimum quantity, you can use the min_qty parameter in the shortcode.

[wp_paypal button="buynow" name="My product" amount="1.00" quantity="" min_qty="2"]

Maximum Quantity

In order to restrict buyers to a maximum quantity, you can use the max_qty parameter in the shortcode.

[wp_paypal button="buynow" name="My product" amount="1.00" quantity="" max_qty="5"]

Quantity Range

You can use both the min_qty and max_qty parameters to restrict the quantities of items that can be purchased.

[wp_paypal button="buynow" name="My product" amount="1.00" quantity="" min_qty="2" max_qty="5"]

Buy the Variable Quantity Add-on

WP PayPal Variable Quantity
WP PayPal Variable Quantity
Allow buyers to enter a quantity for your WP PayPal Buy Now buttons.
Price: $39.99
Price: $29.99

Related

Written by Noor Alam · Categorized: PayPal, plugin, wordpress

Comments

  1. Roland says

    Amazing plugin. Keep it up.

    Reply
    • Noor Alam says

      @Roland, Thank you!

      Reply
  2. Keith Hammerbeck says

    Is there a way to stipulate a minimum or maximum quantity?

    Reply
    • Noor Alam says

      @Keith, There is. You can use the “min_qty” and “max_qty” parameters in the shortcode.

      Reply
      • Keith Hammerbeck says

        Thank you. It isn’t working for me.
        See in progress page at https://grillhappy.com/wordpress/index.php/home/purchase/

        The code for the “Two or more 3oz. bottles” entry is as follows:

        [wp_paypal button="buynow" name="Grill Happy Seasoning - 3oz." amount="9.50" quantity="" min_qty="2" button_image="https://grillhappy.com/wordpress/wp-content/uploads/2022/02/BuyNowD.png" return="https://grillhappy.com/wordpress/index.php/thankyou" cancel_return="https://grillhappy.com/wordpress/index.php/cancell"]

        I am able to enter quantity 1 and get it through to paypal as 1 @9.50.

        Thank you,
        Keith

        Reply
        • Noor Alam says

          @Keith, We have just sent you an email with an update. Let me know if you don’t receive it.

          Reply
          • Keith Hammerbeck says

            The update resolved my issue. Thank you!

  3. Rene Arreola says

    Hi, I’m trying to add the quantity field, but it is not working for me. I’m building using Elementor. Thanks!

    Reply
    • Noor Alam says

      @Rene, Do you have the extension installed?

      Reply
      • Rene Arreola says

        Hi Noor. Yes, I have it installed on this test page, which is live: https://www.dickcrispo.com/books-test/

        Here is the shortcode I’m using: [wp_paypal button="buynow" name="Dick Crispo: A Lifetime in Art Hardcover Book" amount="75.00" quantity=""]

        Reply
        • Noor Alam says

          @Rene, Thanks. The shortcode looks fine. Just to confirm, you have installed the core Payment Button for PayPal plugin (also known as WP PayPal) and the Variable Quantity extension listed on this page?

          Reply
          • Rene says

            Ahh, I just saw that the Variable Quantity is a paid extension plug-in. Sorry about that! We’ll make do for now on the free plug-in. Thanks!!

  4. Jeff H says

    Hello,
    I purchased this add on but the download link sent in my email does not work.

    Can you advise?

    Thank you.

    Reply
    • Noor Alam says

      @Jeff, Please use the contact form on our site so we can help with this issue.

      Reply
      • Jeff H says

        Thanks so much

        Reply

Leave a Reply Cancel reply

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

Search WP HowTo

Recent Posts

  • How to Add a Custom Price Field to a PayPal Buy Now Button
  • Custom Donations for WordPress PayPal Donate Buttons
  • Gmail SMTP Plugin Cc Configuration
  • How to Add a Reply-To Address in the Gmail SMTP WordPress Plugin
  • What Does a Security Challenge Mean on PayPal?
  • WP PayPal Button Integration with Contact Form 7
  • Can People See Your Address on PayPal?
  • Mailchimp Integration for WP PayPal Plugin
  • How to Show a Text Box at WP PayPal Checkout to Collect Custom Data from Buyers
  • How to Add a Recurring Price Field to a PayPal Subscription Button

Trending Add-ons

Buy Now Custom Amount for PayPal

Buy Now Discount for PayPal

Contact Form 7 Integration for PayPal

Custom Input for PayPal

Mailchimp Integration for PayPal

Product Variations for PayPal

Variable Quantity for PayPal

Variable Subscription for PayPal

Custom Donations for PayPal

Reply-To for Gmail SMTP

Cc for Gmail SMTP

Disable Right Click on Video.js

Copyright © 2023 · WordPress HowTo

x