unzip folder files using php code
unzip folder files using php code some time you want to extract files from a zip on a website but you didn’t have sufficient rights or cpanel to extract that , you have on;y...
unzip folder files using php code some time you want to extract files from a zip on a website but you didn’t have sufficient rights or cpanel to extract that , you have on;y...
set permission for magento – magento-cleaning If you are facing issue of permissions or internal server error then try to set permission to magento folder that might help you. set 777 for media ,...
recursive function getting parent child A recursive function is a function that calls itself during its execution. This enables the function to repeat itself several times, outputting the result and the end of each...
countdown timer in php $dateFormat = “d F Y — g:i a”; $targetDate = $futureDate;//Change the 25 to however many minutes you want to countdown change date in strtotime $actualDate = $date1; $secondsDiff =...
get product thumb images on view.phtml <?php $_images = Mage::getModel(‘catalog/product’)->load($_product->getId())->getMediaGalleryImages(); ?> <?php if($_images){?> <?php $i=0; foreach($_images as $_image){ $i++; ?> <a href=”#” onclick=”ig_lightbox_show(-1)”> <img src=”<?php echo $this->helper(‘catalog/image’)->init($_product, ‘thumbnail’, $_image->getFile())->resize(108,90); ?>” alt=”<?php echo $this->htmlEscape($_image->getLabel());?>” title=”<?php...
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() ?>
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 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)...
get attribute of xml in php this is the attribute structure of xml [ForecastDay0] => SimpleXMLElement Object ( [@attributes] => Array ( [FDay] => 0 [Date] => 2008-11-11T00:00:01.930 [Name] => Tuesday ) And this...
Add module in artical in joomla To insert a module inside an article, use the {loadposition xx} command, as follows: Create a module and set its position to any value that doesn’t conflict with...
Recent Comments