From 8f6cb9d058702b4b83749f971d910e385a975212 Mon Sep 17 00:00:00 2001 From: Rok Sprogar Date: Sat, 12 Oct 2019 19:04:46 +0200 Subject: [PATCH] fixed the jQuery data() caching issue --- assets/js/frontend/add-to-cart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/frontend/add-to-cart.js b/assets/js/frontend/add-to-cart.js index 4065e73a79d..cbf6d11a02d 100644 --- a/assets/js/frontend/add-to-cart.js +++ b/assets/js/frontend/add-to-cart.js @@ -71,7 +71,7 @@ jQuery( function( $ ) { var data = {}; - $.each( $thisbutton.data(), function( key, value ) { + $.each( $thisbutton[0].dataset, function( key, value ) { data[ key ] = value; });