Plugin Directory

Changeset 3163055


Ignore:
Timestamp:
10/05/2024 07:23:08 AM (18 months ago)
Author:
devtarik
Message:

fixed a minor bug

Location:
wda-sales-report
Files:
26 added
5 edited

Legend:

Unmodified
Added
Removed
  • wda-sales-report/trunk/includes/activation-actions.php

    r3159391 r3163055  
    1010if ( ! function_exists( 'wdasr_activation_actions' ) ) {
    1111    function wdasr_activation_actions() {
    12         $settings = new WDASR_settings();
     12        $initial_settings = new WDASR_settings();
    1313
    14         update_option( 'wdasr_options', wp_json_encode( $settings->settings( gmdate('Y-m-d') ) ) );
     14        update_option( 'wdasr_options', wp_json_encode( $initial_settings->settings( gmdate('Y-m-d') ) ) );
    1515    }
    1616}
  • wda-sales-report/trunk/modules/class-admin-menu.php

    r3161456 r3163055  
    1616            $this->settings = json_decode( get_option( 'wdasr_options', '{}' ), true );
    1717            $this->options  = $this->settings['options'];
    18             $this->saved_filters = get_option( 'wdasr_saved_filters', '{}' );
    19 
     18            $this->saved_filters = count($this->saved_filters) ? $this->saved_filters : get_option( 'wdasr_saved_filters', '{}' );
    2019
    2120            add_action( 'admin_menu', [ $this, 'admin_menu_options' ] );
  • wda-sales-report/trunk/modules/class-sales-report.php

    r3161456 r3163055  
    3939        <div id="wdasr--report-container" class="wrap">
    4040
    41             <!-- <hr /> -->
    42 
    4341            <section class="wdasr--flex vertical row-gap" id="wdasr--filter-properties">
    4442
     
    7876            <section id="wdasr--display-options">
    7977                <?php foreach ($_displays as $_display_key => $_display_object) : ?>
     78
     79                    <?php $_ability = array_key_exists('free', $_display_object) ? $_display_object['free'] : true; ?>
     80
    8081                    <span class="wdasr--margin right">
    81                         <input name="<?php echo esc_attr( $_display_key ); ?>" type="checkbox" id="<?php echo esc_attr( $_display_key ); ?>" value="checked" <?php echo esc_attr( $_display_object['value'] ); ?> <?php echo esc_attr( $_display_object['free'] ? '' : 'disabled' ); ?> />
    82                         <label for="<?php echo esc_attr( $_display_key ); ?>"><?php echo esc_html( $_display_object['label'] ); ?> <?php $_display_object['free'] ? '' : $this->get_pro(); ?></label>
     82                        <input
     83                            name="<?php echo esc_attr( $_display_key ); ?>"
     84                            type="checkbox"
     85                            id="<?php echo esc_attr( $_display_key ); ?>"
     86                            value="checked"
     87                            <?php echo esc_attr( $_display_object['value'] ); ?>
     88                            <?php echo esc_attr( $_ability ? '' : 'disabled' ); ?>
     89                        />
     90
     91                        <label for="<?php echo esc_attr( $_display_key ); ?>"><?php echo esc_html( $_display_object['label'] ); ?> <?php $_ability ? '' : $this->get_pro(); ?></label>
    8392                    </span>
    8493                <?php endforeach; ?>
  • wda-sales-report/trunk/readme.txt

    r3161795 r3163055  
    66Tested up to: 6.6
    77Requires PHP: 7.4
    8 Stable tag: 1.1.0
     8Stable tag: 1.1.1
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5858* **Plotly.js v2.32.0** - https://cdn.plot.ly/plotly-2.32.0.min.js
    5959
     60== License ==
     61This plugin is licensed under the GNU General Public License v2.0 or later.
     62
    6063== Changelog ==
    6164= 1.0.0 =
     
    6366* Added specific field summaries, product list reports, daily reports, and chart visualizations.
    6467
    65 == License ==
    66 This plugin is licensed under the GNU General Public License v2.0 or later.
     68= 1.1.0 =
     69* Released more features for free.
     70
     71= 1.1.1 =
     72* Fixed a minor bug.
  • wda-sales-report/trunk/wda-sales-report.php

    r3161456 r3163055  
    55* Description:          Generate detailed WooCommerce order reports with customizable filters and visualizations.
    66* Plugin URI:           https://webdevadvisor.com/product/wda-sales-report/
    7 * Version:              1.1.0
     7* Version:              1.1.1
    88* Requires at least:    6.2
    99* Requires PHP:         5.6.20
Note: See TracChangeset for help on using the changeset viewer.