Wrong Variant Added to Cart No Matter What Variant You Added

Highlighted
Excursionist
17 0 2

I have inspected the console on a view product pages. Desktop is working just fine, but mobile view is having issues. If you add one variant to your cart, it adds the wrong variant. No matter which variant you add, it only adds the first variant. Secondly, when you initally visit a product page, it is set to default to select first variant, but when you select another variant, you cannot select the first variant again. See example link below: https://experiencecbd.com/products/assorted-gummy-candy-cbd?variant=23153358241892 I'm getting these error messages when inspecting console. Please help! These vendor.min.js and the jquery.min.js have been revised recently, so I am not sure if they may be a typo or what. Thanks in advance for just taking the time to look over,

Uncaught TypeError: Cannot read property 'split' of undefined

at setDefaultSlider (assorted-gummy-candy-cbd?variant=23153358241892:3013)
at productPageVariant (assorted-gummy-candy-cbd?variant=23153358241892:2968)
at SwatchesConstructor.callExternalVariantHandler (vendor.min.js?v=10173948237380524627:36)
at SwatchesConstructor.createSwatches (vendor.min.js?v=10173948237380524627:36)
at SwatchesConstructor.initSwatches (vendor.min.js?v=10173948237380524627:36)
at new SwatchesConstructor (vendor.min.js?v=10173948237380524627:36)
at productPageJsonLoaded (assorted-gummy-candy-cbd?variant=23153358241892:2925)
at Object.success (vendor.min.js?v=10173948237380524627:30)
at j (jquery.min.js?v=14665384404713200735:2)
at Object.fireWith [as resolveWith] (jquery.min.js?v=14665384404713200735:2)
setDefaultSlider @ assorted-gummy-candy-cbd?variant=23153358241892:3013
productPageVariant @ assorted-gummy-candy-cbd?variant=23153358241892:2968
SwatchesConstructor.callExternalVariantHandler @ vendor.min.js?v=10173948237380524627:36
SwatchesConstructor.createSwatches @ vendor.min.js?v=10173948237380524627:36
SwatchesConstructor.initSwatches @ vendor.min.js?v=10173948237380524627:36
SwatchesConstructor @ vendor.min.js?v=10173948237380524627:36
productPageJsonLoaded @ assorted-gummy-candy-cbd?variant=23153358241892:2925
(anonymous) @ vendor.min.js?v=10173948237380524627:30
j @ jquery.min.js?v=14665384404713200735:2
fireWith @ jquery.min.js?v=14665384404713200735:2
x @ jquery.min.js?v=14665384404713200735:4
(anonymous) @ jquery.min.js?v=14665384404713200735:4
load (async) send @ jquery.min.js?v=14665384404713200735:4
ajax @ jquery.min.js?v=14665384404713200735:4
n.<computed> @ jquery.min.js?v=14665384404713200735:4
getJSON @ jquery.min.js?v=14665384404713200735:4
Shopify.getProduct @ vendor.min.js?v=10173948237380524627:30
(anonymous) @ assorted-gummy-candy-cbd?variant=23153358241892:3073


Uncaught TypeError: Cannot read property 'split' of undefined
at setDefaultSlider (assorted-gummy-candy-cbd?variant=23153358241892:3013)
at productPageVariant (assorted-gummy-candy-cbd?variant=23153358241892:2968)
at SwatchesConstructor.callExternalVariantHandler (vendor.min.js?v=10173948237380524627:36)
at SwatchesConstructor.createSwatches (vendor.min.js?v=10173948237380524627:36)
at SwatchesConstructor.endOfTheClickHandler (vendor.min.js?v=10173948237380524627:36)
at o (vendor.min.js?v=10173948237380524627:36)
at HTMLAnchorElement.<anonymous> (vendor.min.js?v=10173948237380524627:36)
at HTMLAnchorElement.dispatch (jquery.min.js?v=14665384404713200735:3)
at HTMLAnchorElement.r.handle (jquery.min.js?v=14665384404713200735:3)
setDefaultSlider @ assorted-gummy-candy-cbd?variant=23153358241892:3013
productPageVariant @ assorted-gummy-candy-cbd?variant=23153358241892:2968
SwatchesConstructor.callExternalVariantHandler @ vendor.min.js?v=10173948237380524627:36
SwatchesConstructor.createSwatches @ vendor.min.js?v=10173948237380524627:36
SwatchesConstructor.endOfTheClickHandler @ vendor.min.js?v=10173948237380524627:36
o @ vendor.min.js?v=10173948237380524627:36
(anonymous) @ vendor.min.js?v=10173948237380524627:36
dispatch @ jquery.min.js?v=14665384404713200735:3
r.handle @ jquery.min.js?v=14665384404713200735:3

 

0 Likes
Highlighted
Tourist
9 0 1

Hi, did you find a solution for this as I have the same problem? Thanks, Katy

0 Likes