Shop . Click . Drive
<?php
  $post_id = get_the_id();
// echo print_r(get_vehicle_gallery_images()); 
$image_urls = get_post_meta($post_id, 'pictures', true);

if (is_string($image_urls)) {
    $images = explode(',', $image_urls);
} elseif (is_array($image_urls)) {
    $images = $image_urls;
} else {
    $images = [];
}

if (!empty($images)): ?>
    <div class="vehicle-gallery">
        <?php foreach ($images as $index => $img_url): ?>
            <a href="<?php echo esc_url(trim($img_url)); ?>" class="glightbox" data-gallery="vehicle-gallery">
                <?php if ($index === 0): ?>
                    <img src="<?php echo esc_url(trim($img_url)); ?>" alt="Vehicle Image" class="gallery-main-image" />
                <?php else: ?>
                    <img src="<?php echo esc_url(trim($img_url)); ?>" alt="Gallery Thumb" class="gallery-thumb"  />
                <?php endif; ?>
            </a>
        <?php endforeach; ?>
    </div>
<?php endif; ?>

document.addEventListener('DOMContentLoaded', function () {
    new Swiper('.vehicle-gallery', {
        slidesPerView: 5,
        spaceBetween: 10,
        loop: true,
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
        breakpoints: {
            768: {
                slidesPerView: 3,
            },
            480: {
                slidesPerView: 2,
            }
        }
    });
});
1
Pre-Owned

MERCEDES 200 AT (2024)

R 699 890
Description
Mileage
28000 km
Year
Fuel Type
UNLEADED
Exterior Colour
BLACK
Transmission
AUTOMATIC
VIN
Vehicle ID
28380473
Features
Range
GLA
Mileage
28 000 km
Year
2024
Colour
BLACK
Transmission
AUTOMATIC
Fuel
UNLEADED
Body Type
STATION WAGON
Doors
5
Service History
Full
Vin No.
W1N2477872J638897
Comments

Finance Calculator

Car Loan Calculator with balloon
%
Years
%

Estimated Payment

R/month

Car Price

R

Principal
R
Car Loan Calculator with balloon
%
Years
%

Estimated Payment

R/month

Car Price

R

Principal
R
Contact Person
Contact Email
<?php
  $post_id = get_the_id();

   $custom_fields = get_post_meta($post_id);
echo $custom_fields['mmcode'][0] . '<br />';
  echo print_r($custom_fields);
    if (empty($custom_fields)) {
        error_log("No custom fields found for post ID: $post_id");
        return;
    }

    error_log("Custom fields for post ID $post_id:");

    foreach ($custom_fields as $key => $value) {
        // $value is always an array
        if (is_array($value)) {
            foreach ($value as $val) {
                error_log("$key => $val");
            }
        } else {
            error_log("$key => $value");
        }
    }
?>
Back to search results
R 699 890
MSRP
Vehicle Enquiry
Back to search results
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_13.jpg
R 519 950
MERCEDES
GLA
(2021)

MERCEDES 200 7G-DCT

USED
2021
98 800 km
AUTOMATIC
UNLEADED
Polar White
R 519 950
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_13.jpg
R 569 950
MERCEDES
GLA
(2020)

MERCEDES 200d 7G-DCT

USED
2020
41 314 km
AUTOMATIC
DIESEL
polar white
R 569 950
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_7.jpg
R 699 950
MERCEDES
GLA
(2022)

MERCEDES 200 PROGRESSIVE

USED
2022
37 000 km
AUTOMATIC
UNLEADED
WHITE
R 699 950
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u50652_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u50652_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u50652_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u50652_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_20.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_21.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_22.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_23.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_24.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_25.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_26.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_27.jpg
R 729 950
MERCEDES
GLA
(2023)

MERCEDES 200d PROGRESSIVE

USED
2023
21 500 km
AUTOMATIC
DIESEL
digital white metall
R 729 950