Hi,
Thanks so much for the reply. I’m not exactly sure what you’re asking but hoping this helps:
Memberpress plugin: it’s a paid plugin so they are not in the repository. If you email me directly, I’ll give you access to my admin. But maybe what I’ve included below helps.
Here is an example of the text editor when editing a Memberpress reminder email:
<div id="body" style="width: 600px; background: #EEECDD; margin: 0 auto; text-align: left; padding: 0px 20px 20px 20px;">
<div class="section" style="display: block; margin-bottom: 24px;">Hi {$user_first_name},</div>
<div class="section" style="display: block; margin-bottom: 24px;">We don't want you to miss out on this big discount. Join Guitar Animal now before your free trial expires to get 20% off your membership forever. You can cancel at any time. No hassle!</div>
<div class="section" style="display: block; margin-bottom: 24px;">Your 7-day free trial will end in just one day on <strong>{$subscr_expires_at}</strong>.</div>
<h3 class="section" style="display: block; margin-bottom: 24px;"><a href="https://guitaranimal.com/join/trial-expiring-discount/"><strong>Click this link before your trial ends for 20% off your membership!</strong></a>? That's just $10.36 per month!</h3>
<div class="section" style="display: block; margin-bottom: 24px;">Rock On!</div>
<div class="section" style="display: block; margin-bottom: 24px;">- Your friends at Guitar Animal</div>
</div>
And here is the Memberpress email template in their plugin:
<?php
if(!defined('ABSPATH')) {die('You are not allowed to call this page directly.');}
class MeprUserSubRenewsReminderEmail extends MeprBaseReminderEmail {
/** Set the default enabled, title, subject & body */
public function set_defaults($args=array()) {
$this->title = __('Subscription Renews Reminder Email to User','memberpress');
$this->description = __('This email is sent to the user when triggered.', 'memberpress');
$this->ui_order = 0;
$enabled = $use_template = $this->show_form = true;
$subject = sprintf( __('** Your %1$s', 'memberpress'), '{$reminder_description}' );
$body = $this->body_partial();
$this->defaults = compact( 'enabled', 'subject', 'body', 'use_template' );
$this->variables = array_unique(
array_merge( MeprRemindersHelper::get_email_vars(),
MeprSubscriptionsHelper::get_email_vars(),
MeprTransactionsHelper::get_email_vars() )
);
$this->test_vars = array(
'reminder_id' => 28,
'reminder_trigger_length' => 2,
'reminder_trigger_interval' => 'days',
'reminder_trigger_timing' => 'before',
'reminder_trigger_event' => 'sub-renews',
'reminder_name' => __('Subscription Renewing', 'memberpress'),
'reminder_description' => __('Subscription Renewing in 2 days', 'memberpress')
);
}
}
And here is the Memberpress email CSS:
.mepr-edit-email-toggle {
margin-left: 5px;
}
.mepr-edit-email input[type=text], .mepr-edit-email textarea {
width: 500px
}
.mepr-emails-pane {
margin-left: 15px;
}
.mepr-edit-email textarea {
min-height: 300px;
}
.mepr-emails-wrap label {
display: inline-block;
min-width: 275px;
width: 275px;
max-width: 275px;
}
.mepr-emails-wrap textarea, .emails .legend-pane {
display: inline-block;
vertical-align: top;
}
.mepr-emails-wrap .legend-pane {
padding-left: 10px;
/* border: 1px solid #DFDFDF;
border-radius: 3px;
-webkit-border-radius: 3px;
margin-left: 10px; */
min-width: 200px;
max-width: 200px;
width: 200px;
}
Thank you again!
Debbie