Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions includes/managers/class-fs-checkout-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ public function get_query_params( Freemius $fs, $plugin_id, $plan_id, $licenses
// If add-on isn't activated assume the premium version isn't installed.
$is_premium = false;
}

// Override the checkout context with the add-on's purchase details so the checkout flow is initialized for the selected add-on instead of the parent product.
$context_params['plugin_id'] = $plugin_id;

foreach ( array( 'plan_id', 'pricing_id', 'billing_cycle', 'is_trial' ) as $param ) {
if ( fs_request_has( $param ) ) {
$context_params[ $param ] = fs_request_get( $param );
}
}
}

// Get site context secure params.
Expand Down
2 changes: 1 addition & 1 deletion start.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @var string
*/
$this_sdk_version = '2.13.3';
$this_sdk_version = '2.13.3.1';

#region SDK Selection Logic --------------------------------------------------------------------

Expand Down
Loading