| @@ -53,12 +53,18 @@ | ||
| 53 | 53 | add_action( 'admin_notices', [ $this, 'showActivationMessage' ] ); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | if ( $this->licence->isFree() ) { |
| 57 | - $template = 'upgrade-alert.php'; | |
| 57 | + | |
| 58 | + if ( tpt_fs()->is_anonymous() || !tpt_fs()->is_installed_on_site() ) { | |
| 59 | + $template = 'opt-in-alert.php'; | |
| 60 | + } else { | |
| 61 | + $template = 'upgrade-alert.php'; | |
| 62 | + } | |
| 63 | + | |
| 58 | 64 | add_action( 'woocommerce_settings_' . Settings::SETTINGS_PAGE, function () use( $template ) { |
| 59 | 65 | $this->fileManager->includeTemplate( 'admin/alerts/' . $template, [ |
| 60 | - 'upgradeUrl' => tpt_fs()->get_upgrade_url(), | |
| 66 | + 'upgradeUrl' => $this->licence->getUpgradeLink(), | |
| 61 | 67 | 'contactUsUrl' => $this->licence->getContactUsPageUrl(), |
| 62 | 68 | ] ); |
| 63 | 69 | $this->fileManager->includeTemplate( 'admin/only-in-premium-script.php' ); |
| 64 | 70 | } ); |