CMXX - Placeorder initial version

This commit is contained in:
“VeLiTi”
2025-02-13 11:23:15 +01:00
parent 2eaf83c3fe
commit 3424c9fadc
14 changed files with 446 additions and 377 deletions

View File

@@ -36,7 +36,7 @@ if (isset($_GET['id'])) {
<meta property="og:title" content="' . (${$product['productname']} ?? $product['productname']) . '">
';
if (isset($product['full_path'])) {
$meta .= '<meta property="og:image" content="'.$img_url.$product['full_path'].'">';
$meta .= '<meta property="og:image" content="'.img_url.$product['full_path'].'">';
}
//GET RELATED MEDIA
@@ -119,7 +119,7 @@ $view .='
$altTitle = $attribute['alternative_media_title'] ?? $attribute['title'];
$view .='
<div class="product-img-large">
<img src="'.$img_url.$fullPath.'" id="'.$product['rowID'].'" alt="'.$altTitle.'">
<img src="'.img_url.$fullPath.'" id="'.$product['rowID'].'" alt="'.$altTitle.'">
</div>';
break 2; // Exit all loops once found
}
@@ -130,7 +130,7 @@ $view .='
} elseif (isset($product['full_path']) && $product['full_path'] != ''){
$view .='
<div class="product-img-large">
<img src="'.$img_url.$product['full_path'].'" id="'.$product['rowID'].'" alt="'.(${$product['productname']} ?? $product['productname']).'">
<img src="'.img_url.$product['full_path'].'" id="'.$product['rowID'].'" alt="'.(${$product['productname']} ?? $product['productname']).'">
</div>';
}
$view .='
@@ -139,7 +139,7 @@ $view .='
foreach ($product_media as $media){
$view .=' <div class="product-img-small '.($media['position']==1?' selected':'').'">
<img src="'.$img_url.$media['full_path'].'" width="150" height="150" alt="">
<img src="'.img_url.$media['full_path'].'" width="150" height="150" alt="">
</div>';
}
$view .='
@@ -202,11 +202,11 @@ $view .='<form id="product-form" action="" method="post">';
//ADD updateOption to change pictures when GROUP is IN configuration
if(isset($product['config_setting']) && $product['config_setting'] == $configuration['assignment']){
$IMG_large_id = $img_url.$attribute['alternative_media_full_path']; //URL TO LARGE IMAGE
$IMG_large_id = img_url.$attribute['alternative_media_full_path']; //URL TO LARGE IMAGE
$onclick = 'onclick="updateOption(\''.$product['rowID'].'\',\''.$IMG_large_id.'\')"';
}
$IMG_small_id = $img_url.$attribute['full_path']; //URL TO SMALL IMAGE
$IMG_small_id = img_url.$attribute['full_path']; //URL TO SMALL IMAGE
$output .= '
<label class="picture_select_label">
@@ -237,11 +237,11 @@ $view .='<form id="product-form" action="" method="post">';
//ADD updateOption to change pictures when GROUP is IN configuration
if(isset($product['config_setting']) && $product['config_setting'] == $configuration['assignment']){
$IMG_large_id = $img_url.$attribute['alternative_media_full_path']; //URL TO LARGE IMAGE
$IMG_large_id = img_url.$attribute['alternative_media_full_path']; //URL TO LARGE IMAGE
$onclick = 'onclick="updateOption(\''.$product['rowID'].'\',\''.$IMG_large_id.'\')"';
}
$IMG_small_id = $img_url.$attribute['full_path']; //URL TO SMALL IMAGE
$IMG_small_id = img_url.$attribute['full_path']; //URL TO SMALL IMAGE
$output .= '
<label class="picture_select_label">
@@ -276,11 +276,11 @@ $view .='<form id="product-form" action="" method="post">';
//ADD updateOption to change pictures when GROUP is IN configuration
if(isset($product['config_setting']) && $product['config_setting'] == $configuration['assignment']){
$IMG_large_id = $img_url.$attribute['alternative_media_full_path']; //URL TO LARGE IMAGE
$IMG_large_id = img_url.$attribute['alternative_media_full_path']; //URL TO LARGE IMAGE
$onclick = 'onclick="updateOption(\''.$product['rowID'].'\',\''.$IMG_large_id.'\')"';
}
$IMG_small_id = $img_url.$attribute['full_path']; //URL TO SMALL IMAGE
$IMG_small_id = img_url.$attribute['full_path']; //URL TO SMALL IMAGE
$output .= '
<option id="'.$attribute['attribute_id'].'" value="'.$attribute['attribute_id'].'" data-price="'.($attribute['price'] ?? 0).'" data-rrp="'.($attribute['rrp'] ?? 0).'" data-modifier="'.($attribute['price_modifier'] ?? '').'">'.(${$attribute['item_name']} ?? $attribute['item_name']).'</option>';