Plugin Directory

Changeset 3270976


Ignore:
Timestamp:
04/11/2025 11:02:21 AM (12 months ago)
Author:
flexcubed
Message:

v11.0.3
Fixed issue with old orders not showing

Location:
pitchprint
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pitchprint/tags/11.0.3/functions/admin/orders.php

    r3270366 r3270976  
    88        return $display_value;
    99       
     10    }
     11
     12    function legacy_order_value() {
     13        global $post, $woocommerce;
     14
     15        $cred = \pitchprint\functions\general\fetch_credentials();
     16        wp_enqueue_script('pitchprint_admin', 'https://pitchprint.io/rsc/js/a.wp.js');
     17        wc_enqueue_js( "var PPADMIN = window.PPADMIN; if (typeof PPADMIN === 'undefined') window.PPADMIN = PPADMIN = { version: '9.0.0', readyFncs: [] };" . "
     18            PPADMIN.vars = {
     19                credentials: { timestamp: '" . $cred['timestamp'] . "', apiKey: '" . get_option('ppa_api_key') . "', signature: '" . $cred['signature'] . "'}
     20            };
     21            PPADMIN.readyFncs.push('init');
     22            if (typeof PPADMIN.start !== 'undefined') PPADMIN.start();
     23        ");
    1024    }
    1125
  • pitchprint/tags/11.0.3/functions/general/init_hooks.php

    r3270366 r3270976  
    3030            // extract and inject the customization data into the order item
    3131            add_filter('woocommerce_order_item_get_formatted_meta_data', 'pitchprint\\functions\\admin\\format_pitchprint_order_value', 20, 2);
     32
     33            add_action('woocommerce_admin_order_data_after_order_details', 'pitchprint\\functions\\admin\\legacy_order_value');
    3234
    3335        } else if (\pitchprint\functions\general\request_type('frontend')) {
  • pitchprint/tags/11.0.3/pitchprint.php

    r3270394 r3270976  
    66*   Description:            A beautiful web based print customization app for your online store. Integrates with WooCommerce.
    77*   Author:                 PitchPrint, Inc.
    8 *   Version:                11.0.2
     8*   Version:                11.0.3
    99*   Author URI:             https://pitchprint.com
    1010*   Requires at least:      3.8
     
    4747             *  @var string
    4848            */
    49             public $version = '11.0.2';
     49            public $version = '11.0.3';
    5050
    5151            /**
  • pitchprint/tags/11.0.3/readme.txt

    r3270394 r3270976  
    44Requires at least: 3.8
    55Tested up to: 6.7
    6 Stable tag: 11.0.2
     6Stable tag: 11.0.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9898
    9999== Changelog ==
     100
     101== 11.0.3 =
     102Fixed issue with legacy orders
    100103
    101104== 11.0.2 =
  • pitchprint/trunk/functions/admin/orders.php

    r3270366 r3270976  
    88        return $display_value;
    99       
     10    }
     11
     12    function legacy_order_value() {
     13        global $post, $woocommerce;
     14
     15        $cred = \pitchprint\functions\general\fetch_credentials();
     16        wp_enqueue_script('pitchprint_admin', 'https://pitchprint.io/rsc/js/a.wp.js');
     17        wc_enqueue_js( "var PPADMIN = window.PPADMIN; if (typeof PPADMIN === 'undefined') window.PPADMIN = PPADMIN = { version: '9.0.0', readyFncs: [] };" . "
     18            PPADMIN.vars = {
     19                credentials: { timestamp: '" . $cred['timestamp'] . "', apiKey: '" . get_option('ppa_api_key') . "', signature: '" . $cred['signature'] . "'}
     20            };
     21            PPADMIN.readyFncs.push('init');
     22            if (typeof PPADMIN.start !== 'undefined') PPADMIN.start();
     23        ");
    1024    }
    1125
  • pitchprint/trunk/functions/general/init_hooks.php

    r3270366 r3270976  
    3030            // extract and inject the customization data into the order item
    3131            add_filter('woocommerce_order_item_get_formatted_meta_data', 'pitchprint\\functions\\admin\\format_pitchprint_order_value', 20, 2);
     32
     33            add_action('woocommerce_admin_order_data_after_order_details', 'pitchprint\\functions\\admin\\legacy_order_value');
    3234
    3335        } else if (\pitchprint\functions\general\request_type('frontend')) {
  • pitchprint/trunk/pitchprint.php

    r3270394 r3270976  
    66*   Description:            A beautiful web based print customization app for your online store. Integrates with WooCommerce.
    77*   Author:                 PitchPrint, Inc.
    8 *   Version:                11.0.2
     8*   Version:                11.0.3
    99*   Author URI:             https://pitchprint.com
    1010*   Requires at least:      3.8
     
    4747             *  @var string
    4848            */
    49             public $version = '11.0.2';
     49            public $version = '11.0.3';
    5050
    5151            /**
  • pitchprint/trunk/readme.txt

    r3270394 r3270976  
    44Requires at least: 3.8
    55Tested up to: 6.7
    6 Stable tag: 11.0.2
     6Stable tag: 11.0.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9898
    9999== Changelog ==
     100
     101== 11.0.3 =
     102Fixed issue with legacy orders
    100103
    101104== 11.0.2 =
Note: See TracChangeset for help on using the changeset viewer.