Asus TUF Gaming LC III 360 ARGB, Wasserkühlung – 90RC0191-B0EAY0
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
Thermaltake TOUGHFAN EX 140 ARGB Sync, Gehäuselüfter – CL-F212-PL14SW-A
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
be quiet! Pure Wings 3 120mm PWM high-speed 3-Pack, Gehäuselüfter – BL140
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
be quiet! Pure Wings 3 140mm PWM 3-Pack, Gehäuselüfter – BL139
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
be quiet! Pure Wings 3 140mm PWM high-speed 3-Pack, Gehäuselüfter – BL138
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
Asus TUF Gaming LC III 360 ARGB, Wasserkühlung – 90RC0192-B0EAY0
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
Thermaltake TOUGHFAN EX 120 ARGB Sync White, Gehäuselüfter – CL-F211-PL12SW-A
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
Asus TUF Gaming LC III 360 ARGB LCD, Wasserkühlung – 90RC01A2-B0EAY0
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
Asus TUF Gaming LC III 360 ARGB LCD, Wasserkühlung – 90RC01A1-B0EAY0
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
Gigabyte AORUS EZ CHAIN FAN 120, Gehäuselüfter – GP-ECFAN1203
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
Gigabyte GAMING 360, Wasserkühlung – GP-GIGABYTE GME 360
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
Xilence LiQuRizer LQ360PRO.ARGB 360mm, Wasserkühlung – XC987
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
Thermaltake LA360 ARGB Sync, Wasserkühlung – CL-W459-PL12SW-A
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
Thermaltake ASTRIA 200 ARGB Lighting CPU Cooler, CPU-Kühler – CL-P119-AL12SW-A
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
Enermax Liqmax III ARGB 360 mm White, Wasserkühlung – ELC-LMT360-W-ARGB
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }
Cooler Master MasterLiquid 240 Core II ARGB, Wasserkühlung – MLW-D24M-A18PA-R1
jQuery(document).ready(function ($) { $('#save-product-button, #save-product-heart').on('click', function () { var ean = $(this).data('ean') || $('#acf-ean').val(); var button = $(this); if (!ean) { alert('EAN konnte nicht gefunden werden!'); return; } button.prop('disabled', true).html(' Wird gespeichert...'); $.ajax({ url: "https://technikbar.com/wp-admin/admin-ajax.php", type: 'POST', data: { action: 'save_ean_to_session', ean: ean }, success: function (response) { if (response.success) { button.replaceWith( ' Produkt gemerkt - Zu meinen Produkten' ); } else { button.prop('disabled', false).html(' Merken'); alert(response.data.message); } }, error: function () { button.prop('disabled', false).html(' Merken'); alert('Fehler beim Speichern des Produkts.'); } }); }); }); /* Stil für den Button */ #save-product-button { font-size: 16px; background-color: #4CAF50; /* Grün */ color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #save-product-button:hover { background-color: #45a049; /* Dunkleres Grün */ } /* Stil für das Herz-Icon */ #save-product-heart { font-size: 24px; color: #ff0000; /* Rot */ cursor: pointer; } #save-product-heart:hover { color: green; /* Grün bei Hover */ } /* Stil für den Link */ a.saved-link { display: inline-block; padding: 10px 15px; background-color: #4CAF50; color: #fff; text-decoration: none; border-radius: 5px; } a.saved-link:hover { background-color: #45a049; } /* Spinner */ .fa-spinner { color: #999; }