Changeset 3305014
- Timestamp:
- 06/02/2025 12:39:16 PM (10 months ago)
- Location:
- order-picking-app/trunk
- Files:
-
- 3 edited
-
admin/class-orderpickingapp-admin.php (modified) (5 diffs)
-
orderpickingapp.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
order-picking-app/trunk/admin/class-orderpickingapp-admin.php
r3303480 r3305014 80 80 action: 'download_picklist', 81 81 status: 'all', 82 type: 'pdf', 82 83 security: '<?php echo wp_create_nonce("order_picking_nonce"); ?>' 83 84 }, … … 87 88 }); 88 89 }); 89 $(' #DownloadSummary').click(function(e) {90 $('.DownloadSummary').click(function(e) { 90 91 e.preventDefault(); 91 92 92 93 var ajaxUrl = '<?php echo admin_url("admin-ajax.php"); ?>'; 93 $( '#DownloadPicklist').html("Creating PDF...");94 $(this).html("Creating file..."); 94 95 95 96 $.ajax({ … … 99 100 action: 'download_picklist', 100 101 status: 'summary', 102 type: $(this).attr('file_type'), 101 103 security: '<?php echo wp_create_nonce("order_picking_nonce"); ?>' 102 104 }, … … 149 151 </div> 150 152 </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> 153 156 <?php endif; 154 157 } … … 166 169 167 170 $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']; 170 173 171 174 // Haal data op via API -
order-picking-app/trunk/orderpickingapp.php
r3303480 r3305014 3 3 * Plugin Name: Order Picking App 4 4 * 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. 35 * Version: 2.1.4 6 6 * Author: Arture | PHP Professionals 7 7 * Author URI: http://arture.nl -
order-picking-app/trunk/readme.txt
r3303480 r3305014 5 5 Requires at least: 6.0 6 6 Tested up to: 6.8.1 7 Stable tag: 2.1. 37 Stable tag: 2.1.4 8 8 Requires PHP: 8.0 9 9 License: GPLv2 or later … … 37 37 == Changelog == 38 38 39 = 2.1.4 = 40 * Dashboard widget with picking summary CSV export 41 39 42 = 2.1.3 = 40 43 * Dashboard widget with picking list downloads
Note: See TracChangeset
for help on using the changeset viewer.