php-cuong / magento2-qty

How to create the buttons increase and decrease quantity on the product detail page in Magento 2, How to add the buttons increase and decrease quantity in Magento 2 mini cart
22 stars 10 forks source link

No longer works after Magento 2.3.1 upgrade #2

Open mmeyer-unidev opened 5 years ago

mmeyer-unidev commented 5 years ago

Uncaught ReferenceError: Unable to process binding "if: function(){return getCartParam('summary_count') }" Message: Unable to process binding "if: function(){return getCartParam('possible_onepage_checkout') }" Message: Unable to process binding "click: function(){return closeMinicart() }" Message: closeMinicart is not defined at click (eval at createBindingsStringEvaluator (knockout.js:2992), :4:87) at newValueAccessor (knockout.js:4231) at init (knockout.js:4241) at init (knockout.js:4234) at knockout.js:3368 at Object.ignore (knockout.js:1480) at knockout.js:3367 at Object.arrayForEach (knockout.js:159) at applyBindingsToNodeInternal (knockout.js:3353) at applyBindingsToNodeAndDescendantsInternal (knockout.js:3233) at applyBindingsToDescendantsInternal (knockout.js:3215) at applyBindingsToNodeAndDescendantsInternal (knockout.js:3242) at applyBindingsToDescendantsInternal (knockout.js:3215) at applyBindingsToNodeAndDescendantsInternal (knockout.js:3242) at applyBindingsToDescendantsInternal (knockout.js:3215) at Object.ko.applyBindingsToDescendants (knockout.js:3431) click @ VM18802:4 newValueAccessor @ knockout.js:4231 init @ knockout.js:4241 init @ knockout.js:4234 (anonymous) @ knockout.js:3368 ignore @ knockout.js:1480 (anonymous) @ knockout.js:3367 arrayForEach @ knockout.js:159 applyBindingsToNodeInternal @ knockout.js:3353 applyBindingsToNodeAndDescendantsInternal @ knockout.js:3233 applyBindingsToDescendantsInternal @ knockout.js:3215 applyBindingsToNodeAndDescendantsInternal @ knockout.js:3242 applyBindingsToDescendantsInternal @ knockout.js:3215 applyBindingsToNodeAndDescendantsInternal @ knockout.js:3242 applyBindingsToDescendantsInternal @ knockout.js:3215 ko.applyBindingsToDescendants @ knockout.js:3431 ko.computed.disposeWhenNodeIsRemoved @ knockout.js:4407 evaluateImmediate_CallReadThenEndDependencyDetection @ knockout.js:2183 evaluateImmediate_CallReadWithDependencyDetection @ knockout.js:2150 evaluateImmediate @ knockout.js:2111 ko.computed.ko.dependentObservable @ knockout.js:1964 init @ knockout.js:4390 (anonymous) @ knockout.js:3368 ignore @ knockout.js:1480 (anonymous) @ knockout.js:3367 arrayForEach @ knockout.js:159 applyBindingsToNodeInternal @ knockout.js:3353 applyBindingsToNodeAndDescendantsInternal @ knockout.js:3233 applyBindingsToDescendantsInternal @ knockout.js:3215 ko.applyBindingsToDescendants @ knockout.js:3431 ko.computed.disposeWhenNodeIsRemoved @ knockout.js:4407 evaluateImmediate_CallReadThenEndDependencyDetection @ knockout.js:2183 evaluateImmediate_CallReadWithDependencyDetection @ knockout.js:2150 evaluateImmediate @ knockout.js:2111 ko.computed.ko.dependentObservable @ knockout.js:1964 init @ knockout.js:4390 (anonymous) @ knockout.js:3368 ignore @ knockout.js:1480 (anonymous) @ knockout.js:3367 arrayForEach @ knockout.js:159 applyBindingsToNodeInternal @ knockout.js:3353 applyBindingsToNodeAndDescendantsInternal @ knockout.js:3233 applyBindingsToDescendantsInternal @ knockout.js:3215 applyBindingsToNodeAndDescendantsInternal @ knockout.js:3242 ko.applyBindings @ knockout.js:3444 _super @ wrapper.js:73 applyBindings @ bound-nodes.js:120 (anonymous) @ wrapper.js:78 (anonymous) @ knockout.js:5303 invokeForEachNodeInContinuousRange @ knockout.js:5254 activateBindingsOnContinuousNodeArray @ knockout.js:5301 executeTemplate @ knockout.js:5349 ko.dependentObservable.disposeWhen @ knockout.js:5391 evaluateImmediate_CallReadThenEndDependencyDetection @ knockout.js:2183 evaluateImmediate_CallReadWithDependencyDetection @ knockout.js:2150 evaluateImmediate @ knockout.js:2111 evaluatePossiblyAsync @ knockout.js:2076 notifySubscribers @ knockout.js:1330 valueHasMutated @ knockout.js:1548 observable @ knockout.js:1514 (anonymous) @ engine.js:197 (anonymous) @ jquery.js:3411 fire @ jquery.js:3232 fireWith @ jquery.js:3362 (anonymous) @ jquery.js:3418 fire @ jquery.js:3232 fireWith @ jquery.js:3362 deferred.(anonymous function) @ jquery.js:3461 (anonymous) @ loader.js:95 execCb @ require.js:1650 context.execCb @ resolver.js:145 check @ require.js:866 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 enable @ require.js:1143 init @ require.js:774 (anonymous) @ require.js:991 (anonymous) @ require.js:132 (anonymous) @ text.js:155 xhr.onreadystatechange @ text.js:122 XMLHttpRequest.send (async) (anonymous) @ VM18232:1 getContent @ text.js:137 loadContent @ text.js:153 (anonymous) @ require.js:1072 (anonymous) @ require.js:132 on @ require.js:505 callPlugin @ require.js:934 fetch @ require.js:810 check @ require.js:840 enable @ require.js:1143 enable @ require.js:1511 (anonymous) @ require.js:1128 (anonymous) @ require.js:132 each @ require.js:57 enable @ require.js:1090 init @ require.js:774 (anonymous) @ require.js:1416 setTimeout (async) req.nextTick @ require.js:1755 localRequire @ require.js:1405 window.require @ mixins.js:245 loadFromFile @ loader.js:93 loadTemplate @ loader.js:78 render @ renderer.js:35 RemoteTemplateEngine.makeTemplateSource @ engine.js:192 RemoteTemplateEngine.renderTemplate @ engine.js:246 executeTemplate @ knockout.js:5327 ko.dependentObservable.disposeWhen @ knockout.js:5391 evaluateImmediate_CallReadThenEndDependencyDetection @ knockout.js:2183 evaluateImmediate_CallReadWithDependencyDetection @ knockout.js:2150 evaluateImmediate @ knockout.js:2111 ko.computed.ko.dependentObservable @ knockout.js:1964 ko.renderTemplate @ knockout.js:5383 update @ knockout.js:5518 RemoteTemplateEngine.ko.bindingHandlers.template.update @ engine.js:83 ko.dependentObservable.disposeWhenNodeIsRemoved @ knockout.js:3383 evaluateImmediate_CallReadThenEndDependencyDetection @ knockout.js:2183 evaluateImmediate_CallReadWithDependencyDetection @ knockout.js:2150 evaluateImmediate @ knockout.js:2111 ko.computed.ko.dependentObservable @ knockout.js:1964 (anonymous) @ knockout.js:3381 arrayForEach @ knockout.js:159 applyBindingsToNodeInternal @ knockout.js:3353 applyBindingsToNodeAndDescendantsInternal @ knockout.js:3233 applyBindingsToDescendantsInternal @ knockout.js:3215 ko.applyBindingsToDescendants @ knockout.js:3431 applyComponents @ scope.js:34 _resolveRequest @ registry.js:418 updateRequests @ registry.js:400 later @ underscore.js:821 setTimeout (async) (anonymous) @ underscore.js:832 set @ registry.js:242 initComponent @ layout.js:144 fire @ jquery.js:3232 fireWith @ jquery.js:3362 deferred.(anonymous function) @ jquery.js:3461 fire @ jquery.js:3232 fireWith @ jquery.js:3362 deferred.(anonymous function) @ jquery.js:3461 (anonymous) @ layout.js:120 execCb @ require.js:1650 context.execCb @ resolver.js:145 check @ require.js:866 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 enable @ require.js:1143 init @ require.js:774 callGetModule @ require.js:1170 completeLoad @ require.js:1544 onScriptLoad @ require.js:1671 load (async) req.load @ require.js:1882 load @ require.js:1639 load @ require.js:820 fetch @ require.js:810 check @ require.js:840 enable @ require.js:1143 enable @ require.js:1511 (anonymous) @ require.js:1128 (anonymous) @ require.js:132 each @ require.js:57 enable @ require.js:1090 init @ require.js:774 callGetModule @ require.js:1170 completeLoad @ require.js:1544 onScriptLoad @ require.js:1671 load (async) req.load @ require.js:1882 load @ require.js:1639 load @ require.js:820 fetch @ require.js:810 check @ require.js:840 enable @ require.js:1143 enable @ require.js:1511 (anonymous) @ require.js:1128 (anonymous) @ require.js:132 each @ require.js:57 enable @ require.js:1090 init @ require.js:774 (anonymous) @ require.js:1416 setTimeout (async) req.nextTick @ require.js:1755 localRequire @ require.js:1405 window.require @ mixins.js:245 loadSource @ layout.js:116 (anonymous) @ jquery.js:3411 fire @ jquery.js:3232 add @ jquery.js:3291 (anonymous) @ jquery.js:3410 each @ jquery.js:370 (anonymous) @ jquery.js:3406 jQuery.Deferred @ jquery-migrate.js:744 then @ jquery.js:3405 initComponent @ layout.js:338 process @ layout.js:207 iterator @ layout.js:182 .each..forEach @ underscore.js:150 run @ layout.js:167 (anonymous) @ app.js:14 (anonymous) @ main.js:31 execCb @ require.js:1650 check @ require.js:866 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 enable @ require.js:1143 init @ require.js:774 (anonymous) @ require.js:991 (anonymous) @ require.js:132 (anonymous) @ mixins.js:106 execCb @ require.js:1650 check @ require.js:866 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 enable @ require.js:1143 init @ require.js:774 callGetModule @ require.js:1170 completeLoad @ require.js:1544 onScriptLoad @ require.js:1671 load (async) req.load @ require.js:1882 load @ require.js:1639 load @ require.js:820 fetch @ require.js:810 check @ require.js:840 enable @ require.js:1143 enable @ require.js:1511 (anonymous) @ require.js:1128 (anonymous) @ require.js:132 each @ require.js:57 enable @ require.js:1090 init @ require.js:774 (anonymous) @ require.js:1416 setTimeout (async) req.nextTick @ require.js:1755 localRequire @ require.js:1405 load @ mixins.js:105 (anonymous) @ require.js:1072 (anonymous) @ require.js:132 on @ require.js:505 callPlugin @ require.js:934 fetch @ require.js:810 check @ require.js:840 enable @ require.js:1143 enable @ require.js:1511 (anonymous) @ require.js:1128 (anonymous) @ require.js:132 each @ require.js:57 enable @ require.js:1090 init @ require.js:774 callGetModule @ require.js:1170 completeLoad @ require.js:1544 onScriptLoad @ require.js:1671 load (async) req.load @ require.js:1882 load @ require.js:1639 load @ require.js:820 fetch @ require.js:810 check @ require.js:840 enable @ require.js:1143 enable @ require.js:1511 (anonymous) @ require.js:1128 (anonymous) @ require.js:132 each @ require.js:57 enable @ require.js:1090 init @ require.js:774 (anonymous) @ require.js:1416 setTimeout (async) req.nextTick @ require.js:1755 localRequire @ require.js:1405 window.require @ mixins.js:245 init @ main.js:24 (anonymous) @ main.js:96 .each._.forEach @ underscore.js:150 (anonymous) @ main.js:79 apply @ main.js:76 fire @ jquery.js:3232 add @ jquery.js:3291 jQuery.fn.ready @ jquery.js:3542 jQuery.fn.init @ jquery.js:2967 jQuery.fn.init @ jquery-migrate.js:241 jQuery @ jquery.js:75 (anonymous) @ bootstrap.js:20 execCb @ require.js:1650 check @ require.js:866 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 enable @ require.js:1143 init @ require.js:774 (anonymous) @ require.js:991 (anonymous) @ require.js:132 (anonymous) @ mixins.js:106 execCb @ require.js:1650 check @ require.js:866 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 enable @ require.js:1143 init @ require.js:774 (anonymous) @ require.js:991 (anonymous) @ require.js:132 (anonymous) @ mixins.js:106 execCb @ require.js:1650 check @ require.js:866 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 enable @ require.js:1143 init @ require.js:774 (anonymous) @ require.js:991 (anonymous) @ require.js:132 (anonymous) @ mixins.js:106 execCb @ require.js:1650 check @ require.js:866 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 (anonymous) @ require.js:1113 (anonymous) @ require.js:132 (anonymous) @ require.js:1156 each @ require.js:57 emit @ require.js:1155 check @ require.js:917 enable @ require.js:1143 init @ require.js:774 (anonymous) @ require.js:991 (anonymous) @ require.js:132 runCallbacks @ domReady.js:24 callReady @ domReady.js:35 pageLoaded @ domReady.js:50 load (async) (anonymous) @ domReady.js:59 execCb @ require.js:1650 check @ require.js:866 enable @ require.js:1143 init @ require.js:774 callGetModule @ require.js:1170 completeLoad @ require.js:1544 onScriptLoad @ require.js:1671 load (async) req.load @ require.js:1882 load @ require.js:1639 load @ require.js:820 fetch @ require.js:810 check @ require.js:840 enable @ require.js:1143 enable @ require.js:1511 callPlugin @ require.js:1075 fetch @ require.js:810 check @ require.js:840 enable @ require.js:1143 enable @ require.js:1511 (anonymous) @ require.js:1128 (anonymous) @ require.js:132 each @ require.js:57 enable @ require.js:1090 init @ require.js:774 callGetModule @ require.js:1170 completeLoad @ require.js:1544 onScriptLoad @ require.js:1671 load (async) req.load @ require.js:1882 load @ require.js:1639 load @ require.js:820 fetch @ require.js:810 check @ require.js:840 enable @ require.js:1143 enable @ require.js:1511 (anonymous) @ require.js:1128 (anonymous) @ require.js:132 each @ require.js:57 enable @ require.js:1090 init @ require.js:774 (anonymous) @ require.js:1416 setTimeout (async) req.nextTick @ require.js:1755 localRequire @ require.js:1405 configure @ require.js:1343 requirejs @ require.js:1734 req.config @ require.js:1745 (anonymous) @ requirejs-config.js:924 (anonymous) @ requirejs-config.js:925 (anonymous) @ requirejs-config.js:955 Show 236 more frames

mmeyer-unidev commented 5 years ago

the minicart functionality is broken, removing the JS files for the sidebar/minicart allows the main product page functionality to work.

drinkingsouls commented 4 years ago

After a log of debugging my Magento 2.3.4, I also found this plugin to be causing issues witht the cart, the same as mentioned above. I've had to disable it. Is there any fix or update?

oviliz commented 4 years ago

Sadly this code is dead in the water.