Added SKU code to the product object when generating from search result source.
Changed hidden input field in add to basket form from product code to SKU code as SKU code is needed when adding to the basket.
Changed hidden input field in add to basket form from product code to SKU code as SKU code is needed when adding to the basket.
Used test controller for Elasticsearch term query testing.
Added function to check that SKU is valid when it is associated to a product.
Changed validation to validate SKU code instead of product code to tie in with SKU code now being used when adding product to basket.
Removed extraneous whitespace.
Added log message for SKU code validation.
Added log message for multiple SKU matches.
Changed validation for asynchronous add to basket so that it validates SKU code as that is what's now being passed.
Added new "product/get_sku/" path to list of pages that don't need authorisation.
Created new controller path to get product details in JSON format by SKU code so that product details can be populated in mini-basket.
Updated "add to basket" functions to use SKU code instead of product code as this is what's needed when buying a product.
Added controller function to get product by SKU for mini-basket to look up product details.
Added product_code attribute to object as code attribute now contains SKU code instead of product code.
Added product_code attribute to object as code attribute now contains SKU code instead of product code.
Changed basket functions to use SKU code instead of product code as that's what's needed when creating order lines from basket items.
Tightened up code as term queries were giving unexpected results.
Changed "code" attribute of basket item object to "product_code" as "code" now contains SKU code, not product code.
Changed string concatenation to double quotes for easier readability.