문제

I am trying to get the product Id but below are given the conditions through which I want to get Id of the product. I have SKU of the product. but using that sku I want to get Id of that product. It is necessary condition to get product Id using SKU no other way I want....

도움이 되었습니까?

해결책

use the product factory as explained here, then just use the $product->getIdBySku($sku) method.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top