how to make stock availability in stock as default magento
In app/design/adminhtml/default/default/template/catalog/product/tab/inventory.phtml
I have changed this:
<?php foreach ($this->getStockOption() as $option): ?>
<?php $_selected = ($option['value'] == $this->getFieldValue('is_in_stock')) ? 'selected="selected"' : '' ?>
<option value="<?php echo $option['value'] ?>" <?php echo $_selected ?>><?php echo $option['label'] ?></option>
<?php endforeach; ?>
To this:
<?php if( ($this->getFieldValue('qty')*1) > 0): ?>
<option selected="selected" value="1">In Stock</option>
<?php else: ?>
<option selected="selected" value="0">Out of Stock</option>
<?php endif; ?>
Great Read! I am impressed on how you make your article easy to understand. I'll come back for more :D
ReplyDeleteJaps Buidon is a Social Media Specialist and SEO from a renowned Magento Development Company in Florida. He loves hiking as well as electronics.
Thanks Andie :)
Deletesee you soon..
Thank you also :)
DeleteThis comment has been removed by the author.
Delete