Changeset 3384361
- Timestamp:
- 10/25/2025 08:40:32 AM (5 months ago)
- Location:
- woocommerce-jetpack/trunk
- Files:
-
- 11 added
- 4 edited
-
assets/css (added)
-
assets/js (added)
-
includes/admin/class-booster-onboarding.php (added)
-
includes/admin/onboarding-map.php (added)
-
includes/admin/views (added)
-
includes/core/class-wcj-admin.php (modified) (4 diffs)
-
includes/data/featuresMatrix.json (added)
-
includes/emails/templates/plain (added)
-
includes/emails/templates/plain/wcj-admin-preorder-purchase.php (added)
-
includes/emails/templates/plain/wcj-customer-preorder-confirmation.php (added)
-
includes/emails/templates/wcj-admin-preorder-purchase.php (added)
-
includes/emails/templates/wcj-customer-preorder-confirmation.php (added)
-
readme.txt (modified) (2 diffs)
-
version-details.json (modified) (1 diff)
-
woocommerce-jetpack.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-jetpack/trunk/includes/core/class-wcj-admin.php
r3367619 r3384361 3 3 * Booster for WooCommerce - Core - Admin 4 4 * 5 * @version 7.3. 15 * @version 7.3.2 6 6 * @since 3.2.4 7 7 * @author Pluggabl LLC. … … 50 50 * Constructor. 51 51 * 52 * @version 7. 2.552 * @version 7.3.2 53 53 * @since 3.2.4 54 54 */ … … 57 57 $this->cats = include WCJ_FREE_PLUGIN_PATH . '/includes/admin/wcj-modules-cats.php'; 58 58 $this->custom_dashboard_modules = apply_filters( 'wcj_custom_dashboard_modules', array() ); 59 60 if ( 'woocommerce-jetpack.php' === basename( WCJ_FREE_PLUGIN_FILE ) ) { 61 require_once WCJ_FREE_PLUGIN_PATH . '/includes/admin/class-booster-onboarding.php'; 62 new Booster_Onboarding(); 63 } 59 64 60 65 if ( is_admin() ) { … … 321 326 return $footer_text; 322 327 } 328 329 /** 330 * Getting Started page 331 */ 332 public function wcj_getting_started_page() { 333 if ( class_exists( 'Booster_Onboarding' ) ) { 334 $onboarding = new Booster_Onboarding(); 335 $onboarding->getting_started_page(); 336 } 337 } 338 323 339 /** 324 340 * Add menu item -
woocommerce-jetpack/trunk/readme.txt
r3367619 r3384361 4 4 Tags: woocommerce, abandoned cart, cart recovery, swatches, woocommerce pdf invoices, variation swatches, woocommerce multi currency, woocommerce dynamic pricing, woocommerce checkout fields, woocommerce product addons, woocommerce product feed, currency switcher 5 5 Requires at least: 5.8 6 Tested up to: 6.8. 26 Tested up to: 6.8.3 7 7 Requires PHP: 7.2 8 Stable tag: 7.3. 18 Stable tag: 7.3.2 9 9 License: GNU General Public License v3.0 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 298 298 299 299 == Changelog == 300 301 = 7.3.2 - 25/10/2025 = 302 * NEW FEATURE - Onboarding appears right after you activate the plugin, allowing you to set up modules with a single click. 303 * WooCommerce 10.3.3 Tested 304 * WordPress 6.8.3 Tested 300 305 301 306 = 7.3.1 - 25/09/2025 = -
woocommerce-jetpack/trunk/version-details.json
r3367619 r3384361 1 1 { 2 "0" : "= 7.3. 1 25/09/2025 =",3 "1" : "* NEW – Sales Notifications (Lite): Displays simple “recent purchase” popups from confirmed orders with a fixed template and two positions. Advanced text, images, multiple statuses, styling, sounds, device rules, and full timing are Elite.",4 "2" : "* NEW – Pre-Orders (Lite): Enables basic pre-orders on up to 3 products (default 1) with fixed button text and a standard message. Mixed-cart control, deposits/fees, special shipping, dedicated emails, role/category rules, dates, and UI customization are Elite.",5 "3" : "* ENHANCEMENT – Settings UX: Clear “Lite/Elite” labels and cleaner descriptions across modules. Small accessibility improvements for better navigation."2 "0" : "= 7.3.2 25/10/2025 =", 3 "1" : "* NEW FEATURE - Onboarding appears right after you activate the plugin, allowing you to set up modules with a single click.", 4 "2" : "* WooCommerce 10.3.3 Tested", 5 "3" : "* WordPress 6.8.3 Tested" 6 6 } -
woocommerce-jetpack/trunk/woocommerce-jetpack.php
r3367619 r3384361 5 5 * Plugin URI: https://booster.io 6 6 * Description: Supercharge your WooCommerce site with these awesome powerful features. More than 100 modules.All in one WooCommerce plugin. 7 * Version: 7.3. 17 * Version: 7.3.2 8 8 * Author: Pluggabl LLC 9 9 * Author URI: https://booster.io … … 11 11 * Domain Path: /langs 12 12 * Copyright: © 2020 Pluggabl LLC. 13 * WC tested up to: 10. 2.113 * WC tested up to: 10.3.3 14 14 * License: GNU General Public License v3.0 15 15 * php version 7.2 … … 77 77 * @since 2.4.7 78 78 */ 79 public $version = '7.3. 1';79 public $version = '7.3.2'; 80 80 81 81 /** … … 238 238 add_action( 'plugins_loaded', 'w_c_j' ); 239 239 240 241 /** 242 * Wc jetpack activation hook. 243 * 244 * @version 5.4.1 240 // 1. Plugin activate hone par flag set karo 241 register_activation_hook( __FILE__, 'wcj_set_activation_redirect_free' ); 242 243 /** 244 * Set redirect flag after plugin activation. 245 * 246 * This function runs on plugin activation and stores an option 247 * that triggers a redirect to the onboarding/setup page. 248 * 249 * @return void 245 250 */ 246 function wcj_activation_hook() { 247 // Add transient to trigger redirect. 248 set_transient( '_wcj_activation_redirect', 1, 30 ); 249 } 250 register_activation_hook( __FILE__, 'wcj_activation_hook' ); 251 function wcj_set_activation_redirect_free() { 252 add_option( 'wcj_do_redirect', true ); 253 } 254 255 // 2. Plugin update hone par flag set karo 256 add_action( 'upgrader_process_complete', 'wcj_set_update_redirect_free', 10, 2 ); 257 258 /** 259 * Set redirect flag after plugin update. 260 * 261 * This function checks if the current process is a plugin update 262 * and, if this plugin was updated, it sets an option that triggers 263 * a redirect to the onboarding/setup page. 264 * 265 * @param WP_Upgrader $upgrader_object The upgrader object. 266 * @param array $options Array of bulk item update data. 267 * 268 * @return void 269 */ 270 function wcj_set_update_redirect_free( $upgrader_object, $options ) { 271 // Yoda conditions used below ('literal' === $var). 272 if ( isset( $options['action'], $options['type'] ) && 'update' === $options['action'] && 'plugin' === $options['type'] ) { 273 if ( isset( $options['plugins'] ) && is_array( $options['plugins'] ) ) { 274 foreach ( $options['plugins'] as $plugin ) { 275 if ( plugin_basename( __FILE__ ) === $plugin ) { 276 add_option( 'wcj_do_redirect', true ); 277 // stop looping once found. 278 break; 279 } 280 } 281 } 282 } 283 } 284 285 // Redirect to Getting Started page after plugin activation/update. 286 add_action( 'admin_init', 'wcj_redirect_after_activation_or_update_free' ); 287 288 /** 289 * Redirects admin to the Getting Started page after plugin activation or update. 290 * 291 * Checks for the `wcj_do_redirect` option set during activation/update. 292 * Prevents redirect in network admin or multi-site bulk activation cases. 293 * 294 * @return void 295 */ 296 function wcj_redirect_after_activation_or_update_free() { 297 if ( get_option( 'wcj_do_redirect', false ) ) { 298 delete_option( 'wcj_do_redirect' ); 299 300 if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) { 301 return; 302 } 303 304 wp_safe_redirect( admin_url( 'admin.php?page=wcj-getting-started&modal=onboarding#launch-onboarding-modal' ) ); 305 exit; 306 } 307 }
Note: See TracChangeset
for help on using the changeset viewer.