Forum Replies Created
-
AuthorPosts
-
February 7, 2020 at 11:47 pm in reply to: Action hook swpm_payment_ipn_processed doesn't work for recurring paiements #19755
admin
KeymasterI can’t see any obvious mistakes in there. This custom coding troubleshooting is beyond the scope of this free support forum. It will need to be handled via a paid ticket option.
February 7, 2020 at 5:22 am in reply to: Two bugs with the swpm_auto_redirect_non_members() hook provided. #19751admin
KeymasterIt is hard to troubleshoot custom coding related issues without being in that environment and changing lines of codes on the fly.
I have a feeling that adding a check against the wp_doing_ajax() function call will be good here.
You can try adding the following before that code is executed:
if ( function_exists('wp_doing_ajax') && wp_doing_ajax()){ //wp_doing_ajax() so no need to execute this code return true; }Alternatively, maybe execute that code on “init” hook of WordPress (instead of “pre_get_posts” filter hook).
February 6, 2020 at 11:27 pm in reply to: Action hook swpm_payment_ipn_processed doesn't work for recurring paiements #19748admin
KeymasterYes, that hook will be triggered for testmode transactions also.
February 5, 2020 at 10:27 pm in reply to: Action hook swpm_payment_ipn_processed doesn't work for recurring paiements #19745admin
KeymasterWe don’t have example data for this. You can dump the array content to a file from your test script to see what you are receiving. Below is an example of how the $ipn_data array structure looks like:
$ipn_data[‘mc_gross’]
$ipn_data[‘first_name’]
$ipn_data[‘last_name’]
$ipn_data[‘payer_email’]
$ipn_data[‘membership_level’]
$ipn_data[‘txn_id’]
$ipn_data[‘subscr_id’]
$ipn_data[‘swpm_id’]
$ipn_data[‘ip’]
$ipn_data[‘custom’]
$ipn_data[‘gateway’]
$ipn_data[‘status’]admin
KeymasterThe “Force WP User Synchronization” option shouldn’t bee needed. If the login and logout process is working fine without that checkbox, please keep it unchecked. It is unchecked by default.
January 30, 2020 at 5:40 am in reply to: Custom Post Types does not seem to be able to be protected? #19700admin
KeymasterThank you for sharing your code.
Just wanted to mention that the following addon can be helpful for protecting custom post types:
https://simple-membership-plugin.com/full-page-protection-addon-simple-membership/admin
KeymasterYou only need to translate the Main plugin (not the addon). The strings of the partial protection addon is available in the simple-membership.pot file (the POT file of the main plugin).
You need to do the translation from the POT file:
https://simple-membership-plugin.com/translate-simple-membership-plugin/January 20, 2020 at 2:02 am in reply to: Stripe subscription cancellation only works in sandbox mode #19642admin
KeymasterI tested this myself to make sure everything with the current version of Stripe and our plugin is working fine. Something somewhere on your site has gotten messed up. This is a site specific issue so I don’t really have a specific answer for it. It is beyond the scope of this free support to delve into the specific site setup related conflict/issues.
It is worth doing the following:
#) Make sure the version of the plugin that you are using right now is v3.9.5 (you can check it from the plugins menu of your admin dashboard).
#) Go to the settings menu of the plugin and make sure the sandbox option is turned OFF (so the plugin is set to live mode).
#) Create a new payment button everything being in live mode (both the plugin and the Stripe account). Then test with that payment button to see if you still get the error.admin
KeymasterThank you. This has been added in the new version of the plugin.
January 13, 2020 at 5:37 am in reply to: Stripe subscription cancellation only works in sandbox mode #19608admin
KeymasterThis issue usually happens when the plan you created in your stripe account was in sandbox mode and then it was hooked to a payment button that is in live mode (or vice versa).
Create a brand new stripe subscription plan in LIVE mode. Make sure you are viewing live data in your Stripe account. Then hook that plan to a payment button you create inside the plugin (in live mode). Do a subscription and cancellation after that.
admin
KeymasterI didn’t see your other email. I have just sent you an email to the address you use for this forum profile. If my answer in the email doesn’t help then reply back to it and I will take a look inside your site.
admin
KeymasterThis is not an advertized feature of the plugin. Anything that is not advertised, please assume it won’t do.
I have sent you an email to sort this out.
admin
KeymasterWe will try to add this to the custom messages addon in the next release.
For the time being, you can modify the following function’s PHP code to customize it:
simple-membership/classes/shortcode-related/class.swpm-shortcodes-handler.phpLook for the following function:
swpm_show_mini_login_scJanuary 7, 2020 at 1:57 am in reply to: T&C + Privacy Policy checkboxes not showing on Registration Form #19574admin
KeymasterWith the form builder, you can create any checkboxes (for terms and conditions) that you want to create (that gives you greater flexibility in terms of exactly what checkboxes you want to display and where you want to show it on the form). Simply add a checkbox with that checkbox being a “required” field. So the user has to agree to it before they can complete the registration.
December 31, 2019 at 12:00 am in reply to: Add membership_level_name into a URL, shortcode double quote problem #19549admin
KeymasterI don’t know the full context (in terms of where this code is being executed and how) so my answer could be wrong. But below is an example of how you might try it. Basiclaly use single quote in the shortcode (instead of double quotes):
https://sitename.com/%5Bswpm_show_member_info column=’membership_level_name’]
I am not sure if WordPress will let you execute that shortcode inside the a tag (for security reason it maybe execute the shortcode. Probably a better option is to create a custom shortcode yourself that outputs the URL the way you want to.
-
AuthorPosts