Jordan Acosta
Forum Replies Created
-
You have to write a function to generate the code, and then give it to the user somehow.
PMPro has a function,
pmpro_getDiscountCode, you can use to generate a promo code. You’ll have to save it to the DB manually, but you can see how that’s done in the plugin linked to above.Since I’m using WooCommerce to sell the promo codes, I’m hooking into
woocommerce_order_status_completed, checking to see what kind of code was purchased, creating a code and emailing it to the purchaser.Thanks for the tip, and link to that plugin. Using discount codes is the approach I’ve settled on, based on advice I got from the PMPro forums.
I found the two action hooks,
pmpro_update_orderandpmpro_add_order, and thought I had finally found what I was looking for. Neither of these hooks seem to be working, though. I tried hooking into them and logging to the Apache logs, but nothing shows up.Any guidance on this would be appreciated. Your plugin has been easy to work with so far, so I feel like I’m missing something here.
I had another look at ipnhandler. It appears I was mistaken, and
$subscr_idis actually the id of the user’s existing subscription, (if there is one,) instead of of the id of the subscriber.Anyway, it looked like the proper way to do this would be change the values using the filter hook
pmpro_ipnhandler_level, but I guess that only returns the level, not the ID.It looks like I just need to set
$subscr_idin the form, and then ipnhandler will set the membership on that user. Is that right?Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Stopped Working after Upgrade to 0.4I added a
user_emailfield, and changed your plugin to hook intouser_registerinstead ofregister_post. That got it working.It looks like Paid Memberships Pro bypasses the typical user registration flow of
register_form–>register_post–>user_register, because it usesinsert_userto add the user to the database. The only hook it triggers isuser_register.So this was an issue with Paid Memberships Pro, not Mailchimp for WP.
Thanks for your help.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Stopped Working after Upgrade to 0.4The email isn’t named “user_email” or “signup_email”. That must be it.
I swear the plugin was working before, but it was a too-long, late-night coding session, so maybe I’m mistaken.
I’ll try changing the registration form later. Thanks for the help.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Stopped Working after Upgrade to 0.4I just tried tolling back to version 0.3, and it still doesn’t work. Your plugin probably isn’t the real issue, then.
Thanks for your help. Sorry if I wasted too much of your time.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Stopped Working after Upgrade to 0.4Thanks for the help, by the way.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Stopped Working after Upgrade to 0.4It’s using a custom registration form, set up by the Paid Memberships Pro plugin. I made sure that
<?php do_action( 'register_form' ); ?>is in the template, and, under 0.3, that got it working.I have a bunch of email addresses on Bluehost I created just to test this, and am using a MailChimp list I created for testing as well.
For merge variables, the email is required. First and last name are present but not required.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Stopped Working after Upgrade to 0.4No, the last name field is not required.
I upgraded to 0.4.1, and no change.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Stopped Working after Upgrade to 0.4The site is running on WPEngine, by the way. And I’m developing in a virtual machine running Ubuntu 12.10.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Stopped Working after Upgrade to 0.4I upgraded WordPress to 3.5.2, and there’s no change.
Forum: Plugins
In reply to: [Plugin: AnythingSlider for WordPress] autoplay shortcode doesn't workI’m having this exact same problem. If anyone has a fix for this I’d really like to know.
Forum: Your WordPress
In reply to: Leave me some Site-Feedback!I like it. Is there going to be something at the top? If not, you might consider moving the title up a bit.