Tagged: kapil sharma

countdown timer in php 20

countdown timer in php

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 0

get product thumb images on view.phtml

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 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() ?>

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)...

get attribute of xml in php 3

get attribute of xml in php

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 0

Add module in artical in joomla

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...

wysiwyg editor Magento Custom Module 5

wysiwyg editor Magento Custom Module

wysiwyg editor Magento Custom Module Step 1 – Go to app/code/local/Webkul/Faq/Block here webkul is namespace and faq is module name , under your _prepareLayout() function add this code public function _prepareLayout() { if (Mage::getSingleton(‘cms/wysiwyg_config’)->isEnabled()...

captcha alpha numeric in php 6

captcha alpha numeric in php

captcha alpha numeric in php <?php $RandomStr = md5(microtime());// md5 to generate the random string $ResultStr = substr($RandomStr,0,8); $im = @imagecreate(110, 20) or die(“Cannot Initialize new GD image stream”); $background_color = imagecolorallocate($im, 0, 0,...

set google translater default language, google translate default language 0

set google translater default language, google translate default language

set google translater default language We can set google translate default language by working with cookies for this first use google translate to translate your web page then see what cookies he has created...