Skip to content

Commit 695d104

Browse files
authored
Merge pull request #360 from TycheSoftwares/bluk-issue
revert the bulk action fix
2 parents 9603574 + 9e02720 commit 695d104

File tree

7 files changed

+23
-46
lines changed

7 files changed

+23
-46
lines changed

assets/js/admin.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ jQuery(document).ready(function($) {
5555
/*
5656
* Bulk actions print button in the confirm message
5757
*/
58-
$('#woocommerce-delivery-notes-bulk-print-button').on('click', function(event) {
59-
event.preventDefault();
60-
var printUrl = $(this).attr('href');
61-
window.location.href = printUrl; // Open print URL in the same window.
62-
});
58+
$(window).on('load', function(event) {
59+
var bulkButton = $('#woocommerce-delivery-notes-bulk-print-button');
60+
if( bulkButton.length > 0 ) {
61+
bulkButton.trigger('click');
62+
}
63+
});
6364

6465
/*
6566
* Settings

includes/class-woocommerce-delivery-notes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class WooCommerce_Delivery_Notes {
3636
*
3737
* @var string $plugin_version Current plugin version number
3838
*/
39-
public static $plugin_version = '5.0.0';
39+
public static $plugin_version = '5.0.1';
4040

4141
/**
4242
* Plugin URL on current installation

includes/wcdn-template-functions.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ function wcdn_company_logo() {
239239
?>
240240
<div class="logo">
241241
<img src="<?php echo esc_url( $attachment_src[0] ); ?>" class="desktop" width="<?php echo esc_attr( round( $attachment_src[1] / 4 ) ); ?>" height="<?php echo esc_attr( round( $attachment_src[2] / 4 ) ); ?>" alt="<?php echo esc_attr( $company ); ?>" />
242-
<img src="<?php echo esc_url( $attachment_src[0] ); ?>" class="mobile" width="<?php echo esc_attr( round( $attachment_src[1] / 4 ) ); ?>" height="<?php echo esc_attr( round( $attachment_src[2] / 4 ) ); ?>" alt="<?php echo esc_attr( $company ); ?>" />
243242
</div>
244243
<?php
245244
}

readme.txt

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Tags: packing slips, invoice, pdf invoice, delivery notes, woocommerce print inv
66
Requires at least: 4.4
77
Tested up to: 6.5.3
88
Author URI: https://www.tychesoftwares.com/
9-
Stable tag: 5.0.0
9+
Stable tag: 5.0.1
1010
License: GPLv3 or later
1111
License URI: http://www.opensource.org/licenses/gpl-license.php
1212

@@ -338,20 +338,24 @@ Please [contribute your translation](https://github.com/TycheSoftwares/woocommer
338338

339339
== Changelog ==
340340

341+
= 5.0.1 (07.06.2024) =
342+
* Fix - Logo printing double.
343+
* Fix - Bulk Action Print Invoice issue.
344+
341345
= 5.0.0 (05.06.2024) =
342346
This release contains a major update for the plugin, focusing primarily on the all-new backend user interface, along with several bug fixes.
343347
Major Updates:
344-
*Changed the UI of plugin settings page.
345-
*Added a setting for template type, and now customize your template with different settings.
346-
*Added a template setting page to customize the template.
347-
*Added live preview for customization of the template.
348-
*Added size setting for the company logo.
349-
*Added setting To store PDF files for a specific duration.
350-
*Added email attachment with template PDF files.
351-
*Added Invoice menu in the WooCommerce menu.
348+
* Changed the UI of plugin settings page.
349+
* Added a setting for template type, and now customize your template with different settings.
350+
* Added a template setting page to customize the template.
351+
* Added live preview for customization of the template.
352+
* Added size setting for the company logo.
353+
* Added setting To store PDF files for a specific duration.
354+
* Added email attachment with template PDF files.
355+
* Added Invoice menu in the WooCommerce menu.
352356
Bug fixes :
353-
*Fix: Bulk printing being initiated multiple times
354-
*Fix: Translations for the print link in emails do not work
357+
* Fix - Bulk printing being initiated multiple times
358+
* Fix - Translations for the print link in emails do not work
355359

356360
= 4.9.0 (27.02.2024) =
357361
* Fix - Cross-site request forgery vulnerability in the plugin.

templates/print-order/simple/style.css

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,4 @@ tfoot {
187187
width: 50%;
188188
text-align: right;
189189
vertical-align: top;
190-
}
191-
/* hide mobile version by default */
192-
.logo .mobile {
193-
display: none;
194-
}
195-
/* when screen is less than 600px wide show mobile version and hide desktop */
196-
@media ( max-width: 600px ) {
197-
.logo .mobile {
198-
display: block;
199-
}
200-
.logo .desktop {
201-
display: none;
202-
}
203190
}

templates/print-order/style.css

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -317,18 +317,4 @@ h2 {
317317
/* Remove padding to not generate empty follow up pages */
318318
padding-bottom: 0;
319319
}
320-
}
321-
322-
/* hide mobile version by default */
323-
.logo .mobile {
324-
display: none;
325-
}
326-
/* when screen is less than 600px wide show mobile version and hide desktop */
327-
@media ( max-width: 600px ) {
328-
.logo .mobile {
329-
display: block;
330-
}
331-
.logo .desktop {
332-
display: none;
333-
}
334320
}

woocommerce-delivery-notes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Plugin Name: Print Invoice & Delivery Notes for WooCommerce
66
* Plugin URI: https://www.tychesoftwares.com/
77
* Description: Print Invoices & Delivery Notes for WooCommerce Orders.
8-
* Version: 5.0.0
8+
* Version: 5.0.1
99
* Author: Tyche Softwares
1010
* Author URI: https://www.tychesoftwares.com/
1111
* License: GPLv3 or later

0 commit comments

Comments
 (0)