Skip to content

Commit

Permalink
Add a comment about required plan
Browse files Browse the repository at this point in the history
  • Loading branch information
okmttdhr committed Nov 29, 2023
1 parent d792e75 commit 2f9b04b
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,13 @@ export const useCanPreviewButNeedUpgrade = ( {
};
const link =
previewingTheme.type === WOOCOMMERCE_THEME
? generateCheckoutUrl( PLAN_BUSINESS ) // For a WooCommerce theme, the users should have the Business plan or higher.
: generateCheckoutUrl( PLAN_PREMIUM ); // For a Premium theme, the users should have the Premium plan or higher.
? /**
* For a WooCommerce theme, the users should have the Business plan or higher,
* AND the WooCommerce plugin has to be installed.
*/
generateCheckoutUrl( PLAN_BUSINESS )
: // For a Premium theme, the users should have the Premium plan or higher.
generateCheckoutUrl( PLAN_PREMIUM );
window.location.href = link;

// TODO: Add the track event.
Expand Down

0 comments on commit 2f9b04b

Please sign in to comment.