Magento 1.5, numeric SKUs and productIdentifierType

后端 未结 2 1231
忘了有多久
忘了有多久 2021-01-15 02:27

In Magento 1.5, accessing the catalogProductInfo API call from C# like this works with non-numeric SKUs:

catalogProductRequestAttributes fetchattrib = new ca         


        
2条回答
  •  花落未央
    2021-01-15 03:20

    There is a workaround for pure numeric or mixed SKU, that works quiet well for me.

    Just add a whitespace at the end of your SKU. Magento will interpret the value as a SKU, because whitespace is non numeric. Internaly Magento trims the whitespace later

    This works perfectly from Magento 1.4.x - 1.9. (Edit: Thanks at Brett for testing with 1.9)

    Example:

        catalogProductReturnEntity ret = m_magentoClient.catalogProductInfo(sessionId, sku+" ", storeView, fetchattrib, productIdentifierType); 
    

提交回复
热议问题