CMXX - Placeorder initial version
This commit is contained in:
@@ -140,7 +140,7 @@ $view .= '<div class="products-wrapper">';
|
||||
$view .= '
|
||||
<div class="product">
|
||||
<a href="'.url('index.php?page=product&rowID=' . ($product['url_slug'] ? ($product['url_slug'] ) : $product['rowID'])).'" id="'.$product['rowID'].'A" class="product">
|
||||
<img src="'.$img_url.$product['full_path'].'" id="'.$product['rowID'].'" width="200" height="" alt="'.(${$product['productname']} ?? $product['productname']).'">
|
||||
<img src="'.img_url.$product['full_path'].'" id="'.$product['rowID'].'" width="200" height="" alt="'.(${$product['productname']} ?? $product['productname']).'">
|
||||
</a>';
|
||||
|
||||
//CHECK IF CONFIGURATION SETTING IS FOUND AND NOT EMPTY => USE GROUP TO DISPLAY IMAGES
|
||||
@@ -158,8 +158,8 @@ $view .= '<div class="products-wrapper">';
|
||||
//GET ALL RELATED ATTRIBUTES
|
||||
foreach ($config['attributes'] as $attribute){
|
||||
$option_id = $attribute['attribute_id']; // ID of the LARGE IMAGE
|
||||
$IMG_small_id = $img_url.$attribute['full_path']; //URL TO SMALL IMAGE
|
||||
$IMG_large_id = $img_url.$attribute['alternative_media_full_path']; //URL TO LARGE IMAGE
|
||||
$IMG_small_id = img_url.$attribute['full_path']; //URL TO SMALL IMAGE
|
||||
$IMG_large_id = img_url.$attribute['alternative_media_full_path']; //URL TO LARGE IMAGE
|
||||
|
||||
// Ensure attribute price is a numeric value
|
||||
$attribute_price = isset($attribute['price']) ? floatval($attribute['price']) : 0.00;
|
||||
@@ -185,7 +185,7 @@ $view .= '<div class="products-wrapper">';
|
||||
//SHOW SMALL IMAGE
|
||||
$view .= '<div class="" style="display:flex;justify-content: center">
|
||||
<div>
|
||||
<img class="img_config" src="'.$img_url.$product['full_path'].'"/>
|
||||
<img class="img_config" src="'.img_url.$product['full_path'].'"/>
|
||||
</div>
|
||||
</div>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user