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

BMW MY20 sDRIVE18i STEPTRONIC (2020)

R 469 000
Description
* Alpine White *Leathertec Black *17" V spoke *Automatic tailgate *Park Distance Control Rear *Emergency spare wheel *Cruise Control with Brake Function *LED fog lights *LED headlights *Navigation
Mileage
53500 km
Year
Fuel Type
UNLEADED
Exterior Colour
Alpine White III
Transmission
AUTOMATIC
VIN
Vehicle ID
28012560
Features
Range
X1
Mileage
53 500 km
Year
2020
Colour
Alpine White III
Transmission
AUTOMATIC
Fuel
UNLEADED
Body Type
STATION WAGON
Doors
5
Service History
Full
Vin No.
WBA32AA0805R08305
Comments
* Alpine White *Leathertec Black *17" V spoke *Automatic tailgate *Park Distance Control Rear *Emergency spare wheel *Cruise Control with Brake Function *LED fog lights *LED headlights *Navigation

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 469 000
MSRP
Vehicle Enquiry
Back to search results
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_9.jpg
R 429 950
99 230 km
2021
AUTOMATIC
DIESEL
GREY
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_12.jpg
R 459 890
87 500 km
2021
AUTOMATIC
DIESEL
BLUE
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_10.jpg
R 469 000
49 800 km
2020
AUTOMATIC
UNLEADED
Black Sapphire Metal
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_11.jpg
R 469 900
100 000 km
2021
AUTOMATIC
DIESEL
Mineral White Metallic
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070813_9.jpg
USED
2021
99 230 km
AUTOMATIC
DIESEL
GREY
R 429 950
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_12.jpg
R 459 890
BMW
X1
(2021)

BMW MY20 sDRIVE20d STEPTRONIC

USED
2021
87 500 km
AUTOMATIC
DIESEL
BLUE
R 459 890
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_10.jpg
USED
2020
49 800 km
AUTOMATIC
UNLEADED
Black Sapphire Metal
R 469 000
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_11.jpg
USED
2021
100 000 km
AUTOMATIC
DIESEL
Mineral White Metallic
R 469 900