Phpcodez - phpcodez.com

General Information:

Latest News:

Detect mobile users in Magento 19 Jul 2013 | 04:33 pm

var isMobile = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/);

vbulletin 5 auto login wordpress 11 Jul 2013 | 09:18 pm

Contact info@phpcodez.com

show static block in phtml magento 3 Jul 2013 | 01:28 pm

<?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘top_left_links’)->toHtml() ?>

Template hint doesn’t show up Magento 27 Jun 2013 | 04:36 pm

Make sure that Allowed “IPs (comma separated)” are not added under Developer Client Restrictions.

jQuery check if atleast one checkbox is checked 27 Jun 2013 | 01:10 pm

if(jQuery(“.related-checkbox:checkbox:checked”).length > 0)

jQuery modify the text box value 27 Jun 2013 | 01:07 pm

jQuery(“#product_name”).val (“1″);

Show succes / error message in custom controller 26 Jun 2013 | 06:01 pm

1) Makes sure that you have included <?php echo $this->getMessagesBlock()->getGroupedHtml() ?> 2) Add messages to ‘core/session’ instead ‘catalog/session’ .

close fancybox 24 Jun 2013 | 02:57 pm

For AJAX <a title=”Close” href=”javascript:jQuery.fancybox.close();”>< Back</a> IFRAME <a title=”Close” href=”javascript:parent.jQuery.fancybox.close();”>< Back</a>

Setting equal height with jQuery 21 Jun 2013 | 02:50 pm

$(‘.category-products-grid > .item’).each(function() { $(this).css(“height”, “auto”); gridItemMaxHeight = Math.max(gridItemMaxHeight, $(this).height()); }); $(‘.category-products-grid > .item’).cs...

php replace html tags 19 Jun 2013 | 04:31 pm

<?php preg_replace(“/<li\s(.+?)>(.+?)<\/li>/is”, “<span>$2</span>”, $string); ?>

Recently parsed news:

Recent searches: