Plugin Directory

Changeset 3384361


Ignore:
Timestamp:
10/25/2025 08:40:32 AM (5 months ago)
Author:
ronyp
Message:

v7.3.2

Location:
woocommerce-jetpack/trunk
Files:
11 added
4 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-jetpack/trunk/includes/core/class-wcj-admin.php

    r3367619 r3384361  
    33 * Booster for WooCommerce - Core - Admin
    44 *
    5  * @version 7.3.1
     5 * @version 7.3.2
    66 * @since   3.2.4
    77 * @author  Pluggabl LLC.
     
    5050         * Constructor.
    5151         *
    52          * @version 7.2.5
     52         * @version 7.3.2
    5353         * @since   3.2.4
    5454         */
     
    5757            $this->cats                     = include WCJ_FREE_PLUGIN_PATH . '/includes/admin/wcj-modules-cats.php';
    5858            $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            }
    5964
    6065            if ( is_admin() ) {
     
    321326            return $footer_text;
    322327        }
     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
    323339        /**
    324340         * Add menu item
  • woocommerce-jetpack/trunk/readme.txt

    r3367619 r3384361  
    44Tags: 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
    55Requires at least: 5.8
    6 Tested up to: 6.8.2
     6Tested up to: 6.8.3
    77Requires PHP: 7.2
    8 Stable tag: 7.3.1
     8Stable tag: 7.3.2
    99License: GNU General Public License v3.0
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    298298
    299299== 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
    300305
    301306= 7.3.1 - 25/09/2025 =
  • woocommerce-jetpack/trunk/version-details.json

    r3367619 r3384361  
    11{
    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"
    66}
  • woocommerce-jetpack/trunk/woocommerce-jetpack.php

    r3367619 r3384361  
    55 * Plugin URI: https://booster.io
    66 * Description: Supercharge your WooCommerce site with these awesome powerful features. More than 100 modules.All in one WooCommerce plugin.
    7  * Version: 7.3.1
     7 * Version: 7.3.2
    88 * Author: Pluggabl LLC
    99 * Author URI: https://booster.io
     
    1111 * Domain Path: /langs
    1212 * Copyright: © 2020 Pluggabl LLC.
    13  * WC tested up to: 10.2.1
     13 * WC tested up to: 10.3.3
    1414 * License: GNU General Public License v3.0
    1515 * php version 7.2
     
    7777         * @since 2.4.7
    7878         */
    79         public $version = '7.3.1';
     79        public $version = '7.3.2';
    8080
    8181        /**
     
    238238add_action( 'plugins_loaded', 'w_c_j' );
    239239
    240 
    241 /**
    242  * Wc jetpack activation hook.
    243  *
    244  * @version 5.4.1
     240// 1. Plugin activate hone par flag set karo
     241register_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
    245250 */
    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' );
     251function wcj_set_activation_redirect_free() {
     252    add_option( 'wcj_do_redirect', true );
     253}
     254
     255// 2. Plugin update hone par flag set karo
     256add_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 */
     270function 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.
     286add_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 */
     296function 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.