Skip to content

Get product by SKU (method) #18

@alexszilagyi

Description

@alexszilagyi

I've seen that there's a getInfo() method which has the following parameters: productId, $storeView = null, $attributes = null, $identifierType = null

$sku = 'some-sku';
$productId = Mage::getModel('catalog/product')->getIdBySku($sku);
if($productId){
   //sku exists
}

How I'd achieve this using this wrapper?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions