Skip to content

Commit

Permalink
Update SettingsUpgrade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmigf committed Dec 13, 2024
1 parent 985e17e commit f03f23d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions includes/Settings/SettingsUpgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function extension_overview( $tab, $section ) {
),
);

$extension_license_infos = $this->get_extension_license_infos();
$extension_license_infos = $this->get_extension_license_infos( true );

$plugin_recommendations = array(
array(
Expand Down Expand Up @@ -269,6 +269,7 @@ public function get_extension_license_infos( $ignore_cache = false ) {
}

$extensions[] = 'bundle';
$utm_tags = 'utm_medium=plugin&utm_source=ips&utm_campaign=upgrade-tab&content=ips-bundle-upgrade';
$bundle_upgrade_url = '';
$upgrade_tiers = array(
// license limit => upgrade ID
Expand All @@ -292,7 +293,7 @@ public function get_extension_license_infos( $ignore_cache = false ) {
break;
case 'templates':
case 'bundle':
$license_info[ $extension ]['url'] = 'https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-bundle/';
$license_info[ $extension ]['url'] = "https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-bundle/?{$utm_tags}";
break;
}

Expand Down Expand Up @@ -325,7 +326,7 @@ public function get_extension_license_infos( $ignore_cache = false ) {
continue;
}

$bundle_upgrade_url = "https://wpovernight.com/checkout/?edd_action=sl_license_upgrade&license_id={$license_id}&upgrade_id={$upgrade_id}";
$bundle_upgrade_url = "https://wpovernight.com/checkout/?edd_action=sl_license_upgrade&license_id={$license_id}&upgrade_id={$upgrade_id}&{$utm_tags}";
}

// set bundle upgrade URL
Expand Down

0 comments on commit f03f23d

Please sign in to comment.