WordPress HowTo

How-to guide for WordPress

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

How to Configure Product Variations in WP PayPal

Product Variations 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 variations to your PayPal buttons. The plugin uses the PayPal Payments Standard API (also known as PayPal Website Payments Standard) for accepting payments in WordPress.

wp paypal add-on for configuring product variations or variable products

Table of Contents

  • WP PayPal Variable Product/Product Variation Demo
  • Simple Variation for PayPal
  • Priced Variation for PayPal
  • Multiple Variations for PayPal
  • Get the Product Variations Add-on

WP PayPal Variable Product/Product Variation Demo

Simple Variation for PayPal

screenshot of a simple product variation in the wp paypal plugin

In order to add a simple variation you can use the following shortcode.

[wp_paypal button="buynow" name="My product" amount="1.00" on0="Size" os0_val0="Small" os0_val1="Medium" os0_val2="Large"]
screenshot of how to select an option in the wp paypal plugin variation

on0

The name of the variation (e.g. Size).

os0_val0

First option field for the variation. If you have created a variation named “Size” you may want to set this value to “Small”.

os0_val1

Second option field for the variation. If you have created a variation named “Size” you may want to set this value to “Medium”.

os0_val2

Third option field for the variation. If you have created a variation named “Size” you may want to set this value to “Large”.

It is up to you how you want to set up on0, os0_val0, os0_val1 and os0_val2. If you specify the on0 parameter in the shortcode the plugin expects at least one option (e.g. os0_val0).

The shortcode above can be modified to offer color options. For example,

[wp_paypal button="buynow" name="My product" amount="1.00" on0="Color" os0_val0="Red" os0_val1="Blue" os0_val2="Black"]
[wp_paypal button="buynow" name="My product" amount="1.00" on0="Color" os0_val0="Red"]
[wp_paypal button="buynow" name="My product" amount="1.00" on0="Color" os0_val0="Red" os0_val1="Blue"]

You can add up to 10 options. For example:

[wp_paypal button="buynow" name="My Product" on0="Colors" os0_val0="Coral" os0_val1="LightCoral" os0_val2="Salmon" os0_val3="DarkSalmon" os0_val4="LightSalmon" os0_val5="Crimson" os0_val6="Red" os0_val7="FireBrick" os0_val8="DarkRed" os0_val9="Pink"]

Priced Variation for PayPal

screenshot of a priced variation in the wp paypal plugin

If you want to specify a different price for each option you can do so by adding a corresponding amount for it.

[wp_paypal button="buynow" name="My product" on0="Size" os0_val0="Small" os0_val1="Medium" os0_val2="Large" os0_amount0="1.99" os0_amount1="2.99" os0_amount2="3.99"]

os0_amount0

The amount that you want to charge for the first option.

os0_amount1

The amount that you want to charge for the second option.

os0_amount2

The amount that you want to charge for the third option.

screenshot showing how to select a priced option in the wp paypal variation

You can add up to 10 priced options. For example:

[wp_paypal button="buynow" name="My Product" on0="Colors" os0_val0="Coral" os0_val1="LightCoral" os0_val2="Salmon" os0_val3="DarkSalmon" os0_val4="LightSalmon" os0_val5="Crimson" os0_val6="Red" os0_val7="FireBrick" os0_val8="DarkRed" os0_val9="Pink" os0_amount0="1.99" os0_amount1="2.99" os0_amount2="3.99" os0_amount3="4.99" os0_amount4="5.99" os0_amount5="6.99" os0_amount6="7.99" os0_amount7="8.99" os0_amount8="9.99" os0_amount9="10.99"]

Multiple Variations for PayPal

screenshot of multiple variations in the wp paypal plugin

You can add a second variation (without prices) by using the following parameters in the shortcode.

[wp_paypal button="buynow" name="Buy Now Product" on0="Size" os0_val0="Small" os0_val1="Medium" os0_val2="Large" os0_amount0="1.99" os0_amount1="2.99" os0_amount2="3.99" on1="Color" os1_val0="Blue" os1_val1="Black" os1_val2="Red"]

The second variation can also support up to 10 options. For example:

[wp_paypal button="buynow" name="Buy Now Product" on0="Size" os0_val0="Small" os0_val1="Medium" os0_val2="Large" os0_amount0="1.99" os0_amount1="2.99" os0_amount2="3.99" on1="Color" os1_val0="Blue" os1_val1="Black" os1_val2="Red" os1_val3="Pink" os1_val4="Yellow" os1_val5="Grey" os1_val6="Orange" os1_val7="White" os1_val8="Green" os1_val9="Brown"]

Get the Product Variations Add-on

WP PayPal Product Variations
WP PayPal Product Variations
Set up variations for your WP PayPal buttons.

Note:
* Please do not purchase if you are not sure about a feature, contact us instead.
* Please do not purchase to ask for more features or make the product work in a certain way.
* Please do not try to scam us, we take it seriously. We are contributing to the WordPress community with free plugins and themes. If you cannot appreciate this our product is not the right choice for you.
* There is no refund/cancellation as it is a digital product.

Price: $29.99

Related

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

Comments

  1. Char says

    Hello Noor, Are additional variables, up to 8, available with this extension? That is how many product variations I will need. Is there a way to extend it to allow that? Thanks

    Reply
    • Noor Alam says

      @Char, PayPal supports up to 10 options for a variation. The extension supports up to 10 as well.

      Reply
  2. Moss says

    Hello Noor,

    There seems to be some issue where I use the following short code :

    [wp_paypal button="buynow" name="My product" on0="Size" os0_val0="Small" os0_val1="Medium" os0_val2="Large" os0_amount0="1.99" os0_amount1="2.99" os0_amount2="3.99"]

    When we click on the buy now button, it seems to throw up the pricing Blank, where the customer has to put the price.

    Rather then the variation price that it should show up that has been provided.

    Could you please advise!?

    Thanks & Regards

    Reply
    • Noor Alam says

      @Moss, Do you have the WP PayPal Variations extension installed?

      Reply
  3. John says

    Can I have more than 3 options for a simple variation?

    Reply
    • Noor Alam says

      @John, Yes.

      Reply
  4. Duane says

    Can you have both size and color variations on the same drop-down?

    Reply
    • Noor Alam says

      @Duane, It is possible. I have updated the documentation.

      Reply
  5. bee says

    Hello,
    Is this plugin still working on the latest Woocommerce. I cannot see a date when this article was written and therefore don’t know if all of the above is already obsolete. I can tell that there is still no option to add just simple price variations for the same product on Woocomerce.

    Reply
    • Noor Alam says

      @bee, This add-on is not for WooCommerce.

      Reply
      • Bee says

        Granted, but I am using PayPal with WooCommerce. In fact I installed PayPal first.

        Reply
        • Noor Alam says

          @Bee, WP PayPal is the name of the core plugin (there is a link to the plugin on this page). This add-on is for that plugin.

          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 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
  • How to Configure Product Variations in WP PayPal
  • How to Make Your WooCommerce Add to Cart Buttons Bigger

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

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