Skip to content
Permalink
Browse files

Merge pull request #2673 from roadster31/quantity-passed-to-added-to-…

…cart-popup

Added quantity parameter to "Added to cart" popup url
  • Loading branch information...
roadster31 committed May 21, 2019
2 parents de726e0 + be4c39b commit 3414719227abb177ec301186885e122833cd8131

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){
$(".cart-container").html($(data).html());
// 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
bootbox.hideAll();

0 comments on commit 3414719

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