Skip to content
Browse files

Added quantity parameter to addedToCart popup url

  • Loading branch information...
Franck Allimant
Franck Allimant committed May 21, 2019
1 parent de726e0 commit be4c39b3c3d458e035d58d0705178a3a17c4651f

Some generated files are not rendered by default. Learn more.

@@ -469,13 +469,15 @@ var pseManager = (function($){
if (doAjax) {
var url_action = $(this).attr("action"),
product_id = $("input[name$='product_id']",this).val(),
pse_id = $("input.pse-id",this).val();
pse_id = $("input.pse-id",this).val(),
quantity = $('#quantity',this).val()

$.ajax({type: "POST", data: $(this).serialize(), url: url_action,
success: function(data){
// addCartMessageUrl is initialized in layout.tpl
$.ajax({url:addCartMessageUrl, data:{ product_id: product_id, pse_id: pse_id },
$.ajax({url:addCartMessageUrl, data:{ product_id: product_id, pse_id: pse_id, quantity: quantity },
success: function (data) {
// Hide all currently active bootbox dialogs

0 comments on commit be4c39b

Please sign in to comment.
You can’t perform that action at this time.