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 it so i liked…
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 it so i liked…
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; ?>
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 thanks to jquery this…
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) Argument 2: Date format:…
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 $editor = &JFactory::getEditor(); ?>…
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 Joomla! installation. If the…
in app/design/frontend/default/<TEMPLATE>/template/checkout/cart/item/default.phtml: <td class="a-center"> <input name="cart" 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" id="qty"> <?php // show dropdown instead of…
<?$_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> <?}?> <?}?>
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().' '; //Is Active echo Mage::app()->getStore()->getIsActive().'…
//to get orders based on date range $period_date_from = $this->getRequest()->getParam('report_from'); $from_date = strtotime($period_date_from); // begin date $period_date_to = $this->getRequest()->getParam('report_to'); $to_date = strtotime($period_date_to); // begin date $myOrder=Mage::getModel('sales/order'); $orders=Mage::getModel('sales/mysql4_order_collection'); $to_date =…