diff --git a/templates/frontOffice/default/assets/js/script.js b/templates/frontOffice/default/assets/js/script.js index 2ac548ccf..cad523b98 100644 --- a/templates/frontOffice/default/assets/js/script.js +++ b/templates/frontOffice/default/assets/js/script.js @@ -102,6 +102,7 @@ var pseManager = (function($){ // not exists, revert setPseForm(); } else { + $pse.id.val(pseId); $pse.pseId = pseId; } } @@ -359,12 +360,13 @@ var pseManager = (function($){ $(document).on('submit.form-product', '.form-product', function () { if (doAjax) { var url_action = $(this).attr("action"), - product_id = $("input[name$='product_id']",this).val(); + product_id = $("input[name$='product_id']",this).val(), + pse_id = $("input#pse-id",this).val(); $.ajax({type: "POST", data: $(this).serialize(), url: url_action, success: function(data){ $(".cart-container").html($(data).html()); - $.ajax({url:"ajax/addCartMessage", data:{ product_id: product_id }, + $.ajax({url:"ajax/addCartMessage", data:{ product_id: product_id, pse_id: pse_id }, success: function (data) { // Hide all currently active bootbox dialogs bootbox.hideAll(); diff --git a/templates/frontOffice/default/includes/addedToCart.html b/templates/frontOffice/default/includes/addedToCart.html index 1ecbf3317..464f0593c 100644 --- a/templates/frontOffice/default/includes/addedToCart.html +++ b/templates/frontOffice/default/includes/addedToCart.html @@ -1,34 +1,38 @@ {default_translation_domain domain='fo.default'} {loop type="product" name="add_product_to_cart" id={product attr="id"}}
|
- {loop name="product_thumbnail" type="image" product=$ID width="218" height="146" resize_mode="borders" limit="1"}
- |
-
- {$TITLE}- {loop type="attribute_combination" name="product_options" product_sale_elements="$PRODUCT_SALE_ELEMENTS_ID"} -{$ATTRIBUTE_TITLE} -{$ATTRIBUTE_AVAILABILITY_TITLE} - {/loop} - |
-
+
|
+ ||||||