WordPress HowTo

How-to guide for WordPress

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

Applying Discount to a PayPal Buy Button in WordPress

Buy Now Discount is an add-on for the Payment Button for PayPal WordPress plugin (also known as WP PayPal) 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.

Get the Buy Now Discount Add-on

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

Related

Written by Noor Alam · Categorized: PayPal, wordpress

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
  7. Ivo says

    Hi,

    Is it possible to do the following:

    Apply a 10% discount on the overall cart total if there are 3 or more items purchased?

    Reply
    • Noor Alam says

      @Ivo, Are you referring to 3 different products?

      Reply
      • Ivo says

        Hi,
        No, in this case just one product.
        I want to set an Add to cart button for a particular product, and if I purchase more than 3 of that product, a 10% discount must be applied.

        Reply
        • Noor Alam says

          @Ivo, Thanks. I have checked the documentation. The PayPal shopping cart doesn’t seem to support this setup at the moment. You might be able to do this with an advanced shopping cart plugin.

          Reply

Leave a Reply Cancel reply

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

Search WP HowTo

Recent Posts

  • 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
  • How to Add a Quantity Field to a PayPal Button

Featured 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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAcceptRead 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