جاهز لإعادة الشحن
40
•
رمز المنتج (SKU): 2210-KYB-211-5170 DPHI-102210-2115170 5011987006621 11517511221 IT-11517511221-W 11 51 7 511 221
Bmw 3 Series E46 Case 2002-2006 316i مضخة مياه للتدوير
العلامة التجارية BMW ITHAL
$57.97
check_circle
جاهزة للشحن فوراً
local_shipping
شحن مجاني للطلبات فوق 150 دولار
verified_user
نعم المنتج لمدة سنتين
Bmw 3 Series E46 Case 2002-2006 316i مضخة مياه مستوردة
' + json['error']['subscription'] + '
');
}
}
if (json['success']) {
// Success Message
$('#form-product').before('' + json['success'] + '
');
// Update cart total in header
if (json['total']) {
// OpenCart 4 total usually contains items count in text
var total_items = json['total'].match(/\d+/);
if (total_items) {
$('#cart-total-items').text(total_items[0]);
} else {
$('#cart-total-items').text('!'); // Fallback
}
}
}
}
});
});
document.addEventListener('DOMContentLoaded', function() {
if (window.jQuery) {
// Tab switching
jQuery('.tab-button').on('click', function() {
var tabId = jQuery(this).data('tab');
// Update button styles
jQuery('.tab-button').removeClass('border-primary text-primary').addClass('border-transparent text-slate-500 dark:text-slate-400');
jQuery(this).removeClass('border-transparent text-slate-500 dark:text-slate-400').addClass('border-primary text-primary');
// Show/hide tab content
jQuery('.tab-content').addClass('hidden');
jQuery('#tab-' + tabId).removeClass('hidden');
});
}
});
function openWhatsAppModal() {
document.getElementById('whatsappModal').classList.remove('hidden');
}
function closeWhatsAppModal() {
document.getElementById('whatsappModal').classList.add('hidden');
}
function sendWhatsAppMessage() {
var vin = document.getElementById('input-vin').value.trim();
if (!vin) {
alert("Please enter a Chassis Number (VIN).");
return;
}
var phone = "905347803114";
var productUrl = window.location.href;
var productName = "Bmw\u00203\u0020Series\u0020E46\u0020Case\u00202002\u002D2006\u0020316i\u0020\u0645\u0636\u062E\u0629\u0020\u0645\u064A\u0627\u0647\u0020\u0644\u0644\u062A\u062F\u0648\u064A\u0631";
var message = "Hello, I want to check compatibility for my vehicle.\n\n" +
"VIN / Chassis Number: " + vin + "\n\n" +
"Product: " + productName + "\n" +
"Link: " + productUrl;
var whatsappUrl = "https://wa.me/" + phone + "?text=" + encodeURIComponent(message);
window.open(whatsappUrl, '_blank');
closeWhatsAppModal();
}