schlackl
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Mesmerize] Custom Header Images for Inner Pagesexcellent! that worked just great – thank you for the prompt response!
I see….
OK – one more question – can I customize the text that displays in the plugin screens? Some phrases I’d like to change such as “Join Membership” and “Please check the details of the membership below…”
Is it possible to customize those phrases?
Seriously? I AM a developer! I thought you were too…well guess I’ll have to go through your code to figure out how it works – just figured you would know seeing as you are the plugin developer….
Hi Bojan,
Yes, I think that should work however I’m having a separate issue now – I’m trying to have the correct expiry date show on the “cart” screen after you add a membership and are ready to pay.
I am using the hook ‘ms_view_frontend_payment_form_start’ and am setting the $subscription->expire_date and then calling $subscription->save()
That doesn’t appear to be working – it still displays the incorrect expiry date on the screen “You will pay USD 0.99 for access until March 7, 2016 4:00 pm”
It should be “You will pay USD 0.99 for access until February 29, 2016 4:00 pm”
Here’s my function and add_action call code….do you see any issues with that? I need it to reset the expiry date when the membership is added to the cart and then of course be sure that date holds after payment is received.
function setPreviewMembershipExpiryDate($membership, $objPurchase){ //all preview membership should expire on a Monday //if it's a weekly membership then // set it to expire "next Monday" if today is NOT Monday // otherwise do nothing as it will expire in 7 days by default //if it's an annual membership then // set it to expire the "last Monday" from current expiry if current expiry is NOT Monday // otherwise do nothing as it already expires on a Monday $subscription = $objPurchase->data['ms_relationship']; $membership = $objPurchase->data['membership']; $cur_expiry_date = $subscription->calc_expire_date($subscription->start_date); if($membership->period['period_unit'] == 7){ //weekly membership $dow = date ('l'); if($dow != "Monday"){ $cur_expiry_date = strtotime("next Monday", time()); $new_start_date = strtotime("last Monday", time()); } $cur_expiry_date = date('Y-m-d', $cur_expiry_date); $new_start_date = date('Y-m-d', $new_start_date); $subscription->start_date = $new_start_date; $subscription->expire_date = $cur_expiry_date; $subscription->save(); } } add_action( 'ms_view_frontend_payment_form_start', 'setPreviewMembershipExpiryDate', 10, 2 );Hi there – yes, I’ve looked at the API Docs and they have indeed been helpful when it comes to accessing members and their subscriptions, however the docs make little or no mention of hooks.
What I’ve tried I’ve found by hunting through the code looking at do_action() calls.
The only hook I see mentioned in the docs is ‘ms_init’ and ‘ms_active’
Is there somewhere else that the hooks are documented?My issue is that I need to ensure that a purchased membership always expires on the following Monday regardless of what day of the week it is purchased. So it’s a finite membership but the length is variable based on the purchase day of week.
I want to simply update the expiry date of the membership after the payment has been successfully processed. There must be a hook I can implement to initiate my update process….
Any ideas?
Forum: Plugins
In reply to: [All-in-One WP Migration and Backup] Restore hangingHi Pim,
The older version worked – I was able to migrate without issue to the new server.
I’ll fire a note to support regarding the issue and perhaps you can resolve it for future πForum: Plugins
In reply to: [All-in-One WP Migration and Backup] Restore hangingI am having the same issue – exports fine but it hangs on “restore” with the “Unpacking archive” message…..
Running WP 4.3.1 as well and the latest version of the plugin.
My backup is 503MB – not large really….and I’ve got the backup file on the server where the restore is happening so it’s not an upload issue.
Any thoughts would be helpful.
Forum: Plugins
In reply to: [WP All Import β Product Import for WooCommerce] WP 4.2.1 Compatible?indeed – not sure what happened there but regardless, this issue is resolved.
Forum: Plugins
In reply to: [WP All Import β Product Import for WooCommerce] WP 4.2.1 Compatible?did you uninstall the plugin? I found the issue – it was a missing port in my settings but now I see the plugin is not installed…..
Forum: Plugins
In reply to: [WP All Import β Product Import for WooCommerce] WP 4.2.1 Compatible?Yes, I can load that screen – there are no imports to manage because following the upload it gives me the error described above.
How can I send you a screenshot? I have one for you…but can’t seem to upload here….
Forum: Plugins
In reply to: [Register Plus Redux] Compatibility w WP 3.8.1in my case it doesn’t seem to.
For example, I set the registration redirect to a specific page and it doesn’t redirect there.
I enabled email verification and I don’t get a verification email, I am registered immediately and then I have to login.
Then when I login as a user I’m taken to the wp-admin section – completely NOT where I want them to go.
Any ideas what is happening for me??
You can see the register page here:
http://shorts.tv/theoscarshorts/register/?redirect_to=http://shorts.tv/theoscarshorts/the-films/
I am running WP 3.8.1 and also have Theme My Login plugin installed so I wonder if that is conflicting in some way?
Any ideas would be most helpful! Thanks π