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 C 200 9G-TRONIC (2019)

R 699 950
Description
Extras include but not limited toAMGLED LIGHTSPARK ASSISTREV CAM
Mileage
3500 km
Year
Fuel Type
UNLEADED
Exterior Colour
polar white
Transmission
AUTOMATIC
VIN
Vehicle ID
28380950
Features
Range
C-CLASS
Mileage
3 500 km
Year
2019
Colour
polar white
Transmission
AUTOMATIC
Fuel
UNLEADED
Body Type
SEDAN
Doors
4
Service History
Full
Vin No.
WDD2053802F824512
Comments
Extras include but not limited toAMGLED LIGHTSPARK ASSISTREV CAM

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 950
MSRP
Vehicle Enquiry
Call Now
Available from Mercedes Benz Umhlanga
2 Canegate Rd, Somerset Park, Umhlanga, 4051
Back to search results
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_11.jpg
R 279 899
MERCEDES
C-CLASS
(2016)

MERCEDES C 180 BE 7G-TRONIC PLUS

USED
2016
76 500 km
AUTOMATIC
UNLEADED
WHITE
R 279 899
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_20.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_21.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_22.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_23.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_24.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_25.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_26.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_27.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_28.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_29.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_30.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_31.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_32.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_33.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_34.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_35.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_36.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_37.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_38.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_39.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_40.jpg
R 309 990
MERCEDES
C-CLASS
(2018)

MERCEDES C 180 BE AMG 7G-TRONIC PLUS

USED
2018
149 000 km
AUTOMATIC
UNLEADED
WHITE
R 309 990
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_13.jpg
R 399 950
MERCEDES
C-CLASS
(2020)

MERCEDES C 180 9G-TRONIC

USED
2020
82 900 km
AUTOMATIC
UNLEADED
iridium silver metallic
R 399 950
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_11.jpg
R 399 950
MERCEDES
C-CLASS
(2019)

MERCEDES C 180 9G-TRONIC

USED
2019
119 949 km
AUTOMATIC
UNLEADED
obsidian black metallic
R 399 950