On product page for express checkouts, the quote-id is being created every time the page is refreshed on the browser and as a result a multiple entries exist in the quote table for the same product. This happens for both logged in or guest user where quote id is maintained for the session but not through refresh. This PR includes storing the quote-id to JS local storage variable and accessing it whenever getRequest method is called, to check whether there is an existing quote-id, if not then let getRequest create a new one.
Tested scenarios
Quote-id is retained on page refresh
On visiting a different product page than the current one, the previous quote-id is removed
Summary
On product page for express checkouts, the quote-id is being created every time the page is refreshed on the browser and as a result a multiple entries exist in the
quote
table for the same product. This happens for both logged in or guest user where quote id is maintained for the session but not through refresh. This PR includes storing the quote-id to JS local storage variable and accessing it whenevergetRequest
method is called, to check whether there is an existing quote-id, if not then letgetRequest
create a new one.Tested scenarios
Fixed issue: