From 57e02df205862ba58717711dbe00684fd405f57e Mon Sep 17 00:00:00 2001 From: Alexandre Faustino Date: Fri, 13 Dec 2024 17:53:39 +0000 Subject: [PATCH] Update SettingsUpgrade.php --- includes/Settings/SettingsUpgrade.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/includes/Settings/SettingsUpgrade.php b/includes/Settings/SettingsUpgrade.php index 87dc3441..9b97796a 100644 --- a/includes/Settings/SettingsUpgrade.php +++ b/includes/Settings/SettingsUpgrade.php @@ -269,7 +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'; + $default_utm_tags = 'utm_medium=plugin&utm_source=ips&utm_campaign=upgrade-tab'; $bundle_upgrade_url = ''; $upgrade_tiers = array( // license limit => upgrade ID @@ -289,11 +289,13 @@ public function get_extension_license_infos( $ignore_cache = false ) { // set default URL switch ( $extension ) { case 'pro': - $license_info[ $extension ]['url'] = 'https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-professional/'; + $pro_utm_tags = $default_utm_tags . '&utm_content=ips-pro-upgrade'; + $license_info[ $extension ]['url'] = "https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-professional/?{$pro_utm_tags}"; break; case 'templates': case 'bundle': - $license_info[ $extension ]['url'] = "https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-bundle/?{$utm_tags}"; + $bundle_utm_tags = $default_utm_tags . '&utm_content=ips-plus-bundle-upgrade'; + $license_info[ $extension ]['url'] = "https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-bundle/?{$bundle_utm_tags}"; break; } @@ -326,7 +328,8 @@ 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}&{$utm_tags}"; + $upgrade_utm_tags = $default_utm_tags . '&utm_content=ips-plus-bundle-upgrade+upgrade-from-' . $extension; + $bundle_upgrade_url = "https://wpovernight.com/checkout/?edd_action=sl_license_upgrade&license_id={$license_id}&upgrade_id={$upgrade_id}&{$upgrade_utm_tags}"; } // set bundle upgrade URL