Skip to content

Commit 6af24ce

Browse files
committed
v2.2.1
1 parent 77a62a2 commit 6af24ce

4 files changed

Lines changed: 41 additions & 32 deletions

File tree

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ This plugin lets you to Generate Awesome Invoices for WooCommerce orders and:
2121
- Alter plugins via Action/Filter hooks
2222
- and .....
2323

24-
25-
### Hot Features of Version 1.3.7 🔥 (2021-07-14 | 1400-04-23)
26-
- Bulk Download Invoices PDF as ZIP Archive
27-
- Bulk Print Invoices Inventory Reports
28-
- Bulk Print Invoices Shipping Slips
29-
- Export/Import Settings as JSON/PHP!
30-
31-
3224
-----------------------
3325

3426
### Made by Developers for Developers
@@ -101,7 +93,7 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
10193
### ***Changelog***
10294

10395

104-
#### Version 2.2.0 | 2025-12-25 | 1404-10-04
96+
#### Version 2.2.1 | 2025-12-25 | 1404-10-04
10597
- Added: New Feature to Support Thermal Printer Labels (80mm / پرینتر حرارتی / فیش پرینتر)
10698
- Added: New Template for Thermal Printer Invoices
10799
- Added: Download POS Invoices PDF as ZIP Archive

include/admin/class-setting.php

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,25 @@ public function get_settings($current_section = "") {
12531253
);
12541254
break;
12551255
case 'pdf':
1256+
$font_names = array(
1257+
"dejavu" => _x("DejaVuSans (Standard)", "wc-setting", "pepro-ultimate-invoice"),
1258+
"danaen" => _x("Dana (Standard)", "wc-setting", "pepro-ultimate-invoice"),
1259+
"iransans" => _x("IRANSans (Standard)", "wc-setting", "pepro-ultimate-invoice"),
1260+
"iranyekanen" => _x("IRANYekan (Standard)", "wc-setting", "pepro-ultimate-invoice"),
1261+
"danafa" => _x("Dana (Farsi-Digits Support)", "wc-setting", "pepro-ultimate-invoice"),
1262+
"iransansfa" => _x("IRANSans (Farsi-Digits Support)", "wc-setting", "pepro-ultimate-invoice"),
1263+
"iranyekanfa" => _x("IRANYekan (Farsi-Digits Support)", "wc-setting", "pepro-ultimate-invoice"),
1264+
);
1265+
require_once PEPROULTIMATEINVOICE_DIR . '/include/vendor/autoload.php';
1266+
$defaultFontConfig = (new \Mpdf\Config\FontVariables())->getDefaults();
1267+
$fontData = $defaultFontConfig['fontdata'] ?? array();
1268+
if ($fontData && !empty($fontData)) {
1269+
foreach ($fontData as $item => $val) {
1270+
if (!isset($font_names[$item])) {
1271+
$font_names[$item] = $val[array_key_first($val)] . " ( " . _x("Built-in", "wc-setting", "pepro-ultimate-invoice") . (isset($val["useKashida"])?" - Native Arabic Support":"") . " )";
1272+
}
1273+
}
1274+
}
12561275
$section_data = apply_filters(
12571276
"puiw_setting_section_{$current_section}",
12581277
array(
@@ -1323,19 +1342,12 @@ public function get_settings($current_section = "") {
13231342
),
13241343
),
13251344
'puiw_pdf_font' => array(
1326-
'name' => _x("PDF Font", "wc-setting", "pepro-ultimate-invoice"),
1327-
'type' => 'radio',
1328-
'default' => 'iranyekanfa',
1329-
'options' => array(
1330-
"dejavu" => _x("DejaVuSans (Standard)", "wc-setting", "pepro-ultimate-invoice"),
1331-
"danaen" => _x("Dana (Standard)", "wc-setting", "pepro-ultimate-invoice"),
1332-
"iransans" => _x("IRANSans (Standard)", "wc-setting", "pepro-ultimate-invoice"),
1333-
"iranyekanen" => _x("IRANYekan (Standard)", "wc-setting", "pepro-ultimate-invoice"),
1334-
"danafa" => _x("Dana (Farsi-Digits Support)", "wc-setting", "pepro-ultimate-invoice"),
1335-
"iransansfa" => _x("IRANSans (Farsi-Digits Support)", "wc-setting", "pepro-ultimate-invoice"),
1336-
"iranyekanfa" => _x("IRANYekan (Farsi-Digits Support)", "wc-setting", "pepro-ultimate-invoice"),
1337-
),
1338-
'id' => 'puiw_pdf_font',
1345+
'name' => _x("PDF Font", "wc-setting", "pepro-ultimate-invoice"),
1346+
'type' => 'select',
1347+
'class' => 'wc-enhanced-select',
1348+
'default' => 'iranyekanfa',
1349+
'options' => $font_names,
1350+
'id' => 'puiw_pdf_font',
13391351
),
13401352
'puiw_pdf_end' => array(
13411353
'type' => 'sectionend',

pepro-ultimate-invoice.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
Author URI: https://pepro.dev/
1010
Developer URI: https://amirhp.com
1111
Plugin URI: https://peprodev.com/pepro-woocommerce-ultimate-invoice/
12-
Version: 2.2.0
13-
Stable tag: 2.2.0
12+
Version: 2.2.1
13+
Stable tag: 2.2.1
1414
Tested up to: 6.9
1515
WC tested up to: 10.4
1616
Requires at least: 5.0
@@ -22,7 +22,7 @@
2222
License: GPLv2 or later
2323
License URI: https://www.gnu.org/licenses/gpl-2.0.html
2424
* @Last modified by: amirhp-com <its@amirhp.com>
25-
* @Last modified time: 2025/12/25 05:51:40
25+
* @Last modified time: 2025/12/25 06:30:48
2626
*/
2727

2828
namespace peproulitmateinvoice;
@@ -44,7 +44,7 @@
4444
*/
4545
class PeproUltimateInvoice {
4646
public $td = "pepro-ultimate-invoice";
47-
public $version = "2.2.0";
47+
public $version = "2.2.1";
4848
public $title = "Ultimate Invoice";
4949
public $db_slug = "pepro-ultimate-invoice";
5050
public $plugin_dir;

readme.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Donate link: https://pepro.dev/donate
44
Tags: woocommerce invoice, pdf invoice, persian, WooCommerce
55
Requires at least: 5.0
66
Tested up to: 6.9
7-
Version: 2.1.0
8-
Stable tag: 2.1.0
7+
Version: 2.2.1
8+
Stable tag: 2.2.1
99
Requires PHP: 7.0
1010
WC requires at least: 5.0
1111
WC tested up to: 10.4
@@ -22,6 +22,13 @@ Create HTML/PDF Invoices of WooCommerce Orders, Attach PDF Invoice to Mail and L
2222
Create customizable PDF/HTML invoices for WooCommerce, attach to Email, Packing Slips, Shipping Labels, Shipping Tracking, Single-shop feature and ...
2323
This plugin lets you to Generate Awesome Invoices for WooCommerce orders and:
2424

25+
#### Merry Christmas & Happy New Year 2026! 🎄🎉
26+
Thank you for using and supporting this free plugin! If you have any questions or need assistance, please ask on the WordPress support forum. We're here to help!
27+
28+
**Update to v2.2.1 to get the new Thermal Invoice feature and many more improvements!**
29+
30+
-----------------------
31+
2532
- Download PDF invoices
2633
- Email Styled Invoices
2734
- Attach PDF to WC Emails
@@ -35,7 +42,6 @@ This plugin lets you to Generate Awesome Invoices for WooCommerce orders and:
3542
- Alter plugins via Action/Filter hooks
3643
- and .....
3744

38-
3945
### Hot Features since Version 1.4 🔥
4046
- Bulk Download Invoices PDF as ZIP Archive
4147
- Bulk Print Invoices Inventory Reports
@@ -49,7 +55,6 @@ This plugin lets you to Generate Awesome Invoices for WooCommerce orders and:
4955
- Added: Added Integration Section in Settings
5056

5157

52-
5358
-----------------------
5459

5560
### Made by Developers for Developers
@@ -165,7 +170,7 @@ You can help us improve our works by committing your changes to our Github repos
165170
= Merry Christmas & Happy New Year 2026! 🎄🎉 =
166171
Thank you for using and supporting this free plugin! If you have any questions or need assistance, please ask on the WordPress support forum. We're here to help!
167172

168-
= v2.2.0 | 2025-12-25 | 1404-10-04 =
173+
= v2.2.1 | 2025-12-25 | 1404-10-04 =
169174
- Added: New Feature to Support Thermal Printer Labels (80mm / پرینتر حرارتی / فیش پرینتر)
170175
- Added: New Template for Thermal Printer Invoices
171176
- Added: Download POS Invoices PDF as ZIP Archive
@@ -194,7 +199,7 @@ Thank you for using and supporting this free plugin! If you have any questions o
194199

195200
For full changelog please view [Github Repo.](https://github.com/peprodev/ultimate-invoice)
196201

197-
= v2.2.0 | 2025-12-25 | 1404-10-04 =
202+
= v2.2.1 | 2025-12-25 | 1404-10-04 =
198203
- Added: New Feature to Support Thermal Printer Labels (80mm / پرینتر حرارتی / فیش پرینتر)
199204
- Added: New Template for Thermal Printer Invoices
200205
- Added: Download POS Invoices PDF as ZIP Archive

0 commit comments

Comments
 (0)