• Skip to main content
  • Skip to primary sidebar

WordPress HowTo

WPHowto is the place to download free WordPress plugins and free WordPress themes. WPHowto focuses on free how-to tutorials for WordPress, popular WordPress plugin/theme reviews, best cheap WordPress hosting reviews and tutorials on WooCommerce.

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

Applying Discount to a PayPal Buy Button in WordPress

Buy Now Discount is an extension of the WordPress PayPal plugin that allows you to add automatic discount functionality to a PayPal Buy Now button. When this is installed, you can apply a flat discount amount, multiple discount amounts, discount percentage and buy one, get one free discount.

Buy Now Button with a Flat Discount Amount

In order to provide a flat discount on the PayPal Buy Button simply specify the “discount_amount” parameter in the shortcode.

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

Buy Now Button with a Multiple Discount Amounts

In order to apply a certain discount on the first item and a different one on the next items add “discount_amount” and “discount_amount2” parameters. In that case you might also want to allow users to specify the number of items they want to order (Since a Buy button only allows one item by default). You can do it easily by using the “undefined_quantity” parameter.

[wp_paypal button="buynow" name="My product" amount="4.99" discount_amount="1.00" discount_amount2="2.00" undefined_quantity="1"]

When you specify “undefined_quantity” in the shortcode it will prompt buyers to enter their desired quantities on the PayPal payment page.

screenshot showing how to apply a discount on a paypal buy now button in wordpress

Apply Discount Amounts on a Certain Number of Items

If you want to provide a $1.00 discount on the first item ordered and a $2.00 discount on the next 3 items, add the “discount_num” parameter.

[wp_paypal button="buynow" name="My product" amount="4.99" discount_amount="1.00" discount_amount2="2.00" discount_num="3" undefined_quantity="1"]

Buy Now Button with Discount Percentages

In order to provide a 20% discount on the first item ordered and a 30% discount on the next 2 items, use the “discount_rate” parameter instead.

[wp_paypal button="buynow" name="My product" amount="4.99" discount_rate="20" discount_rate2="30" discount_num="2" undefined_quantity="1"]

Buy Now Button with a Buy One, Get One Free Discount

You can set a 100% discount on the second item ordered, so the buyer can get one for free.

[wp_paypal button="buynow" name="My product" amount="4.99" discount_rate="0" discount_rate2="100" discount_num="1" undefined_quantity="1"]

In order to receive this discount the buyer will need to buy at least one item.

WP PayPal Buy Now Discount
WP PayPal Buy Now Discount
Set up automatic discounts for your WP PayPal Buy Now buttons
Price: $49.99
Price: $29.99

Disclosure: This page may contain affiliate links. If you follow one of those affiliate links and purchase something it will provide me with a little bit of a commission. This costs you nothing extra but helps maintain my site, free plugins, and themes. So I thank you for your support.

Share this:

  • Twitter
  • Facebook
  • Pinterest

Related

Written by Noor Alam · Categorized: wordpress

Reader Interactions

Comments

  1. Jim says

    How do you do a discount code?

    Reply
    • admin says

      @Jim, These are just automatic discount options. There is no discount code feature unfortunately.

      Reply
      • Jenn says

        Your description on the WordPress Plugin site is a bit misleading. It specifically says “Coupon/discount functionality”

        I’m glad I checked the documentation before downloading, since I specifically need coupon code functionality. Would love to see that update applied in the near future.

        Reply
  2. andy says

    Is there any way of assigning a price to each of three variations, for example the cost of item inc postage to three postal zones? I can do three buttons – one each for the three zones, and use custom buttons to make it more obvious – but I’m looking for a more elegant solution. Have previously used the PayPal button, but that doesn’t seem to work on mobiles.

    Reply
  3. T says

    Does it work with Add to Cart button?

    Reply
    • Noor Alam says

      @T, This feature only works with a buy button.

      Reply
  4. Norman Dallura says

    I have installed the WP Papal plugin. I appears to do exactly what I want. I cannot locate the Custom Amount extension. Where may I find it?

    Reply
    • Noor Alam says

      @Norman, It’s on this page.

      Reply
      • Jerald Wee says

        I’m sorry but like Norman, i cannot locate the Custom Amount Extension

        Reply
        • Norman Dallura says

          It is there – I finally figured it out. You need to buy the extension on this page, There is a box around the extension with the title: WP PayPal Buy Now Custom Amount. Click on the Buy Now button.

          Reply
  5. Ruben Tahir says

    I am trying to create a custom buy now amount button, but it looks like I need the extension “wppaypal-buy-now-custom-amount”. Where is that extension to your “WP PayPal” plugin?
    Thanks,
    Ruben

    Reply
    • Noor Alam says

      @Ruben, It’s on the plugin page: https://wphowto.net/wordpress-paypal-plugin-732

      Reply
  6. Ruben Tahir says

    OK, so I downloaded the extension, install and activated.
    Still when I use the shortcode [wp_paypal button="buynow" name="My product" amount=""] I am getting “Amount cannot be empty”.
    Also, in your video describing the process, it appears that under the menu in WP dashboard “WP PayPal” there is also an entry “Buy Now Amount”. I don’t see it in my dashboard.
    Please help,
    Thanks,
    Ruben

    Reply
    • Noor Alam says

      @Ruben, What extension did you download?

      Reply
    • Noor Alam says

      @Ruben, It seems you have purchased the extension. Please use the contact form on the site so we can investigate this issue.

      Reply

Leave a Reply Cancel reply

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

Primary Sidebar

Search WP HowTo

Recent Posts

  • How To Disable Sticky Header in a Genesis Child Theme
  • How to Center a Tweet in WordPress
  • How to Add a Free SSL Certificate to Your WordPress Site
  • 34 Best Black Friday & Cyber Monday Discounts for WordPress (2019)
  • Introducing to WordPress Login & Admin Area on Bluehost

Top Posts & Pages

  • Gmail SMTP Plugin for WordPress
    Gmail SMTP Plugin for WordPress
  • How to Embed a Video in WordPress
    How to Embed a Video in WordPress
  • WordPress PayPal Plugin
    WordPress PayPal Plugin
  • SMTP Mailer Plugin For WordPress
    SMTP Mailer Plugin For WordPress
  • Videojs HTML5 Player For WordPress
    Videojs HTML5 Player For WordPress
  • How to Remove/Hide Image From WooCommerce Product Page
    How to Remove/Hide Image From WooCommerce Product Page
  • 6 Free WordPress PayPal Subscription Plugins for Accepting Recurring Payments
    6 Free WordPress PayPal Subscription Plugins for Accepting Recurring Payments
  • How to Center a Tweet in WordPress
    How to Center a Tweet in WordPress
  • How to Embed a YouTube Video in Lightbox
    How to Embed a YouTube Video in Lightbox
  • Flowplayer Video Player for WordPress
    Flowplayer Video Player for WordPress

Copyright © 2021 · WordPress HowTo

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.