Forum Replies Created
-
AuthorPosts
-
sandyfootprintsMember
The session info from my server is as follows:
[redacted]
Please can anyone help? Its becoming urgent now!
Thank you!
sandyfootprintsMemberOK I created the cart button and checkout page and enabled the setting to redirect to checkout when an item is added to the cart. However, when it redirects the page says my cart is empty… so I’m not even making it to the part in the test in the link you sent me where you can view the product in the cart! What could be causing this?
Thanks!
sandyfootprintsMemberHi,
I can’t do this check because I don’t have a cart on my site! I just want a ‘buy now’ button that will take to manual payment…
And yes I do have multiple ayment gateways and manual payment options settings setup and enabled…
October 21, 2013 at 8:59 am in reply to: How do I determine the number of days left until account expiry? #58386sandyfootprintsMemberThat’s perfect thank you! I’ve managed to do exactly what I needed:
<?php
$emember_auth = Emember_Auth::getInstance();
$user_id = $emember_auth->getUserInfo('member_id');
if (!empty($user_id))
{
//User is logged in so lets check the member's expiry date
$expiry_date = emember_get_expiry_by_member_id($user_id);
$today = date('Y-m-d');
$datediff = strtotime($expiry_date) - strtotime($today);
$numtilexpire = floor($datediff/(60*60*24));</p>
if ($numtilexpire < 11) {
echo '<p>You have '.$numtilexpire.' days until your membership expires. Renew link here.</p>';
}
}
?>Thank you very much for all your help and patience!
October 20, 2013 at 9:41 am in reply to: How do I determine the number of days left until account expiry? #58384sandyfootprintsMemberhi,
that still doesn’t help me acheive what i need. if the account is expired using
[emember_protected for=3]
[/emember_protected]doesn’t work – the content doesn’t show even though the member is logged in at the level because the account is expired.
I need to show specific renewal buttons for subscription costs because the membership levels are set by admin and the end user shouldn’t have the choice of a membership level to renew to.
so – I need to be able to show specific content based on membership level even when the account has expired.
Also – I would like to display in the membership page:
‘Your account has X days until it expires – please renew your subscription fees at this link’
How can I achieve this?
Thanks
October 19, 2013 at 10:33 am in reply to: How do I determine the number of days left until account expiry? #58382sandyfootprintsMemberalso, i need to be able to display different renewal buttons based on the current membership level of the expired account – i have tried to do this using
wp_emember_is_member_logged_in('7')
etc with the different membership levels to define various content within the page but these don’t seem to apply once the account is set as expired – please can you advise?
October 19, 2013 at 10:11 am in reply to: How do I determine the number of days left until account expiry? #58381sandyfootprintsMemberHi,
Thanks for your help, but I would like to be able to display custom information based on whether the users account is near or has passed expiry. Is there some php you could give me to handle that?
Thanks
October 18, 2013 at 1:25 pm in reply to: How do I determine the number of days left until account expiry? #58379sandyfootprintsMemberAlso, if the account has passed its expiry date is there a php variable I can use to define a different menu on the site (I have already set up the different menus based on different logged in membership levels.
Thanks!
-
AuthorPosts