• Resolved dbdermer

    (@dbdermer)


    When we update multiple subscriptions (add one month…) to say 50 people at a time (all subscribing users) — we would like to have an automated entry made in their Subscription Log that notes when the subscription was updated. Currently, we/staff can only make entries in the subscribing user’s Subscription Log manually — which is great for adding notes. But it would be nice to have any updates made via the “User Renewals” page put an entry in the log as well. Is there any way to do that presently?? Thanks!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @dbdermer,

    “When we update multiple subscriptions (add one month…) to say 50 people at a time (all subscribing users)”

    -> Could you please provide more details on exactly how you do this update process? Please provide the exact steps you’re taking.

    ?“But it would be nice to have any updates made via the “User Renewals” page

    -> Exactly what is the “User Renewal” page you’re referring to? If you want you can also send a screenshot from this page (but make sure that sensitive user information like name, email address, etc, are hidden or blurred).

    You can use a site like https://snipboard.io/ to share the screenshots.

    Best regards,

    Thread Starter dbdermer

    (@dbdermer)

    Thanks for the reply!? Our site has a "User Renewals" option in WordPress' left margin just above?Paid Member Subscriptions:
    
    https://snipboard.io/BzaGjD.jpg
    
    Each month, many of our members pay for their subscription renewal via credit card (recurring payment with our processor), and we go to the User Renewals page to update their expiration dates.? We choose? "add one month" to all of those users who've paid their renewal dues. We then click on "Update users" to mass-update our users' expiration dates;? in the example below -- I'm updating the expiration dates of 6 subscribers (last 6 alphabetically) with one additional month-
    
    https://snipboard.io/GW9xkj.jpg
    
    Back to our original question .... below you see an example of one of our members, as seen through the Paid Member Subscriptions menu -- drilling down to their?Subscription Log...
    
    https://snipboard.io/7Jimtw.jpg
    
    The entries in the?Subscription Log?are added whenever one makes either of the following types of edits --
    1. [ORANGE line]?manual entry in the log (i.e., type something in the "Add entry manually..." area and click "Add log"), OR
    2. [PURPLE line]?manually editing the user's expiration date in this screen and then clicking "save subscription"
    
    We are asking for an automated entry into the user's subscription log that captures when & who changed their expiration date via the User Renewals screen that we use, as shown here -- https://snipboard.io/BzaGjD.jpg.
    
    Can it be done?? Do we have to code it ourselves?
    Let me know what questions you have, and THANKS!
    
    -Dan
    p.s. I'm starting to think it's possible that our web developer created the User Renewals screen for us... and it's not a standard feature with this plug-in?
    Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi Dan,

    Exactly, the “User Renewals” option that you see on your site is a custom plugin/functionality made by someone (as you said most probably by your developer). That option is not a feature/functionality from our plugin.

    To achieve what you desire, for the changes made in the “User Renewals” option to automatically appear in the PMS Subscription Logs, is possible only with custom code. For this, I would recommend checking with a developer about implementing this functionality.

    Best regards,

    Thread Starter dbdermer

    (@dbdermer)

    Thank you for the reply – may I ask if there is reference documentation (API info) on how one can insert records into the PMS Subscription Logs — is that readily available? Where do we read up on that…?

    Plugin Author Georgian Cocora

    (@raster02)

    Hello @dbdermer,

    We don’t have documentation but I can explain how this can be done.

    Messages can be inserted using this function: pms_add_member_subscription_log( $subscription_id, $log_message_code, $extra_data = array() )

    The first parameter is the subscription_id, the second is a code that can be used to interpret your custom message and the third parameter, which is optional, can be used to save some additional information about this log.

    Then the code that you added can be interpreted using this filter: pms_subscription_logs_system_error_messages which has 2 parameters.

    First one is the message in user readable format and the second one is the log entry. So you can use the log entry to generate a relevant message that is displayed when an admin is looking at the Edit Subscription page. Search the codebase for this filter to see our usage example.

    Hope this helps!

    Regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Subscription Logs’ is closed to new replies.