// Get the original total price from the page
// Check if gift is already in cart (from session)
originalTotal += 15; // Add gift price
$('#make_gift').prop('checked', true); // Ensure checkbox is checked
// Handle checkbox change
// Remove previous gift price if needed
total = total - (isGift ? 0 : 15); // subtract only if unchecking
total += 15; // Add gift price
// Update session via AJAX
// console.log("success");
// console.log("response " + response);
// $("#shoppingBag").load(document.URL + ' #shoppingBag');
// $("#shoppingBagPrice").load(document.URL + ' #shoppingBagPrice');
// $("#shoppingBagItem").load(document.URL + ' #shoppingBagItem');
// swal('Deleted!', 'Product Deleted Successfully', 'success');