Production release

This commit is contained in:
“VeLiTi”
2025-08-12 15:04:56 +02:00
parent 580f835fff
commit 60a32a7ff9
33 changed files with 2030 additions and 5494 deletions

View File

@@ -1,7 +1,7 @@
<?php
// Include the configuration file, this contains settings you can change.
// Includes
include './custom/settings/config.php';
// Include functions and connect to the database using PDO MySQL
include './custom/settings/translations_mapping.php';
include './functions.php';
//+++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -73,7 +73,14 @@ if($token !=''){
//++++++++++++++++++++++++++++++++++++++++++++++++++++++
//Send the invoice when status is Paid
//++++++++++++++++++++++++++++++++++++++++++++++++++++++
$invoice_language = strtoupper($invoice_cust['customer']['language']!= '' ? $invoice_cust['customer']['language'] : $responses['language']);
// Determine invoice language
if (!empty($invoice_cust['customer']['language'])) {
$invoice_language = strtoupper($invoice_cust['customer']['language']);
} elseif (!empty($invoice_cust['customer']['country']) && isset($available_languages[strtoupper($invoice_cust['customer']['country'])])) {
$invoice_language = $available_languages[strtoupper($invoice_cust['customer']['country'])];
} else {
$invoice_language = 'US'; // Default fallback
}
list($data,$customer_email,$order_id) = generateInvoice($invoice_cust,$orderId,$invoice_language);