My Blog

August 17, 2012

Adding Custom shipping method in Magento

On my going Project a client requirement was adding custom shipping method so I was trying to solve the problem at last got a solution and […]
August 17, 2012

How to display Random Product in magento

prepareProductCollection($collection); $collection->getSelect()->order(‘rand()’); $collection->addStoreFilter(); $this->setProductCollection($collection); return parent::_beforeToHtml(); //below code to written in template file if (($_products = $this->getProductCollection())): echo $_product->getSku(); endif; ?>
August 6, 2012

How to use jQuery with Magento

If you want to use jquery in magento plug-in development you can not use it directly , because magento is based on prototype java-script library but […]
August 1, 2012

Display date in specified format in Magento

Display date in specified format in Magento Mage::helper(‘core’)->formatDate($date, $format, $showTime=false) Argument 1: Date that you want change the format (This may be database driven or manual) […]
June 14, 2012

WYSIWYG Editor for Mass Mail Tool And in Component in Joomla

Code: I removed the original input box that is Remove Code:   <textarea rows=”20″ cols=”150″ name=”mm_message” id=”mm_message”></textarea> and replaced it with the WYSIWYG editor code Code: <?php […]
June 5, 2012

Error while install Joomla

If you not have access to the php.ini file you can try to edit your htaccess file. (You find this file in the root of your […]
June 5, 2012

How to have a dropdown for the quantity in magento

in app/design/frontend/default/<TEMPLATE>/template/checkout/cart/item/default.phtml: <td class=”a-center”> <input name=”cart[<?php echo $_item->getId() ?>][qty]” value=”<?php echo $this->getQty() ?>” size=”4″ title=”<?php echo $this->__(‘Qty’) ?>” class=”input-text qty” maxlength=”12″ /> <select class=”input-text qty” name=”cart[<?php […]
May 25, 2012

Magento -get all images on product view

<?$_images = Mage::getModel(‘catalog/product’)->load($_product->getId())->getMediaGalleryImages();?> <?if($_images){?> <?$i=0; foreach($_images as $_image){ $i++;?>  <a href="#"><img src="<?=$this->helper('catalog/image')->init($_product, 'thumbnail', $_image->getFile())->resize(200, 130); ?>" width="200" height="130" alt="<?=$this->htmlEscape($_image->getLabel());?>" title="<?=$this->htmlEscape($_image->getLabel());?>" /></a>  <?}?> <?}?>
May 22, 2012

Get store id and website id in magento

echo Mage::app()->getStore().’ ‘; /*Store Id*/ echo Mage::app()->getStore()->getStoreId().’ ‘; echo Mage::app()->getStore()->getName().’ ‘; /*Store code*/ echo Mage::app()->getStore()->getCode().’ ‘; /*Website Id*/ echo Mage::app()->getStore()->getWebsiteId().’ ‘; /*Store Name*/ echo Mage::app()->getStore()->getName().’ ‘; […]
0
Contact us

We are glad that you preferred to contact us. Please fill our short form and one of our friendly team members will contact you back.


    X
    Request a Quote