Monthly Archive: July 2012

copy a file into another folder asp .net 0

copy a file into another folder asp .net

copy a file into another folder asp .net string targetFolder = Server.MapPath(“~/PDF”); System.IO.FileInfo fi = new System.IO.FileInfo(Server.MapPath(“~/Bookmark.pdf”)); fi.CopyTo(System.IO.Path.Combine(targetFolder, fi.Name), true);

get custom option name filter.phtml 1

get custom option name filter.phtml

get custom option name filter.phtml if you want to add custom option in your layered navigation in magneto then here is the solution for that. <?php echo $_item->getName() ?>

Prevent HttpContext Current to be null WCF service NET 0

Prevent HttpContext Current to be null WCF service NET

Prevent HttpContext Current to be null WCF service NET add following code in web.config file….. <configuration> <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled=”true” /> </system.serviceModel> </configuration>

magento – call a static block in a page 0

magento – call a static block in a page

magento – call a static block in a page for display a static block in a page <?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘blockname’)->toHtml() ?>

Magento: How to get product rating and review 23

Magento: How to get product rating and review

Magento: How to get product rating and review code for getting ratings and reviews for any particular product. /* Getting reviews collection object */ $productId = $product->getId(); $reviews = Mage::getModel(‘review/review’) ->getResourceCollection() ->addStoreFilter(Mage::app()->getStore()->getId()) ->addEntityFilter(‘product’, $productId)...