Plugin Directory

Changeset 3305014


Ignore:
Timestamp:
06/02/2025 12:39:16 PM (10 months ago)
Author:
arture
Message:

Version 2.1.4

Location:
order-picking-app/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • order-picking-app/trunk/admin/class-orderpickingapp-admin.php

    r3303480 r3305014  
    8080                                action: 'download_picklist',
    8181                                status: 'all',
     82                                type: 'pdf',
    8283                                security: '<?php echo wp_create_nonce("order_picking_nonce"); ?>'
    8384                            },
     
    8788                        });
    8889                    });
    89                     $('#DownloadSummary').click(function(e) {
     90                    $('.DownloadSummary').click(function(e) {
    9091                        e.preventDefault();
    9192
    9293                        var ajaxUrl = '<?php echo admin_url("admin-ajax.php"); ?>';
    93                         $('#DownloadPicklist').html("Creating PDF...");
     94                        $(this).html("Creating file...");
    9495
    9596                        $.ajax({
     
    99100                                action: 'download_picklist',
    100101                                status: 'summary',
     102                                type: $(this).attr('file_type'),
    101103                                security: '<?php echo wp_create_nonce("order_picking_nonce"); ?>'
    102104                            },
     
    149151                </div>
    150152            </div>
    151             <button id="DownloadPicklist" class="button button-primary">Download picklist</button>
    152             <button id="DownloadSummary" class="button button-primary">Download summary</button>
     153            <button id="DownloadPicklist" class="button button-primary">PDF picklist</button>
     154            <button file_type="pdf" class="DownloadSummary button button-primary">PDF summary</button>
     155            <button file_type="csv" class="DownloadSummary button button-primary">CSV summary</button>
    153156        <?php endif;
    154157    }
     
    166169
    167170        $shop = get_option('opa_subscription_id');
    168        
    169         $url = 'https://orderpickingapp.com/wp-json/picking/v1/pickinglist?token='.$orderpickingapp_apikey.'&shop='.$shop.'&status='.$_POST['status'];
     171
     172        $url = 'https://orderpickingapp.com/wp-json/picking/v1/pickinglist?token='.$orderpickingapp_apikey.'&shop='.$shop.'&status='.$_POST['status'].'&type='.$_POST['type'];
    170173
    171174        // Haal data op via API
  • order-picking-app/trunk/orderpickingapp.php

    r3303480 r3305014  
    33 * Plugin Name:       Order Picking App
    44 * Description:       Make your life easier by using the Orderpicking App. You'll never be inefficient if the Orderpicking App is installed in your store. We assist you in all aspects of your webshop. From intelligent selecting to order packing, we have you covered. Connecting the Orderpicking App to your Woocommerce webshop is simple and quick. Within an hour, you'll be online with the Orderpicking App. You're able to pick and pack your orders three times faster and with greater accuracy.
    5  * Version:           2.1.3
     5 * Version:           2.1.4
    66 * Author:            Arture | PHP Professionals
    77 * Author URI:        http://arture.nl
  • order-picking-app/trunk/readme.txt

    r3303480 r3305014  
    55Requires at least: 6.0
    66Tested up to: 6.8.1
    7 Stable tag: 2.1.3
     7Stable tag: 2.1.4
    88Requires PHP: 8.0
    99License: GPLv2 or later
     
    3737== Changelog ==
    3838
     39= 2.1.4 =
     40* Dashboard widget with picking summary CSV export
     41
    3942= 2.1.3 =
    4043* Dashboard widget with picking list downloads
Note: See TracChangeset for help on using the changeset viewer.