Changeset 3392150
- Timestamp:
- 11/08/2025 11:32:32 AM (3 months ago)
- Location:
- printapp
- Files:
-
- 2 added
- 16 edited
- 1 copied
-
tags/2.2.0 (copied) (copied from printapp/trunk)
-
tags/2.2.0/functions/admin/actions.php (modified) (1 diff)
-
tags/2.2.0/functions/admin/settings.php (modified) (1 diff)
-
tags/2.2.0/functions/front/accounts.php (added)
-
tags/2.2.0/functions/front/carts.php (modified) (1 diff)
-
tags/2.2.0/functions/front/customize_button.php (modified) (1 diff)
-
tags/2.2.0/functions/general/emails.php (modified) (1 diff)
-
tags/2.2.0/functions/general/init_hooks.php (modified) (2 diffs)
-
tags/2.2.0/printapp.php (modified) (2 diffs)
-
tags/2.2.0/readme.txt (modified) (1 diff)
-
trunk/functions/admin/actions.php (modified) (1 diff)
-
trunk/functions/admin/settings.php (modified) (1 diff)
-
trunk/functions/front/accounts.php (added)
-
trunk/functions/front/carts.php (modified) (1 diff)
-
trunk/functions/front/customize_button.php (modified) (1 diff)
-
trunk/functions/general/emails.php (modified) (1 diff)
-
trunk/functions/general/init_hooks.php (modified) (2 diffs)
-
trunk/printapp.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
printapp/tags/2.2.0/functions/admin/actions.php
r3195438 r3392150 18 18 function admin_page() { 19 19 if (!class_exists('WooCommerce')) { 20 echo ('<h3>This plugin depends onWooCommerce plugin. Kindly install <a target="_blank" href="https://wordpress.org/plugins/woocommerce/">WooCommerce here!</a></h3>');20 echo ('<h3>This plugin requires the WooCommerce plugin. Kindly install <a target="_blank" href="https://wordpress.org/plugins/woocommerce/">WooCommerce here!</a></h3>'); 21 21 exit(); 22 22 } -
printapp/tags/2.2.0/functions/admin/settings.php
r3274694 r3392150 8 8 9 9 function settings_api_init() { 10 add_settings_section('print_app_settings_section', 'PrintApp Settings', 'printapp\\functions\\admin\\print_app_create_settings', 'print_app'); 11 add_settings_field('print_app_domain_key', 'Domain Key:', 'printapp\\functions\\admin\\print_app_domain_key', 'print_app', 'print_app_settings_section', array()); 12 add_settings_field('print_app_secret_key', 'Auth Key:', 'printapp\\functions\\admin\\print_app_secret_key', 'print_app', 'print_app_settings_section', array()); 13 add_settings_field('print_app_cust_download_link', 'Include PDF Link in Customer Email:', 'printapp\\functions\\admin\\print_app_cust_download_link', 'print_app', 'print_app_settings_section', array()); 10 add_settings_section( 11 'print_app_settings_section', 12 __('PrintApp Settings', 'printapp'), 13 'printapp\\functions\\admin\\print_app_create_settings', 14 'print_app' 15 ); 16 add_settings_field( 17 'print_app_domain_key', 18 __('Domain Key:', 'printapp'), 19 'printapp\\functions\\admin\\print_app_domain_key', 20 'print_app', 21 'print_app_settings_section' 22 ); 23 add_settings_field( 24 'print_app_secret_key', 25 __('Auth Key:', 'printapp'), 26 'printapp\\functions\\admin\\print_app_secret_key', 27 'print_app', 28 'print_app_settings_section' 29 ); 30 add_settings_field( 31 'print_app_cust_download_link', 32 __('Include PDF Link in Customer Email:', 'printapp'), 33 'printapp\\functions\\admin\\print_app_cust_download_link', 34 'print_app', 35 'print_app_settings_section' 36 ); 37 14 38 register_setting('print_app', 'print_app_domain_key'); 15 39 register_setting('print_app', 'print_app_secret_key'); -
printapp/tags/2.2.0/functions/front/carts.php
r3205331 r3392150 11 11 if (isset($value) && $value !== FALSE) { 12 12 $cart_item_data[PRINT_APP_CUSTOMIZATION_KEY] = $value; 13 General\delete_customization_data($product_id); 13 14 // Don't delete during cart simulation or validation checks 15 $is_simulation = isset($_GET['wc-ajax']) && $_GET['wc-ajax'] === 'ppc-simulate-cart'; 16 17 if (!$is_simulation) { 18 General\delete_customization_data($product_id); 19 } 14 20 } 15 21 -
printapp/tags/2.2.0/functions/front/customize_button.php
r3280203 r3392150 6 6 7 7 function customize_button() { 8 // Guard against duplicate execution 9 static $already_run = false; 10 if ($already_run) return; 11 $already_run = true; 12 8 13 global $post; 9 14 $printapp_domain_key = get_option('print_app_domain_key'); -
printapp/tags/2.2.0/functions/general/emails.php
r3195438 r3392150 12 12 if (empty($print_app_customization)) continue; 13 13 14 $count = 0; 15 14 16 foreach ($print_app_customization['previews'] as $preview) { 17 if ($count >= 3) break; 15 18 echo '<tr><td colspan="2" style="text-align:left; padding: 10px 0;"><img src="' . $preview['url'] . '" width="180px; margin-right:10px;"/></td></tr>'; 19 $count++; 16 20 } 17 21 -
printapp/tags/2.2.0/functions/general/init_hooks.php
r3280203 r3392150 43 43 // add the customization data to the order item 44 44 add_filter('woocommerce_checkout_create_order_line_item', 'printapp\\functions\\front\\add_order_item_meta', 70, 2); 45 46 // my recent order page.. 47 add_action('woocommerce_before_my_account', 'printapp\\functions\\front\\my_recent_order'); 45 48 46 49 } … … 52 55 add_action('wp_ajax_print_app_reset_project', 'printapp\\functions\\front\\reset_project_sess'); 53 56 54 add_action('woocommerce_new_order', 'printapp\\functions\\admin\\handle_new_order', 10,2);57 add_action('woocommerce_new_order', 'printapp\\functions\\admin\\handle_new_order', 10, 2); 55 58 56 59 // add the customization info to the order email -
printapp/tags/2.2.0/printapp.php
r3307466 r3392150 1 1 <?php 2 2 /** 3 * Plugin Name: Print.App4 * Plugin URI: https://print.app5 * Description: Empower your customers to personalize products like Business Cards, Photo Prints, T-Shirts, Mugs, Banners, Canvases, etc. on your store before purchase6 * Version: 2.1.67 * Requires at least: 3.88 * Requires PHP: 7.49 * Author: Print.App ApS10 * Author URI: https://print.app11 * Tested up to: 6.83 * Plugin Name: Print.App 4 * Plugin URI: https://print.app 5 * 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.0 7 * Requires at least: 3.8 8 * Requires PHP: 7.4 9 * Author: Print.App ApS 10 * Author URI: https://print.app 11 * Tested up to: 6.8 12 12 * WC requires at least: 4.0 13 13 * WC tested up to: 9.4 … … 46 46 * @var string 47 47 */ 48 public $version = '2. 1.6';48 public $version = '2.2.0'; 49 49 50 50 /** -
printapp/tags/2.2.0/readme.txt
r3307466 r3392150 102 102 == Changelog == 103 103 104 = 2.2.0 = 105 Implemented Save for Later 106 Limited preview images in emails to the first 3 pages 107 Minor bug fixes related to session management 108 104 109 = 2.1.6 = 105 110 Minor fix for displaying links in emails -
printapp/trunk/functions/admin/actions.php
r3195438 r3392150 18 18 function admin_page() { 19 19 if (!class_exists('WooCommerce')) { 20 echo ('<h3>This plugin depends onWooCommerce plugin. Kindly install <a target="_blank" href="https://wordpress.org/plugins/woocommerce/">WooCommerce here!</a></h3>');20 echo ('<h3>This plugin requires the WooCommerce plugin. Kindly install <a target="_blank" href="https://wordpress.org/plugins/woocommerce/">WooCommerce here!</a></h3>'); 21 21 exit(); 22 22 } -
printapp/trunk/functions/admin/settings.php
r3274694 r3392150 8 8 9 9 function settings_api_init() { 10 add_settings_section('print_app_settings_section', 'PrintApp Settings', 'printapp\\functions\\admin\\print_app_create_settings', 'print_app'); 11 add_settings_field('print_app_domain_key', 'Domain Key:', 'printapp\\functions\\admin\\print_app_domain_key', 'print_app', 'print_app_settings_section', array()); 12 add_settings_field('print_app_secret_key', 'Auth Key:', 'printapp\\functions\\admin\\print_app_secret_key', 'print_app', 'print_app_settings_section', array()); 13 add_settings_field('print_app_cust_download_link', 'Include PDF Link in Customer Email:', 'printapp\\functions\\admin\\print_app_cust_download_link', 'print_app', 'print_app_settings_section', array()); 10 add_settings_section( 11 'print_app_settings_section', 12 __('PrintApp Settings', 'printapp'), 13 'printapp\\functions\\admin\\print_app_create_settings', 14 'print_app' 15 ); 16 add_settings_field( 17 'print_app_domain_key', 18 __('Domain Key:', 'printapp'), 19 'printapp\\functions\\admin\\print_app_domain_key', 20 'print_app', 21 'print_app_settings_section' 22 ); 23 add_settings_field( 24 'print_app_secret_key', 25 __('Auth Key:', 'printapp'), 26 'printapp\\functions\\admin\\print_app_secret_key', 27 'print_app', 28 'print_app_settings_section' 29 ); 30 add_settings_field( 31 'print_app_cust_download_link', 32 __('Include PDF Link in Customer Email:', 'printapp'), 33 'printapp\\functions\\admin\\print_app_cust_download_link', 34 'print_app', 35 'print_app_settings_section' 36 ); 37 14 38 register_setting('print_app', 'print_app_domain_key'); 15 39 register_setting('print_app', 'print_app_secret_key'); -
printapp/trunk/functions/front/carts.php
r3205331 r3392150 11 11 if (isset($value) && $value !== FALSE) { 12 12 $cart_item_data[PRINT_APP_CUSTOMIZATION_KEY] = $value; 13 General\delete_customization_data($product_id); 13 14 // Don't delete during cart simulation or validation checks 15 $is_simulation = isset($_GET['wc-ajax']) && $_GET['wc-ajax'] === 'ppc-simulate-cart'; 16 17 if (!$is_simulation) { 18 General\delete_customization_data($product_id); 19 } 14 20 } 15 21 -
printapp/trunk/functions/front/customize_button.php
r3280203 r3392150 6 6 7 7 function customize_button() { 8 // Guard against duplicate execution 9 static $already_run = false; 10 if ($already_run) return; 11 $already_run = true; 12 8 13 global $post; 9 14 $printapp_domain_key = get_option('print_app_domain_key'); -
printapp/trunk/functions/general/emails.php
r3195438 r3392150 12 12 if (empty($print_app_customization)) continue; 13 13 14 $count = 0; 15 14 16 foreach ($print_app_customization['previews'] as $preview) { 17 if ($count >= 3) break; 15 18 echo '<tr><td colspan="2" style="text-align:left; padding: 10px 0;"><img src="' . $preview['url'] . '" width="180px; margin-right:10px;"/></td></tr>'; 19 $count++; 16 20 } 17 21 -
printapp/trunk/functions/general/init_hooks.php
r3280203 r3392150 43 43 // add the customization data to the order item 44 44 add_filter('woocommerce_checkout_create_order_line_item', 'printapp\\functions\\front\\add_order_item_meta', 70, 2); 45 46 // my recent order page.. 47 add_action('woocommerce_before_my_account', 'printapp\\functions\\front\\my_recent_order'); 45 48 46 49 } … … 52 55 add_action('wp_ajax_print_app_reset_project', 'printapp\\functions\\front\\reset_project_sess'); 53 56 54 add_action('woocommerce_new_order', 'printapp\\functions\\admin\\handle_new_order', 10,2);57 add_action('woocommerce_new_order', 'printapp\\functions\\admin\\handle_new_order', 10, 2); 55 58 56 59 // add the customization info to the order email -
printapp/trunk/printapp.php
r3307466 r3392150 1 1 <?php 2 2 /** 3 * Plugin Name: Print.App4 * Plugin URI: https://print.app5 * Description: Empower your customers to personalize products like Business Cards, Photo Prints, T-Shirts, Mugs, Banners, Canvases, etc. on your store before purchase6 * Version: 2.1.67 * Requires at least: 3.88 * Requires PHP: 7.49 * Author: Print.App ApS10 * Author URI: https://print.app11 * Tested up to: 6.83 * Plugin Name: Print.App 4 * Plugin URI: https://print.app 5 * 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.0 7 * Requires at least: 3.8 8 * Requires PHP: 7.4 9 * Author: Print.App ApS 10 * Author URI: https://print.app 11 * Tested up to: 6.8 12 12 * WC requires at least: 4.0 13 13 * WC tested up to: 9.4 … … 46 46 * @var string 47 47 */ 48 public $version = '2. 1.6';48 public $version = '2.2.0'; 49 49 50 50 /** -
printapp/trunk/readme.txt
r3307466 r3392150 102 102 == Changelog == 103 103 104 = 2.2.0 = 105 Implemented Save for Later 106 Limited preview images in emails to the first 3 pages 107 Minor bug fixes related to session management 108 104 109 = 2.1.6 = 105 110 Minor fix for displaying links in emails
Note: See TracChangeset
for help on using the changeset viewer.