Plugin Directory

Changeset 3398664


Ignore:
Timestamp:
11/19/2025 09:05:45 AM (8 weeks ago)
Author:
aarsiv
Message:

Fedex Setting download option

Location:
a2z-fedex-shipping
Files:
63 added
3 edited

Legend:

Unmodified
Added
Removed
  • a2z-fedex-shipping/trunk/a2zfedex_basic.php

    r3397799 r3398664  
    44 * Plugin URI: https://myshipi.com/
    55 * Description: Realtime Shipping Rates, shipping labels.
    6  * Version: 5.1.1
     6 * Version: 5.1.2
    77 * Author: Shipi
    88 * Author URI: https://myshipi.com/
     
    137137                }
    138138                add_action( 'woocommerce_view_order', array($this, 'add_tracking_info_to_order_view'), 10 );
    139 
     139                add_action( 'admin_init', array( $this, 'handle_settings_download' ) );
     140
     141            }
     142
     143            public function handle_settings_download() {
     144                if ( isset( $_GET['download_fedex_settings'] ) && $_GET['download_fedex_settings'] == 'true' ) {
     145                    $settings = get_option( 'hitshippo_fedex_main_settings' );
     146                    header( 'Content-Type: application/json' );
     147                    header( 'Content-Disposition: attachment; filename=fedex_settings.json' );
     148                    wp_send_json( $settings );
     149                    die();
     150                }
    140151            }
    141152            function shipi_on_plugin_update() {
  • a2z-fedex-shipping/trunk/controllors/views/hitshippo_fedex_settings_view.php

    r3397799 r3398664  
    11101110                            <p>It's great to have you here. Make your customers happier by reacting faster and handling their service requests in a timely manner, meaning higher store reviews and more revenue.</p>
    11111111                            <h3>Configure your FedEx account below</h3>
     1112                            <a href="admin.php?page=hit-fedex-configuration&download_fedex_settings=true">Download Settings</a>
    11121113                        </div>
    11131114                    </div>
  • a2z-fedex-shipping/trunk/readme.txt

    r3397810 r3398664  
    55Tested up to: 6.8
    66Requires PHP: 5.6
    7 Stable tag: 5.1.1
     7Stable tag: 5.1.2
    88License: GPLv3 or later License
    99URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    159159
    160160== Changelog ==
     161= 5.1.2 =
     162    > [New] Download settings added.
    161163= 5.1.1 =
    162164    > UI Bug Fixes
Note: See TracChangeset for help on using the changeset viewer.