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

@@ -78,7 +78,7 @@ if (isset($_GET['success_msg'])) {
template_header('Product', 'product', 'view');
$view = '
<div class="content-title responsive-flex-wrap responsive-pad-bot-3">
<h2 class="responsive-width-100">'.$responses->productcode.' - '.$responses->productname.'</h2>
<h2 class="responsive-width-100">'.$responses->productcode.' - '.(${$responses->productname} ?? $responses->productname).'</h2>
<a href="index.php?page='.$_SESSION['origin'].'&p='.$_SESSION['p'].'" class="btn alt mar-right-2">'.$button_cancel.'</a>
';
@@ -124,7 +124,7 @@ $view .= ' <div class="content-block order-details">
</div>
<div class="order-detail">
<h3>'.$product_name.'</h3>
<p>'.$responses->productname.'</p>
<p>'.(${$responses->productname} ?? $responses->productname).'</p>
</div>';
$view .='