Noor's Plugin

WordPress Plugins, Themes, Hosting, Tutorials & more!

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

How to Add a Price Field to a PayPal Button

Variable Price is an extension of the Checkout for PayPal plugin that can be used to add a price field to your PayPal smart payment buttons. This lets buyers set the amount they will pay for your products. It can also be used to accept PayPal donation payments.

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

[checkout_for_paypal item_description="My item description" amount=""]

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

When the PayPal smart payment button is rendered on the front end, a price amount input field will appear with it.

variable price amount field using the checkout for paypal plugin

If you wish to allow buyers to enter a custom description for this item, you can leave the item_description parameter empty.

[checkout_for_paypal item_description="" amount=""]
variable price description field using the checkout for paypal plugin

The default labels for the description and price amount input fields can be customized in the extension settings (Checkout for PayPal > Variable Price).

checkout for paypal variable price extension settings

Get the Variable Price Extension

Checkout for PayPal Variable Price
Checkout for PayPal Variable Price
Let buyers set the amount they will pay.
Price: $39.99
Price: $29.99

Related

Written by Noor Alam · Categorized: Plugin, wordpress

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