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 | modules/checkout/classes/class-cartflows-checkout-meta-data.php +31 -1 3.1.4 → 3.3.0 View file →
@@ -1114,9 +1114,39 @@
1114 1114 'display_align' => 'vertical',
1115 1115 );
1116 1116 }
1117 1117
1118 - return apply_filters( 'cartflows_admin_checkout_settings_fields', $settings );
1118 + // Pro-only sections: register them here so their upgrade nudge shows; Pro replaces them with the real fields.
1119 + if ( ! _is_cartflows_pro() ) {
1120 + $settings['settings']['checkout-link'] = array(
1121 + 'title' => __( 'Checkout Link', 'cartflows' ),
1122 + 'slug' => 'checkout-link',
1123 + 'priority' => 30,
1124 + 'fields' => array(
1125 + 'checkout-link' => array(
1126 + 'type' => 'pro-notice',
1127 + 'feature' => 'Checkout Link',
1128 + ),
1129 + ),
1130 + );
1131 + // Checkout Expiry does not apply to the Store Checkout, so skip its nudge there.
1132 + $flow_id = absint( get_post_meta( $step_id, 'wcf-flow-id', true ) );
1133 + if ( ! ( $flow_id && absint( Cartflows_Helper::get_global_setting( '_cartflows_store_checkout' ) ) === $flow_id ) ) {
1134 + $settings['settings']['checkout-expiry'] = array(
1135 + 'title' => __( 'Checkout Expiry', 'cartflows' ),
1136 + 'slug' => 'checkout-expiry',
1137 + 'priority' => 40,
1138 + 'fields' => array(
1139 + 'checkout-expiry' => array(
1140 + 'type' => 'pro-notice',
1141 + 'feature' => 'Checkout Expiry',
1142 + ),
1143 + ),
1144 + );
1145 + }
1146 + }
1147 +
1148 + return apply_filters( 'cartflows_admin_checkout_settings_fields', $settings, $step_id );
1119 1149 }
1120 1150
1121 1151 /**
1122 1152 * Get data.