I am trying to use custom code to show shipping estimates based on the product SKU or Manufacturer.
the SKU is loading fine in the cart but I cant get the product to load a custom attribute ‘manufacturer’
Here is the code on the cart
$stock = Mage::getModel( 'cataloginventory/stock_item' )->loadByProduct( $_product );
$sku_code = substr( $_product->getSku(), 0, 1 );
<div> <span class="uk-h6">Estimated Ship by: <span class="uk-h5" style="color:#468847;"> <!--estimated shipping date--> <?php if ($stock->getQty()==0): ?> <?php echo date('l jS of F Y',strtotime("+21 day")); ?> <?php elseif ($_product->getAttributeText('manufacturer') == "Dora"): ?> <?php echo date('l jS of F Y',strtotime("+14 day")); ?> <?php elseif ($sku_code == 'M'): ?> <?php echo date('l jS of F Y',strtotime("+25 day")); ?>
As you can see I have two different timesets depending on the manufacturer and sku.
your help is much appreciated.