let freeProdInfoJson = { minimum_amount: 200, // Set minimum Amount product_variant_id: "453927000098236007", }; function showBanner(callback) { if (zs_view === 'cart') { $X.get({ url: '/storefront/api/v1/cart', headers: zsUtils.getCSRFHeader(), handler: function () { let res = JSON.parse(this.responseText); let items = res.payload.items; let variantFound = items.some(function (item) { return item.variant_id === freeProdInfoJson.product_variant_id; }); let freeItemSellPrice = 1; if (variantFound) { freeItemSellPrice = items.find(item => item.variant_id === freeProdInfoJson.product_variant_id).selling_price; } if (res.status_message == 'success') { if (res.payload.bcy_sub_total - freeItemSellPrice > freeProdInfoJson.minimum_amount && !variantFound) { callback(true); } else if (res.payload.bcy_sub_total - freeItemSellPrice < freeProdInfoJson.minimum_amount && variantFound) { let variantElement = document.querySelector('[data-zs-product-variant-id="' + freeProdInfoJson.product_variant_id + '"]'); if (variantElement) { const deleteButton = variantElement.querySelector('.theme-cart-remove-button'); if (deleteButton) { setTimeout(function () { deleteButton.click(); }, 500); } } } else { callback(false); } } } }); } } function freeProductBanner() { showBanner(function (result) { if (result) { addToCart(); } else { if (document.getElementById('free-product-banner')) { document.getElementById('free-product-banner').style.display = 'none'; } } }); let containerElement = document.querySelector('.theme-cart-table-row[data-zs-product-id="' + freeProdInfoJson.product_variant_id + '"]'); if (containerElement) { let inputElementsToDisable = containerElement.querySelectorAll('input[data-zs-quantity], .theme-cart-qty-inc-dec'); inputElementsToDisable.forEach(input => { input.disabled = true; }); } } function addToCart() { $X.post({ url: '/storefront/api/v1/cart', bodyJSON: { "product_variant_id": freeProdInfoJson.product_variant_id, "quantity": 1, "custom_fields": [] }, headers: zsUtils.getCSRFHeader(), handler: function () { var res = JSON.parse(this.responseText); if (res.status_message == 'success') { setTimeout(function () { location.reload(); }, 500); } } }); } document.addEventListener("DOMContentLoaded", freeProductBanner); document.addEventListener("zp-event-add-to-cart-success", freeProductBanner); document.addEventListener("zp-event-update-to-cart-success", freeProductBanner); document.addEventListener("zp-event-delete-from-cart-success", freeProductBanner);
Laptop USB Card For Lenovo Ideapad G580
PineKart.com
The Premium Electronics Store
0
Laptop USB Card For Lenovo Ideapad G580

Laptop USB Card For Lenovo Ideapad G580

Non-returnable

✔️ Perfect Device Fit
✔️ High Build Quality
✔️ Restores USB Ports
✔️ Easy Installation Process

Rs.674.00 Rs.999.00

Choose Quantity

Add to Cart. . .
Product Details
Items have been added to cart.
One or more items could not be added to cart due to certain restrictions.
Close
Added to cart
- There was an error adding to cart. Please try again.
Quantity updated
- An error occurred. Please try again later.
Deleted from cart
- Can't delete this product from the cart at the moment. Please try again later.
0