Changeset 3270976
- Timestamp:
- 04/11/2025 11:02:21 AM (12 months ago)
- Location:
- pitchprint
- Files:
-
- 8 edited
- 1 copied
-
tags/11.0.3 (copied) (copied from pitchprint/trunk)
-
tags/11.0.3/functions/admin/orders.php (modified) (1 diff)
-
tags/11.0.3/functions/general/init_hooks.php (modified) (1 diff)
-
tags/11.0.3/pitchprint.php (modified) (2 diffs)
-
tags/11.0.3/readme.txt (modified) (2 diffs)
-
trunk/functions/admin/orders.php (modified) (1 diff)
-
trunk/functions/general/init_hooks.php (modified) (1 diff)
-
trunk/pitchprint.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pitchprint/tags/11.0.3/functions/admin/orders.php
r3270366 r3270976 8 8 return $display_value; 9 9 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 "); 10 24 } 11 25 -
pitchprint/tags/11.0.3/functions/general/init_hooks.php
r3270366 r3270976 30 30 // extract and inject the customization data into the order item 31 31 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'); 32 34 33 35 } else if (\pitchprint\functions\general\request_type('frontend')) { -
pitchprint/tags/11.0.3/pitchprint.php
r3270394 r3270976 6 6 * Description: A beautiful web based print customization app for your online store. Integrates with WooCommerce. 7 7 * Author: PitchPrint, Inc. 8 * Version: 11.0. 28 * Version: 11.0.3 9 9 * Author URI: https://pitchprint.com 10 10 * Requires at least: 3.8 … … 47 47 * @var string 48 48 */ 49 public $version = '11.0. 2';49 public $version = '11.0.3'; 50 50 51 51 /** -
pitchprint/tags/11.0.3/readme.txt
r3270394 r3270976 4 4 Requires at least: 3.8 5 5 Tested up to: 6.7 6 Stable tag: 11.0. 26 Stable tag: 11.0.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 98 98 99 99 == Changelog == 100 101 == 11.0.3 = 102 Fixed issue with legacy orders 100 103 101 104 == 11.0.2 = -
pitchprint/trunk/functions/admin/orders.php
r3270366 r3270976 8 8 return $display_value; 9 9 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 "); 10 24 } 11 25 -
pitchprint/trunk/functions/general/init_hooks.php
r3270366 r3270976 30 30 // extract and inject the customization data into the order item 31 31 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'); 32 34 33 35 } else if (\pitchprint\functions\general\request_type('frontend')) { -
pitchprint/trunk/pitchprint.php
r3270394 r3270976 6 6 * Description: A beautiful web based print customization app for your online store. Integrates with WooCommerce. 7 7 * Author: PitchPrint, Inc. 8 * Version: 11.0. 28 * Version: 11.0.3 9 9 * Author URI: https://pitchprint.com 10 10 * Requires at least: 3.8 … … 47 47 * @var string 48 48 */ 49 public $version = '11.0. 2';49 public $version = '11.0.3'; 50 50 51 51 /** -
pitchprint/trunk/readme.txt
r3270394 r3270976 4 4 Requires at least: 3.8 5 5 Tested up to: 6.7 6 Stable tag: 11.0. 26 Stable tag: 11.0.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 98 98 99 99 == Changelog == 100 101 == 11.0.3 = 102 Fixed issue with legacy orders 100 103 101 104 == 11.0.2 =
Note: See TracChangeset
for help on using the changeset viewer.