Magento API fix - Get Product by SKU

I have just finished working on a nice little project for Magento API for our client CNG Florist Sundries.

The Aim of the project was to make Magento API use SKU’s when pulling out the product information. By default Magento API accept a variable productId which can either be a product id or sku. The problem, especially with this task, was the fact that the client is using numeric values for product SKU values.

Now when he used third party system to update his catalog by passing SKU values, Magento was assuming the values are productId and consequently updating the wrong products. Our fix will simply force Magento to look for SKU’s first and return the correct product ID for the required product.

The client site is

Tags: phpmagentoecommerceapi