Plugin Directory

Changeset 3392495


Ignore:
Timestamp:
11/09/2025 06:51:55 PM (5 months ago)
Author:
printapp
Message:

v2.2.3

Location:
printapp
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • printapp/tags/2.2.3/functions/front/accounts.php

    r3392165 r3392495  
    1919        $run_url = PRINT_APP_RUN_BASE_URL . "user/{$printapp_domain_key}/{$user_id}/wp?signature={$credentials['signature']}&time={$credentials['timestamp']}&lang={$lang_code}";
    2020        wp_enqueue_script('print_app_class', $run_url, '', '', true);
     21       
     22        wp_localize_script('print_app_class', 'printAppParams', array(
     23            'pluginRoot'    => site_url() . '/print_app',
     24            'cookieKey'     => PRINT_APP_CUSTOMIZATION_KEY,
     25            'wp_ajax_url'   => admin_url('admin-ajax.php'),
     26        ));
    2127
    2228        echo '<div id="print-app-user-projects" class="print-app-user-projects"></div>';
    2329    }
    24    
  • printapp/tags/2.2.3/functions/front/projects.php

    r3274694 r3392495  
    2121        $product_id = absint($_POST['product_id']); // Sanitize product_id
    2222        $result = General\save_customization_data($product_id, $value);
    23         if ($result !== FALSE)
    24             return wp_send_json_success('Customization data saved successfully: ' . $result);
     23       
     24        if ($result !== FALSE) {
     25            $product_url = get_permalink($product_id);
     26            return wp_send_json_success(['success' => true, 'productUrl' => $product_url]);
     27        }
    2528
    2629        wp_send_json_error('Failed to save customization data');
  • printapp/tags/2.2.3/printapp.php

    r3392165 r3392495  
    44 *  Plugin URI:             https://print.app
    55 *  Description:            Empower your customers to personalize products like Business Cards, Photo Prints, T-Shirts, Mugs, Banners, Canvases, etc. on your store before purchase
    6  *  Version:                2.2.2
     6 *  Version:                2.2.3
    77 *  Requires at least:      3.8
    88 *  Requires PHP:           7.4
     
    4646             *  @var string
    4747            */
    48             public $version = '2.2.2';
     48            public $version = '2.2.3';
    4949
    5050            /**
  • printapp/tags/2.2.3/readme.txt

    r3392165 r3392495  
    44Requires at least: 3.8
    55Tested up to: 6.8
    6 Stable tag: 2.2.2
     6Stable tag: 2.2.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    102102== Changelog ==
    103103
     104= 2.2.3 =
     105Minor update for resuming save for later
     106
    104107= 2.2.2 =
    105108Updated the release version
  • printapp/trunk/functions/front/accounts.php

    r3392165 r3392495  
    1919        $run_url = PRINT_APP_RUN_BASE_URL . "user/{$printapp_domain_key}/{$user_id}/wp?signature={$credentials['signature']}&time={$credentials['timestamp']}&lang={$lang_code}";
    2020        wp_enqueue_script('print_app_class', $run_url, '', '', true);
     21       
     22        wp_localize_script('print_app_class', 'printAppParams', array(
     23            'pluginRoot'    => site_url() . '/print_app',
     24            'cookieKey'     => PRINT_APP_CUSTOMIZATION_KEY,
     25            'wp_ajax_url'   => admin_url('admin-ajax.php'),
     26        ));
    2127
    2228        echo '<div id="print-app-user-projects" class="print-app-user-projects"></div>';
    2329    }
    24    
  • printapp/trunk/functions/front/projects.php

    r3274694 r3392495  
    2121        $product_id = absint($_POST['product_id']); // Sanitize product_id
    2222        $result = General\save_customization_data($product_id, $value);
    23         if ($result !== FALSE)
    24             return wp_send_json_success('Customization data saved successfully: ' . $result);
     23       
     24        if ($result !== FALSE) {
     25            $product_url = get_permalink($product_id);
     26            return wp_send_json_success(['success' => true, 'productUrl' => $product_url]);
     27        }
    2528
    2629        wp_send_json_error('Failed to save customization data');
  • printapp/trunk/printapp.php

    r3392165 r3392495  
    44 *  Plugin URI:             https://print.app
    55 *  Description:            Empower your customers to personalize products like Business Cards, Photo Prints, T-Shirts, Mugs, Banners, Canvases, etc. on your store before purchase
    6  *  Version:                2.2.2
     6 *  Version:                2.2.3
    77 *  Requires at least:      3.8
    88 *  Requires PHP:           7.4
     
    4646             *  @var string
    4747            */
    48             public $version = '2.2.2';
     48            public $version = '2.2.3';
    4949
    5050            /**
  • printapp/trunk/readme.txt

    r3392165 r3392495  
    44Requires at least: 3.8
    55Tested up to: 6.8
    6 Stable tag: 2.2.2
     6Stable tag: 2.2.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    102102== Changelog ==
    103103
     104= 2.2.3 =
     105Minor update for resuming save for later
     106
    104107= 2.2.2 =
    105108Updated the release version
Note: See TracChangeset for help on using the changeset viewer.