Brand: Tata
, SIN: 2SP
Drilling Pump
Available
Price: CAD $1,000.00
TEST
- Pump Type: Centrifugal Pump
- Flow Rate: 122
- Temperature: 220
- Viscosity: 10000
- Validity: August 2026
function toggleFavorite(productId) {
fetch('https://www.emaarenergy.ca/favorites/toggle', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').content
},
body: JSON.stringify({ product_id: productId })
})
.then(res => res.json())
.then(data => {
const text = document.getElementById('fav-text-' + productId);
if (data.status === 'added') {
text.innerText = 'Remove from Favorite';
} else {
text.innerText = 'Add to Favorite';
}
const badge = document.querySelector('.fa-regular.fa-heart')?.closest('a')?.querySelector('.notify-dot');
if (badge && data.count !== undefined) {
badge.innerText = data.count;
}
});
}