Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Look for woocommerce/classic-shortcode when determining if task list …
Browse files Browse the repository at this point in the history
…item should display
  • Loading branch information
mikejolley committed Oct 18, 2023
1 parent 4d571a9 commit 9943f69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Domain/Services/OnboardingTasks/ReviewCheckoutTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function is_complete() {
*/
private function has_cart_block() {
$cart_page_id = wc_get_page_id( 'cart' );
$has_block_cart = $cart_page_id && has_block( 'woocommerce/cart', $cart_page_id );
$has_block_cart = $cart_page_id && ( has_block( 'woocommerce/cart', $cart_page_id ) || has_block( 'woocommerce/classic-shortcode', $cart_page_id ) );

return $has_block_cart;
}
Expand All @@ -81,7 +81,7 @@ private function has_cart_block() {
*/
private function has_checkout_block() {
$cart_page_id = wc_get_page_id( 'cart' );
$has_block_cart = $cart_page_id && has_block( 'woocommerce/cart', $cart_page_id );
$has_block_cart = $cart_page_id && ( has_block( 'woocommerce/cart', $cart_page_id ) || has_block( 'woocommerce/classic-shortcode', $cart_page_id ) );

return $has_block_cart;
}
Expand Down

0 comments on commit 9943f69

Please sign in to comment.