Plugin Directory

Changeset 2850334


Ignore:
Timestamp:
01/18/2023 09:33:42 AM (3 years ago)
Author:
primersoftware
Message:

Update

Location:
primer-mydata
Files:
2156 added
6 edited

Legend:

Unmodified
Added
Removed
  • primer-mydata/trunk/README.txt

    r2848357 r2850334  
    55Tested up to: 6.1.1
    66Requires PHP: 7.4
    7 Stable tag: 2.0.9
     7Stable tag: 2.1.0
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • primer-mydata/trunk/admin/includes/primer-admin-options.php

    r2848352 r2850334  
    15971597        }
    15981598        $export_dir_file = $upload_dir . '/primer-export-invoices';
    1599         if (!empty($primer_license_data) && $primer_license_data['mistake_license'] !== 'fail' && in_array(10, $primer_license_data['wpModules'])) {
     1599        if (!empty($primer_license_data) && $primer_license_data['mistake_license'] !== 'fail' && !empty($primer_license_data['wpModules']) && in_array(10, $primer_license_data['wpModules'])) {
    16001600            $this->option_metabox[] = apply_filters('primer_export_option_fields', array(
    16011601                'id' => $prefix . 'export',
  • primer-mydata/trunk/admin/includes/primer-admin-table.php

    r2848357 r2850334  
    573573            break;
    574574        case 'production_api':
    575             $api_urls[] = 'https://https://wp-mydataapi.primer.gr/v2/invoices/send';
    576             $url = 'https://https://wp-mydataapi.primer.gr/v2/invoices/send';
     575            $api_urls[] = 'https://wp-mydataapi.primer.gr/v2/invoices/send';
     576            $url = 'https://wp-mydataapi.primer.gr/v2/invoices/send';
    577577            $api_type = 'production';
    578578            break;
     
    606606            if ($ret_code !== 502) {
    607607                $url = $item_url;
    608                 $url_slug = 'https://https://wp-mydataapi.primer.gr';
     608                $url_slug = 'https://wp-mydataapi.primer.gr';
    609609            } else {
    610610                $url = 'https://backup-mydataapi.ddns.net/v2/invoices/send';
     
    662662            $check_timeout = get_post_meta($id_of_order, 'failed_48',true);
    663663            $check_transmission_failure_48 = get_post_meta($id_of_order, 'transmission_failure_check',true);
    664             if(($mydata_options['timeout_check_48'] == 1 && $check_timeout != 'yes') || ($mydata_options['timeout_check_48'] == 1 && $check_transmission_failure_48 != 1)){
     664         /*   if(($mydata_options['timeout_check_48'] == 1 && $check_timeout != 'yes') || ($mydata_options['timeout_check_48'] == 1 && $check_transmission_failure_48 != 1)){
    665665                $receipt_log_value .= __('Could not connect to aade for 48 hours. Please check your settings or contact primer software.', 'primer');
    666666                $response_data .= '<div class="notice notice-error"><p>'.__('Could not connect to aade for 48 hours. Please check your settings or contact primer software.', 'primer').'</p></div>';
    667667                $receipt_log_value_array[] = __('Could not connect to aade for 48 hours. Please check your settings or contact primer software.','primer');
    668668                break;
    669             }
     669            } */
    670670
    671671            $order_country = $order->get_billing_country();
  • primer-mydata/trunk/includes/class-primer-cron.php

    r2848357 r2850334  
    282282                                $check_timeout = get_post_meta($id_of_order, 'failed_48',true);
    283283                                $check_transmission_failure_48 = get_post_meta($id_of_order, 'transmission_failure_check',true);
    284                                 if(($mydata_options['timeout_check_48'] == 1 && $check_timeout != 'yes') || ($mydata_options['timeout_check_48'] == 1 && $check_transmission_failure_48 != 1)){
     284                              /*  if(($mydata_options['timeout_check_48'] == 1 && $check_timeout != 'yes') || ($mydata_options['timeout_check_48'] == 1 && $check_transmission_failure_48 != 1)){
    285285                                    $receipt_log_value .= __('Could not connect to aade for 48 hours. Please check your settings or contact primer software.', 'primer');
    286286                                    $receipt_log_value_array[] = __('Could not connect to aade for 48 hours. Please check your settings or contact primer software.','primer');
    287287                                    break;
    288                                 }
     288                                } */
    289289                                $order_country = $order->get_billing_country();
    290290                                $order_create_date = date('F j, Y', $order->get_date_created()->getOffsetTimestamp());
  • primer-mydata/trunk/includes/class-primer.php

    r2848352 r2850334  
    299299        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
    300300        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
    301         $this->loader->add_filter( 'private_title_format', $plugin_public, 'title_format');
    302         $this->loader->add_filter( 'protected_title_format', $plugin_public, 'title_format');
     301        //$this->loader->add_filter( 'private_title_format', $plugin_public, 'title_format');
     302        //$this->loader->add_filter( 'protected_title_format', $plugin_public, 'title_format');
    303303        $this->loader->add_filter( 'single_template', $plugin_public, 'receipt_template', 999 );
    304304    }
  • primer-mydata/trunk/primer.php

    r2848357 r2850334  
    1818 * Plugin URI:        primer.gr/plugin/
    1919 * Description:      Issue receipts and invoices with woocommerce.
    20  * Version:           2.0.9
     20 * Version:           2.1.0
    2121 * Author:            Primer Software
    2222 * Author URI:        primer.gr
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'PRIMER_VERSION', '2.0.9' );
     38define( 'PRIMER_VERSION', '2.1.0' );
    3939define( 'PRIMER_NAME', 'Primer MyData' );
    4040
Note: See TracChangeset for help on using the changeset viewer.