# Paid Memberships Pro - Shipping Add On

`meteorgpl-plugin/pmpro-shipping` — a WordPress plugin as a Composer package.

Add shipping to the checkout page and other updates.

- Author: Paid Memberships Pro — https://www.paidmembershipspro.com
- Homepage: https://www.paidmembershipspro.com/add-ons/shipping-address-membership-checkout/
- License: not declared (profile: undeclared)
- Buy a license from the vendor: https://www.paidmembershipspro.com/add-ons/shipping-address-membership-checkout/
- Latest version: 1.0 (2020-04-30)
- Page: https://meteorgpl.com/packages/meteorgpl-plugin/pmpro-shipping
- Requires WordPress: 4.0
- Tested up to WordPress: 5.4
- Vendor: Paid Memberships Pro — https://meteorgpl.com/vendors/paidmembershipspro.com

## About

Adds shipping fields to the checkout page, confirmation page, confirmation emails, member's list and edit user profile pages.

[Read the full documentation for the Shipping Add On](https://www.paidmembershipspro.com/add-ons/shipping-address-membership-checkout/)

= Official Paid Memberships Pro Add On =

This is an official Add On for [Paid Memberships Pro](https://www.paidmembershipspro.com), the most complete member management and membership subscriptions plugin for WordPress.

## Changelog

### 1.0 — 2020-04-30

* BUG FIX/ENHANCEMENT: Checking if user has a membership that includes shipping fields or is an admin before displaying fields.
* ENHANCEMENT: Added support for PMPro v2.3+ frontend profile.
* ENHANCEMENT: Setting to v1.0 to reflect the stability of the functionality and code base.

= .8 - 2020-01-06 =
* ENHANCEMENT: Added phone data to confirmation message, email and Member's List area.
* ENHANCEMENT: General code improvements and optimization.
* BUG FIX: Improved registration checks for when users did not select the "Same as Billing" option.
* BUG FIX/ENHANCEMENT: Better support for PayPal and other offsite gateways.

= .7 =
* ENHANCEMENT: Support State Dropdown Add On.
* ENHANCEMENT: Added in phone field support for shipping address.
* ENHANCEMENT: Improved internationalization for translating the plugin.

= .6 =
* BUG FIX: Fixed bugs where shipping address was not being saved. Rewrote the logic that figures out when and how to save shipping to user meta based on the chosen gateway.
* BUG FIX: Fixed bugs where the "same as" checkbox was no longer toggling the shipping address fields or being hidden when there was no billing address to copy.
* BUG FIX/ENHANEMENT: Now checking if PMPRO_SHIPPING_SHOW_REQUIRED is already defined so you can override it in wp-config.php instead of having to edit this plugin.

= .5 =
* ENHANCEMENT: Copying billing to shipping address when using the Add PayPal Express Option at Checkout and Pay By Check add-ons
* ENHANCEMENT/FIX: Didn't save Shipping Address when using PayPal Standard
* ENHANCEMENT: Improved fields display on membership checkout page to use no tables for compatibility with Paid Memberships Pro v1.9.4.

= .4 =
* BUG FIX: Fixed warnings related to use of get_usermeta.
* BUG FIX: Fixed issue where shipping fields continued to show when "same as" was selected.
* ENHANCEMENT: Added a pmproship_required_shipping_fields filter.

= .3.3 =
* BUG/ENHANCEMENT: Now sanitizing and validating the hide_shipping/edit parameter when editing a level.
* BUG/ENHANCEMENT: Wrapped the Shipping Information label for localization in the confirmation message. (Thanks, shr3k on GitHub)

= .3.2 =
* BUG: Fixed warning with hide_shipping option when saving a level in the dashboard.

= .3.1 =
* BUG: Now unestting SESSION variables after checkout in case someone refreshes the review page with PayPal Express.
* ENHANCEMENT: Updated to hide the shipping fields on the review page when using PayPal Express.

= .3 =
* FEATURE: Added a checkbox to hide the shipping address fields for certain levels.
* ENHANCEMENT: Now hiding the "same as Billing Address" checkbox if the billing address is not visible.

= .2.6 =
* Shipping information is now populated on the checkout page.

= .2.5 =
* PMPro Shipping will no longer override other members list CSV export columns added by other addons/code.

= .2.4 =
* State field on profile page is now a free text field instead of a dropdown.
* Wrapped strings with localization functions. They use the "pmpro" domain.
* Fixed code to require the shipping fields.

= .2.3 =
* Updated required fields to show an asterisk. Set PMPRO_SHIPPING_SHOW_REQUIRED to false to set back to the old method where only optional fields showed (optional).
* Using JavaScript to show the #sameasbilling checkbox only if the #baddress1 field is on the page and visible.

= .2.2.1 =
* Fixed bug with members list CSV columns.

= .2.2 =
* Upgraded from gist to GitHub plugin.
* First version with a readme.

Full changelog: https://meteorgpl.com/packages/meteorgpl-plugin/pmpro-shipping/changelog

## Install

```sh
composer config repositories.meteorgpl composer https://composer.meteorgpl.com
composer require meteorgpl-plugin/pmpro-shipping
```

The repository needs a token (see https://meteorgpl.com/docs). The vendor's license checks are intact: activate the plugin in WordPress with a key bought from the vendor.

## Versions

| Version | Released | Size | SHA-256 | Status |
| --- | --- | --- | --- | --- |
| 1.0 | 2020-04-30 | 11.8 KB | 1f9a572711ead5eb7bd163b42645a4c78896e6d300dfcdc1821478b13905f6b2 | verified |

