← All changes
|
app/Modules/PaymentMethods/PromoGateways/Pro/PromoGatewaySettings.php
+4
-3
1.3.21
→
1.6.5
View file →
| @@ -1,8 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace FluentCart\App\Modules\PaymentMethods\PromoGateways\Pro; |
| 4 | 4 | |
| 5 | +use FluentCart\App\Helpers\Helper; | |
| 5 | 6 | use FluentCart\App\Modules\PaymentMethods\Core\BaseGatewaySettings; |
| 6 | 7 | use FluentCart\Framework\Support\Arr; |
| 7 | 8 | |
| 8 | 9 | class PromoGatewaySettings extends BaseGatewaySettings |
| @@ -9,10 +10,8 @@ | ||
| 9 | 10 | { |
| 10 | 11 | protected $gatewaySlug; |
| 11 | 12 | protected $customStyles = []; |
| 12 | 13 | |
| 13 | - private $upgradeUrl = 'https://fluentcart.com/discount-deal'; | |
| 14 | - | |
| 15 | 14 | public function __construct($gatewaySlug) |
| 16 | 15 | { |
| 17 | 16 | $this->gatewaySlug = $gatewaySlug; |
| 18 | 17 | $this->methodHandler = 'fluent_cart_payment_settings_promo_gateway'; |
| @@ -157,9 +156,11 @@ | ||
| 157 | 156 | . '</button>'; |
| 158 | 157 | } |
| 159 | 158 | |
| 160 | 159 | // Otherwise show upgrade button |
| 161 | - return '<a href="' . esc_url($this->upgradeUrl) . '" target="_blank" style="display: inline-block; background: ' . $styles['button_bg'] . '; color: ' . $styles['button_text'] . '; padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 15px; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);">' | |
| 160 | + $upgradeUrl = Helper::getUpgradeUrl('feature_lock_gateway_' . $this->gatewaySlug); | |
| 161 | + | |
| 162 | + return '<a href="' . esc_url($upgradeUrl) . '" target="_blank" style="display: inline-block; background: ' . $styles['button_bg'] . '; color: ' . $styles['button_text'] . '; padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 15px; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);">' | |
| 162 | 163 | . __('Upgrade to FluentCart Pro', 'fluent-cart') . ' →' |
| 163 | 164 | . '</a>'; |
| 164 | 165 | } |
| 165 | 166 | |