CMXX - Product attributes and initial multi languagal product support

This commit is contained in:
“VeLiTi”
2025-01-14 14:40:01 +01:00
parent 906ce7b843
commit 05b0c2bdb1
18 changed files with 234 additions and 202 deletions

View File

@@ -72,7 +72,7 @@ if ($query_products != null){
<select name="productcode">
<option value="" disabled selected>'.$equipment_label4.'</option>';
foreach ($query_products as $product){
$product_list .= '<option value="'.$product->productcode.'">'.$product->productname.'</option>';
$product_list .= '<option value="'.$product->productcode.'">'.(${$product->productname} ?? $product->productname).'</option>';
}
$product_list .= '</select>';
}
@@ -231,7 +231,7 @@ $view .= '<tr>
<td class="responsive-hidden">'.$indicators.'</td>
<td>'.$response->serialnumber.'</td>
<td><span class="status id'.$response->status.'">'.$$status_text.'</span></td>
<td>'.$response->productcode.'-'.$response->productname.'</td>';
<td>'.$response->productcode.'-'.(${$response->productname} ?? $response->productname).'</td>';
$view .= ' <td class="responsive-hidden">';
if (!empty($picture)){
$view .='