caleres-virtual-cart
Advanced tools
Comparing version 0.2.6 to 0.3.0
@@ -0,0 +0,0 @@ (function($){ |
10
index.js
@@ -64,4 +64,12 @@ /* DEFINE GLOBAL VIRTUALCARTMODAL OBJECT --- */ | ||
var variantId = $sizeEl.val(); | ||
var isStorePickup = false; | ||
// Try and select the bopis radio button selected, if it doesn't exist then it is a non-bopis site and will always be false. | ||
var $bopisRadioEl = $('#delivery-option-available-in-store'); | ||
if(typeof($bopisRadioEl) !== 'undefined' && $bopisRadioEl.prop('checked')) { | ||
isStorePickup = true; | ||
} | ||
if (!/.*-.*-.*/.test(variantId) && s.products.split(';').length > 1) variantId = s.products.split(';')[1] + '-' + variantId; | ||
$.post('/Checkout/Cart/AddItem', { VariantId: variantId }) | ||
$.post('/Checkout/Cart/AddItem', { VariantId: variantId, IsStorePickup: isStorePickup }) | ||
.done(function (data) { | ||
@@ -68,0 +76,0 @@ /* UPDATE MODALS WITH NEW CONTENT --- */ |
{ | ||
"name": "caleres-virtual-cart", | ||
"version": "0.2.6", | ||
"version": "0.3.0", | ||
"description": "The functional parts for caleres-virtual-cart", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ Caleres Virtual Cart |
@@ -0,0 +0,0 @@ module.exports = [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
36160
462
1