<?php
$sku = 'Your Product Sku';
$id = Mage::getModel('catalog/product')->getIdBySku($sku);
if ($id){
echo "SKU {$sku} exists";
}
else{
echo "SKU {$sku} does not exist";
}
?>
Revisions
- March 15, 2016 @ 15:32:39 [Current Revision] by admin
- March 15, 2016 @ 15:32:39 by admin
No comments yet.