PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.3.0
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
← All changes | classes/class-cartflows-admin-notices.php +6 -9 3.1.2 → 3.3.0 View file →
@@ -328,9 +328,9 @@
328 328 </a>
329 329
330 330 <a href="#" class="astra-notice-close astra-review-notice">
331 331 <span class="dashicons dashicons-smiley"></span>
332 - <u>%8$s</u>
332 + %8$s
333 333 </a>
334 334 </div>
335 335 </div>',
336 336 $image_path,
@@ -745,22 +745,19 @@
745 745 public function should_display_nps_survey_notice() {
746 746
747 747 $is_store_checkout_imported = (bool) get_option( '_cartflows_wizard_store_checkout_set', false );
748 748 $onboarding_completed = (bool) get_option( 'wcf_setup_complete', false );
749 - $is_first_funnel_imported = (bool) get_option( 'wcf_first_flow_imported', false );
750 749 $total_funnels = $this->get_published_flow_count();
751 750
752 751 /**
753 - * Show the notice in any of these conditions:
752 + * Show the notice in either of these conditions:
754 753 * 1. User finished the onboarding wizard AND imported the store checkout funnel.
755 - * 2. User imported their first funnel AND has at least one published funnel.
756 - * 3. User has at least one published funnel (built manually).
757 - *
758 - * Note: condition 3 intentionally has NO upper bound on funnel count,
759 - * so power users with many funnels still see the survey.
754 + * 2. User has at least one published funnel — imported or built by hand. This has
755 + * NO upper bound on funnel count, so power users still see the survey, and it
756 + * subsumes the old "imported their first funnel" branch.
760 757 */
761 758 return ( true === $is_store_checkout_imported && true === $onboarding_completed )
762 - || ( true === $is_first_funnel_imported && ! empty( $total_funnels ) && 1 >= $total_funnels );
759 + || ! empty( $total_funnels );
763 760 }
764 761 }
765 762
766 763 Cartflows_Admin_Notices::get_instance();