Plugin Directory

Changeset 3392150


Ignore:
Timestamp:
11/08/2025 11:32:32 AM (3 months ago)
Author:
printapp
Message:

release v2.2.0

Location:
printapp
Files:
2 added
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • printapp/tags/2.2.0/functions/admin/actions.php

    r3195438 r3392150  
    1818    function admin_page() {
    1919        if (!class_exists('WooCommerce')) {
    20             echo ('<h3>This plugin depends on WooCommerce 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>');
    2121            exit();
    2222        }
  • printapp/tags/2.2.0/functions/admin/settings.php

    r3274694 r3392150  
    88
    99    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
    1438        register_setting('print_app', 'print_app_domain_key');
    1539        register_setting('print_app', 'print_app_secret_key');
  • printapp/tags/2.2.0/functions/front/carts.php

    r3205331 r3392150  
    1111        if (isset($value) && $value !== FALSE) {
    1212            $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            }
    1420        }
    1521
  • printapp/tags/2.2.0/functions/front/customize_button.php

    r3280203 r3392150  
    66
    77    function customize_button() {
     8        // Guard against duplicate execution
     9        static $already_run = false;
     10        if ($already_run) return;
     11        $already_run = true;
     12       
    813        global $post;
    914        $printapp_domain_key = get_option('print_app_domain_key');
  • printapp/tags/2.2.0/functions/general/emails.php

    r3195438 r3392150  
    1212            if (empty($print_app_customization)) continue;
    1313
     14            $count = 0;
     15
    1416            foreach ($print_app_customization['previews'] as $preview) {
     17                if ($count >= 3) break;
    1518                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++;
    1620            }
    1721
  • printapp/tags/2.2.0/functions/general/init_hooks.php

    r3280203 r3392150  
    4343            // add the customization data to the order item
    4444            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');
    4548           
    4649        }
     
    5255        add_action('wp_ajax_print_app_reset_project', 'printapp\\functions\\front\\reset_project_sess');
    5356
    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);
    5558
    5659        // add the customization info to the order email
  • printapp/tags/2.2.0/printapp.php

    r3307466 r3392150  
    11<?php
    22 /**
    3  *  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.1.6
    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
     3 *  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
    1212 *  WC requires at least:   4.0
    1313 *  WC tested up to:        9.4
     
    4646             *  @var string
    4747            */
    48             public $version = '2.1.6';
     48            public $version = '2.2.0';
    4949
    5050            /**
  • printapp/tags/2.2.0/readme.txt

    r3307466 r3392150  
    102102== Changelog ==
    103103
     104= 2.2.0 =
     105Implemented Save for Later
     106Limited preview images in emails to the first 3 pages
     107Minor bug fixes related to session management
     108
    104109= 2.1.6 =
    105110Minor fix for displaying links in emails
  • printapp/trunk/functions/admin/actions.php

    r3195438 r3392150  
    1818    function admin_page() {
    1919        if (!class_exists('WooCommerce')) {
    20             echo ('<h3>This plugin depends on WooCommerce 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>');
    2121            exit();
    2222        }
  • printapp/trunk/functions/admin/settings.php

    r3274694 r3392150  
    88
    99    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
    1438        register_setting('print_app', 'print_app_domain_key');
    1539        register_setting('print_app', 'print_app_secret_key');
  • printapp/trunk/functions/front/carts.php

    r3205331 r3392150  
    1111        if (isset($value) && $value !== FALSE) {
    1212            $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            }
    1420        }
    1521
  • printapp/trunk/functions/front/customize_button.php

    r3280203 r3392150  
    66
    77    function customize_button() {
     8        // Guard against duplicate execution
     9        static $already_run = false;
     10        if ($already_run) return;
     11        $already_run = true;
     12       
    813        global $post;
    914        $printapp_domain_key = get_option('print_app_domain_key');
  • printapp/trunk/functions/general/emails.php

    r3195438 r3392150  
    1212            if (empty($print_app_customization)) continue;
    1313
     14            $count = 0;
     15
    1416            foreach ($print_app_customization['previews'] as $preview) {
     17                if ($count >= 3) break;
    1518                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++;
    1620            }
    1721
  • printapp/trunk/functions/general/init_hooks.php

    r3280203 r3392150  
    4343            // add the customization data to the order item
    4444            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');
    4548           
    4649        }
     
    5255        add_action('wp_ajax_print_app_reset_project', 'printapp\\functions\\front\\reset_project_sess');
    5356
    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);
    5558
    5659        // add the customization info to the order email
  • printapp/trunk/printapp.php

    r3307466 r3392150  
    11<?php
    22 /**
    3  *  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.1.6
    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
     3 *  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
    1212 *  WC requires at least:   4.0
    1313 *  WC tested up to:        9.4
     
    4646             *  @var string
    4747            */
    48             public $version = '2.1.6';
     48            public $version = '2.2.0';
    4949
    5050            /**
  • printapp/trunk/readme.txt

    r3307466 r3392150  
    102102== Changelog ==
    103103
     104= 2.2.0 =
     105Implemented Save for Later
     106Limited preview images in emails to the first 3 pages
     107Minor bug fixes related to session management
     108
    104109= 2.1.6 =
    105110Minor fix for displaying links in emails
Note: See TracChangeset for help on using the changeset viewer.