| @@ -53,9 +53,12 @@ | ||
| 53 | 53 | </div> |
| 54 | 54 | HTML; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - $message_above_input_field = fs_esc_html_inline( "Enter the email address you've used for the upgrade below and we will resend you the license key.", 'ask-for-upgrade-email-address', $slug ); | |
| 57 | + $message_above_input_field = $fs->is_only_premium() ? | |
| 58 | + fs_esc_html_inline( "Enter the email address you've used during the purchase and we will resend you the license key.", 'ask-for-upgrade-email-address-premium-only', $slug ) : | |
| 59 | + fs_esc_html_inline( "Enter the email address you've used for the upgrade below and we will resend you the license key.", 'ask-for-upgrade-email-address', $slug ); | |
| 60 | + | |
| 58 | 61 | $modal_content_html = <<< HTML |
| 59 | 62 | <div class="notice notice-error inline license-resend-message"><p></p></div> |
| 60 | 63 | <p>{$message_above_input_field}</p> |
| 61 | 64 | <div class="input-container"> |
| @@ -141,9 +144,9 @@ | ||
| 141 | 144 | return; |
| 142 | 145 | } |
| 143 | 146 | |
| 144 | 147 | $.ajax({ |
| 145 | - url : ajaxurl, | |
| 148 | + url : <?php echo Freemius::ajax_url() ?>, | |
| 146 | 149 | method : 'POST', |
| 147 | 150 | data : { |
| 148 | 151 | action : '<?php echo $fs->get_ajax_action( 'resend_license_key' ) ?>', |
| 149 | 152 | security : '<?php echo $fs->get_ajax_security( 'resend_license_key' ) ?>', |