From 0beb9115de2b21ea29dea1ab99a44dde99f75029 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 27 Nov 2020 15:03:45 +0100 Subject: [PATCH] wip #4089 @0.5 --- js/libs/fluidbook/cart/fluidbook.cart.mopec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/libs/fluidbook/cart/fluidbook.cart.mopec.js b/js/libs/fluidbook/cart/fluidbook.cart.mopec.js index 0cb6c6ae..eddbc5a3 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.mopec.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.mopec.js @@ -218,8 +218,8 @@ FluidbookCartMopec.prototype = { $.ajax({ url: this.baseURL + 'fastorder/index/search', cache: false, - data: {product: sku, sort_order: 0}, - method: 'post', + data: {q: sku}, + method: 'get', xhrFields: {withCredentials: true}, dataType: 'json', success: function (data) { @@ -228,10 +228,10 @@ FluidbookCartMopec.prototype = { product_id = null; } else { $.each(data, function (k, e) { - if (e.product_sku !== sku) { + if (e.sku !== sku) { return true; } - product_id = e.product_id; + product_id = e.entity_id; var min = 1; if (e.min !== undefined) { min = e.min; -- 2.39.5