A nice entry

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.

Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.

Read more

How to fix empty dashboard issue in WordPress?

To fix the bug:

Open file /wp-admin/includes/screen.php
Find the following PHP statement: _help_sidebar; ?>
Replace it with the statement: _help_sidebar; ?>
Save your changes.

Magento – Delete System Attribute

If you want to delete an attribute. But there is no delete option while you edit the attribute. This means that the attribute is system attribute. System attributes cannot be deleted. Only user defined attributes can be deleted.

To delete the attribute, you have to make it user defined. Follow the below instructions :

– Go to phpmyadmin
– Select magento database
– Go to eav_attribute table
– Browse table with attribute_code ‘YOUR_ATTRIBUTE_CODE’ OR browse the table with the attribute_id of your attribute (‘your attribute’ means the attribute which you want to remove as system attribute)
– Edit the table row of your attribute
– Find the field ‘is_user_defined’
– Set it to 1

Now your attribute no longer remains System Attribute
Now you can delete it from Attribute manager

Magento – Delete System Attribute

delete system attribute, magento system attribute

Magento – Show Inventory Levels on Product Pages

One of our client needed to display their actual quantity on hand inventory, rather that the normal ‘Availability-In Stock’. on product detail page. For this you need to look on this file.

app/design/frontend/YOURTEMPLATE/default/template/catalog/product/view/type/default.phtml

If you do not have the above in the directory then you should copy that from the base folder and put in custom template. Approach the below code :

<?php if ($_product->isAvailable()): ?>
<?php $quantity1 = intval(Mage::getModel(‘cataloginventory/stock_item’)->loadByProduct($_product)->getQty()); ?>
<div class=”add-to-box”>
<?php if($quantity1 > 0) { ?>
<p class=”availability in-stock”>
<?php echo $this->__(‘Qty on Hand:’) ?>
<?php echo $quantity1;?>
</span>
</p>
<?php } elseif($quantity1 == 0) { ?>
<p class=”availability in-stock”>
<?php echo $this->__(‘Qty on Hand:’) ?><br/><br/><span>
<?php foreach ($_product->getTypeInstance(true)->getUsedProducts ( null, $_product) as $simple) {
$stock = intval(Mage::getModel(‘cataloginventory/stock_item’)->loadByProduct($simple)->getQty());
echo $simple->getName().” “.$simple->getSize().” have a stock of $stock”;
echo ‘<br/>’;
} ?></span>
</p>
<?php } ?>
</div>
<?php else: ?>
<p class=”availability out-of-stock”><?php echo $this->__(‘Availability:’) ?> <span><?php echo $this->__(‘Out of stock’) ?>