Plugin Directory

Changeset 3069007


Ignore:
Timestamp:
04/11/2024 01:03:33 PM (2 years ago)
Author:
putler
Message:

Changes for v2.14.0

Location:
woocommerce-putler-connector/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-putler-connector/trunk/classes/class-woocommerce-putler-connector.php

    r2945562 r3069007  
    912912                ); // WPCS: cache ok, db call ok.
    913913            }
    914             $results_order_details_count = $wpdb->num_rows;
    915 
    916             if ( $results_order_details_count > 0 ) {
     914
     915            if ( ! empty( $results_order_details ) && count( $results_order_details ) > 0 ) {
    917916
    918917                $order_ids           = array();
     
    19941993                        }
    19951994
     1995                        $main_response = $response;
    19961996                        // Code for line items.
    19971997                        foreach ( $cart_items as $item_id => $cart_item ) {
    19981998
    19991999                            $order_item                = array();
    2000                             $order_item ['Type']       = ( false === $sub_trans && 'Refund' !== $response ['Type'] ) ? 'Shopping Cart Item' : $response ['Type'];
     2000                            $order_item ['Type']       = ( false === $sub_trans && 'Refund' !== $main_response ['Type'] ) ? 'Shopping Cart Item' : $main_response ['Type'];
    20012001                            $order_item ['Item_Title'] = ( ! empty( $cart_item['_product_id'] ) ) ? get_the_title( $cart_item['_product_id'] ) : $cart_item['product_name'];
    20022002
     
    20092009                            }
    20102010
    2011                             $order_item ['Gross']    = ( false === $sub_trans && 'Refund' !== $response ['Type'] && is_numeric( $cart_item['_line_total'] ) ) ? round( floatval( $cart_item['_line_total'] ), 2 ) : $response ['Gross'];
     2011                            $order_item ['Gross']    = ( false === $sub_trans && 'Refund' !== $main_response ['Type'] && is_numeric( $cart_item['_line_total'] ) ) ? round( floatval( $cart_item['_line_total'] ), 2 ) : $main_response ['Gross'];
    20122012                            $order_item ['Quantity'] = $cart_item['_qty'];
    20132013
    20142014                            // code to handle special case where order_total & Discount both are zero make the line_total = 0.
    2015                             if ( 0.00 === floatval( $response ['Discount'] ) && 0.00 === floatval( $response ['Gross'] ) ) {
     2015                            if ( 0.00 === floatval( $main_response ['Discount'] ) && 0.00 === floatval( $main_response ['Gross'] ) ) {
    20162016                                $order_item ['Gross'] = 0.00;
    20172017                            }
     
    20322032
    20332033                            if ( empty( $params['trash'] ) ) {
    2034                                 $response ['Raw_Data'] = ( false === $sub_trans || 'Refund' === $response ['Type'] ) ? '' : $response ['Raw_Data'];
     2034                                $response ['Raw_Data'] = ( false === $sub_trans || 'Refund' === $main_response ['Type'] ) ? '' : $main_response ['Raw_Data'];
    20352035                            } else {
    20362036                                $response ['Raw_Data'] = '';
  • woocommerce-putler-connector/trunk/languages/woocommerce-putler-connector.pot

    r2975096 r3069007  
    1 # Copyright (C) 2023 putler, storeapps
     1# Copyright (C) 2024 putler, storeapps
    22# This file is distributed under the GNU General Public License v3.0.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Putler Connector for WooCommerce - Accurate Analytics and Reports for your WooCommerce Store 2.13.0\n"
     5"Project-Id-Version: Analytics for Woo – Putler Accurate Analytics and Reports for your WooCommerce Store 2.14.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-putler-connector-plugin\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-10-05T14:52:51+05:30\n"
     12"POT-Creation-Date: 2024-04-11T17:02:24+05:30\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
     
    1616
    1717#. Plugin Name of the plugin
    18 msgid "Putler Connector for WooCommerce - Accurate Analytics and Reports for your WooCommerce Store"
     18msgid "Analytics for Woo – Putler Accurate Analytics and Reports for your WooCommerce Store"
    1919msgstr ""
    2020
    2121#. Plugin URI of the plugin
    22 msgid "https://putler.com/connector/woocommerce/"
     22msgid "https://www.putler.com/connector/woocommerce/"
    2323msgstr ""
    2424
     
    3232
    3333#. Author URI of the plugin
    34 msgid "https://putler.com/"
     34msgid "https://www.putler.com/"
    3535msgstr ""
    3636
  • woocommerce-putler-connector/trunk/readme.txt

    r3050907 r3069007  
    22Contributors: Putler, StoreApps
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CPTHCDC382KVA
    4 Author URI: https://putler.com/
    5 Plugin URI: https://putler.com/
    6 Tags: analytics for WooCommerce, analytics for Woo, WooCommerce reporting, Woo reports, eCommerce reports
     4Author URI: https://www.putler.com/
     5Plugin URI: https://www.putler.com/
     6Tags: analytics for WooCommerce, analytics for Woo, WooCommerce reporting, Woo reports, WooCommerce reports, WooCommerce analytics, e-Commerce reports, SaaS metrics, Subscription analytics, store analytics, multichannel analytics, customer segmentation
    77Requires at least: 4.8.0
    8 Tested up to: 6.4.2
     8Tested up to: 6.5.2
    99Requires PHP: 5.6
    10 Stable tag: 2.13.0
     10Stable tag: 2.14.0
    1111License: GPL 3.0
    1212
     
    158158== Changelog ==
    159159
     160= 2.14.0 (11.04.2024) =
     161* New: WooCommerce 8.7.0 compatible
     162* New: WordPress 6.5.2 compatible
     163* Fix: Line item totals field displayed as 0 in the final XML/CSV
     164* Update: Code improvements
     165* Update: POT file
     166
    160167= 2.13.0 (05.10.2023) =
    161168* New: WooCommerce 8.1.1 compatible
     
    310317== Upgrade Notice ==
    311318
     319= 2.14.0 =
     320WooCommerce 8.7.0 compatible, WordPress 6.5.2 compatible, Fixes related to Line item totals field displayed as 0 in the final XML/CSV along with some important updates and fixes, recommended upgrade.
     321
    312322= 2.13.0 =
    313323WooCommerce 8.1.1 and WordPress 6.3.1 compatible, Fixes related to Important Security issues, Updates related to Changes in the Authentication Process along with some important updates and fixes, recommended upgrade.
  • woocommerce-putler-connector/trunk/woocommerce-putler-connector.php

    r3026691 r3069007  
    22/**
    33 * Plugin Name: Analytics for Woo – Putler Accurate Analytics and Reports for your WooCommerce Store
    4  * Plugin URI: https://putler.com/connector/woocommerce/
     4 * Plugin URI: https://www.putler.com/connector/woocommerce/
    55 * Description: Accurate reports, analytics, integrations, growth insights and tools for your WooCommerce store.
    6  * Version: 2.13.0
     6 * Version: 2.14.0
    77 * Author: putler, storeapps
    8  * Author URI: https://putler.com/
     8 * Author URI: https://www.putler.com/
    99 * Text Domain: woocommerce-putler-connector
    1010 * Domain Path: /languages/
    1111 * Requires at least: 4.8.0
    12  * Tested up to: 6.4.2
     12 * Tested up to: 6.5.2
    1313 * Requires PHP: 5.6+
    1414 * WC requires at least: 3.0.0
    15  * WC tested up to: 8.1.1
     15 * WC tested up to: 8.7.0
    1616 * Copyright (c) 2006 - 2024 Putler. All rights reserved.
    1717 * License: GNU General Public License v3.0
     
    2626}
    2727
    28 define( 'WPC_VERSION', '2.13.0' );
     28define( 'WPC_VERSION', '2.14.0' );
    2929
    3030// Hooks.
Note: See TracChangeset for help on using the changeset viewer.