Skip to content

Commit

Permalink
Fix WooPay button in classic cart/product pages (#8861)
Browse files Browse the repository at this point in the history
  • Loading branch information
malithsen authored May 22, 2024
1 parent 9cffee4 commit 80f9999
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/fix-blocks-page-detection-for-woopay
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Fixes an unreleased bug


Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const expressCheckoutIframe = async ( api, context, emailSelector ) => {
userEmail = email;
urlParams.append( 'email', email );
}
urlParams.append( 'is_blocks', !! wcSettings.wcBlocksConfig );
urlParams.append( 'is_blocks', !! window.wcSettings?.wcBlocksConfig );
urlParams.append( 'is_express', 'true' );
urlParams.append( 'express_context', context );
urlParams.append( 'source_url', window.location.href );
Expand Down

0 comments on commit 80f9999

Please sign in to comment.