Giter VIP home page Giter VIP logo

pmpro-pods's Introduction

WordPress Plugin Downloads Travis (.org) License

Welcome to the Paid Memberships Pro - Pods Integration GitHub Repository

Integrates with the Pods Framework to add groups of fields to many areas of Paid Memberships Pro including Member Profiles, the Membership Checkout page, and admin screens including Membership Levels and Orders.

For more information please visit the Add On documentation page for this plugin.

Installation

For detailed installation steps, visit the documentation page.

  1. Download the current development ZIP file directly: https://github.com/strangerstudios/pmpro-pods/archive/dev.zip

Please ensure that once installing this version of the plugin to remove -dev from the plugin's folder name.

Bugs

If you find an issue/bug, let us know by creating a detailed GitHub issue.

Support

This is a developer's portal for Paid Memberships Pro - Pods Integration. We do not offer support on this channel. Any support related questions should be directed to our website.

Contributing to Paid Memberships Pro - Pods Integration

We encourage and welcome any contribution to Paid Memberships Pro - Pods Integration. Please read the guidelines for contributing to this repository.

There are various ways to the help development of Paid Memberships Pro - Pods Integration:

  1. Report bugs/issues on GitHub.
  2. Work on any issues by submitting a Pull Request.

Here are some ways for non-developers to contribute to Paid Memberships Pro - Pods Integration:

  1. Translate Paid Memberships Pro - Pods Integration into your own language.
  2. Purchase a Plus membership to help fund ongoing development and bug fixes.

pmpro-pods's People

Contributors

andrewlimaza avatar dparker1005 avatar dwanjuki avatar femiyb avatar github-actions[bot] avatar kimcoleman avatar sc0ttkclark avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pmpro-pods's Issues

Custom user field value not retrieved during checkout for existing users

Describe the bug
When an existing user checks out to renew a level or checks out for a new level the value for the custom user field previously entered is not set as the field value and if the user completes checkout without entering these values again their previous values entered are removed. This results in losing the custom user field metadata previously stored for that user.

To Reproduce
Steps to reproduce the behavior:

  1. For a user that has a membership level that is due for renewal go to the user's account page and click on the "Renew" link
  2. On the checkout page inspect the custom user field that is created in pods and note that the field value is now empty instead of filled with the value stored in the usermeta table.
  3. Complete checkout without entering a new value.
  4. Check user meta table for the relevant user id and meta keys and note that the meta value for these are now empty

Expected behavior
If a custom user field has a value that value should populate the related custom user field at checkout.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • This bug happens with a default WordPress theme active, or Memberlite.
  • I can reproduce this bug consistently using the steps above.

WordPress Environment

[ wp-core ]

version: 6.2.2
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 1
blog_public: 1
default_comment_status: open
environment_type: local
user_count: 81
dotorg_communication: true

[ wp-active-theme ]

name: Memberlite (memberlite)
version: 4.5.4.1
author: Stranger Studios
author_website: https://www.strangerstudios.com
parent_theme: none
theme_features: core-block-patterns, widgets-block-editor, menus, automatic-feed-links, title-tag, custom-logo, post-thumbnails, wp-block-styles, align-wide, responsive-embeds, html5, post-formats, custom-background, editor-color-palette, customize-selective-refresh-widgets, custom-header, infinite-scroll, widgets
theme_path: path-to/wp-content/themes/memberlite
auto_update: Disabled

[ wp-plugins-active ]

Paid Memberships Pro: version: 2.11.2, author: Paid Memberships Pro, Auto-updates disabled
Paid Memberships Pro - Pods Add On: version: 1.0.2, author: Paid Memberships Pro, Auto-updates disabled
Pods - Custom Content Types and Fields: version: 2.9.16, author: Pods Framework Team, Auto-updates disabled

[ wp-server ]

server_architecture: Windows NT 10.0 AMD64
httpd_software: nginx/1.16.0
php_version: 8.1.9 64bit
php_sapi: cgi-fcgi
max_input_variables: 4000
time_limit: 1200
memory_limit: 256M
max_input_time: 600
upload_max_filesize: 300M
php_post_max_size: 1000M
curl_version: 7.77.0 OpenSSL/1.1.1q
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: false

[ wp-database ]

extension: mysqli
server_version: 8.0.16
client_version: mysqlnd 8.1.9
max_allowed_packet: 16777216
max_connections: 151

[ pods ]

pods-server-software: nginx/1.16.0
pods-user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
pods-session-save-path: undefined
pods-session-save-path-exists: No
pods-session-save-path-writable: No
pods-session-max-lifetime: 1440
pods-opcode-cache-apc: No
pods-opcode-cache-memcached: No
pods-opcode-cache-opcache: Yes
pods-opcode-cache-redis: No
pods-object-cache-apc: No
pods-object-cache-apcu: No
pods-object-cache-memcache: No
pods-object-cache-memcached: No
pods-object-cache-redis: No
pods-memory-current-usage: 10.639M / 40M
pods-memory-current-usage-real: 12.000M
pods-network-wide: No
pods-install-location: path-to/wp-content/plugins/pods/
pods-developer: No
pods-tableless-mode: No
pods-relationship-table-enabled: Yes
pods-relationship-table-status: 0
pods-light-mode: No
pods-strict: No
pods-allow-deprecated: Yes
pods-api-cache: Yes
pods-shortcode-allow-evaluate-tags: No
pods-sessions: Disable sessions
pods-can-use-sessions: No
pods-settings-types_only: No
pods-settings-watch_changed_fields: No
pods-settings-metadata_integration: Yes
pods-settings-metadata_override_get: No

Paid Memberships Pro - Pods Add On Does not work well with Pods 2.9.1

Describe the bug
As soon as the addon is activated the Advanced Content Type created with Pods stops working. Please screenshot below

To Reproduce
Steps to reproduce the behavior:

  1. Create Advanced Content Type with Pods
  2. Activate Paid Memberships Pro - Pods Add On
  3. Try adding new actual content to the newly created content type
  4. See error

Screenshots
image

Expected behavior
I should be able to create new content.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro - Pods Add On plugin is active.
  • This bug happens with a default WordPress theme active, or Memberlite.
  • I can reproduce this bug consistently using the steps above.

WordPress Environment
WordPress 6.0.1
PHP 7.4.1

Please share non-sensitive information about your hosting environment such as WordPress version, PHP version, Paid Memberships Pro and any related plugins versions.

Add support for PMPro object fields

Is your feature request related to a problem? Please describe.
Add support for PMPro object fields based on each context.

  • PMPro Users would have access to membership level(s), etc
  • PMPro Orders would have access to fields on the order
  • PMPro Membership Levels would have access to fields on the level

With added support for recognizing/mapping object fields on these three Pods, users can then use Pods templating / magic tags to better interact/render those values using the power of Pods relationships/traversal/display formatting etc.

Describe the solution you'd like
Filter the WP object fields in Pods for the extended PMPro objects. Add fields in such a way that it recognizes their labels, formats, and display options.

Describe alternatives you've considered
The code currently relies on the data returned from the object's table but it does not recognize formatting and it just outputs the value as plain text. It also does not auto-suggest those fields when using the Pods template builder.

Requested by: https://www.paidmembershipspro.com/forums/topic/show-membership_status-with-pods-template/

Incorrect text domains

Found a couple strings using the text domain pmpro-register-helper. Could just be a couple of lines.

Field value not saved when adding member using Add Member from Admin Add On

Describe the bug
When adding a member from Add Member from Admin the field value entered is not saved

To Reproduce
Steps to reproduce the behavior:

  1. Go to Pods and extend PMPro Member with a field
  2. Go to Add Member from Admin complete form, including the custom field created with Pods, and add member
  3. Navigate to Users > All Users and open added user's profile.
  4. See error.

Expected behavior
Member field data to be saved to wp_usermeta table.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • This bug happens with a default WordPress theme active, or Memberlite.
  • I can reproduce this bug consistently using the steps above.

Debug Log

``` PHP Notice: Trying to access array offset on value of type bool in C:\Users\Admin\Local Sites\pmpro\app\public\wp-content\plugins\pmpro-pods\src\Pods\Integration.php on line 187

PHP Notice: Trying to get property 'ID' of non-object in C:\Users\Admin\Local Sites\pmpro\app\public\wp-content\plugins\pmpro-pods\src\PMPro\Objects\Member_Profile.php on line 159

</details>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.