Plugin Directory

Changeset 2940775


Ignore:
Timestamp:
07/20/2023 11:11:47 AM (3 years ago)
Author:
primersoftware
Message:

Update

Location:
primer-mydata
Files:
2624 added
6 edited

Legend:

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

    r2939391 r2940775  
    55Tested up to: 6.2.2
    66Requires PHP: 7.4
    7 Stable tag: 4.0.3
     7Stable tag: 4.0.4
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    131131= 4.0.3 - 2023-07-17 =
    132132* Minor Bug Fixes
     133= 4.0.4 - 2023-07-20 =
     134* Minor Bug Fixes
  • primer-mydata/trunk/admin/class-primer-admin.php

    r2937024 r2940775  
    920920            // Get the order ID
    921921            $order_id = $post->ID;
    922             update_post_meta(232345,'gfdg', $order_id);
     922            //update_post_meta(232345,'gfdg', $order_id);
    923923            // Check for the specific postmeta value
    924924            $specific_value = get_post_meta($order_id, 'receipt_status', true);
  • primer-mydata/trunk/admin/includes/my_data_json.php

    r2937024 r2940775  
    11<?php
    22require_once(ABSPATH . 'wp-load.php');
    3 if (class_exists('WooCommerce'))
    4 {
    5     $woocommerce = new Woocommerce;
    6 }
     3
    74use Dompdf\Dompdf;
    85
     
    415412                $quantity = $item_data->get_quantity();
    416413                $product_name = $item_data->get_name();
    417                 $product_code = $item_data->get_product()->get_sku();
     414                $product_code = $item_data->get_product_id();
    418415                $sum += $quantity;
    419416                if (!empty($get_coupon) || $order->get_total_discount() > 0) {
  • primer-mydata/trunk/includes/class-primer-activator.php

    r2937024 r2940775  
    3434    public static function activate() {
    3535
    36         //edw tha mpei to ini_set
    3736        global $wpdb, $wp_version;
    3837
     
    5655            $error['curl_error'] = 'yes';
    5756        }
    58 
    59         if(!ini_get('allow_url_fopen')) {
    60             ini_set('allow_url_fopen', 'On');
    61         }
    6257
    6358        set_transient( 'primer_activation_warning', $error, 5 );
  • primer-mydata/trunk/primer.php

    r2939391 r2940775  
    1818 * Plugin URI:        primer.gr/plugin/
    1919 * Description:      Issue receipts and invoices with woocommerce.
    20  * Version:           4.0.3
     20 * Version:           4.0.4
    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', '4.0.3');
     38define( 'PRIMER_VERSION', '4.0.4');
    3939define( 'PRIMER_NAME', 'Primer MyData' );
    4040
     
    239239}
    240240add_action('wp_ajax_primer_timologio_for_wc_aade_fill', 'primer_timologio_for_wc_aade_fill');
     241add_action('wp_ajax_nopriv_primer_timologio_for_wc_aade_fill', 'primer_timologio_for_wc_aade_fill');
    241242
    242243// Add custom tax rate for qualifying VAT number
  • primer-mydata/trunk/views/get_receipt_list.php

    r2939391 r2940775  
    4848                if (!empty($order_from_invoice)) {
    4949                    $total_order = wc_get_order($order_from_invoice);
    50                     $total_order_data = $total_order->get_data();
    51                     $user_first_name = isset($total_order_data['billing']['first_name']) ? $total_order_data['billing']['first_name'] : '';
    52                     $user_last_name = isset($total_order_data['billing']['last_name']) ? $total_order_data['billing']['last_name'] : '';
     50                    $user_first_name = get_post_meta($order_from_invoice, '_billing_first_name', true);
     51                    $user_last_name = get_post_meta($order_from_invoice, '_billing_last_name', true);
    5352                    $user_full_name = $user_first_name . ' ' . $user_last_name;
    5453                    if (empty($invoice_client)) {
Note: See TracChangeset for help on using the changeset viewer.