The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog . Here’s an excerpt: 600 people reached the top of Mt. Everest in 2012. This blog got about 2,300 views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 4 years to
The WordPress.com stats helper monkeys prepared a 2013 annual report for this blog. Here’s an excerpt: A San Francisco cable car holds 60 people. This blog was viewed about 3,400 times in 2013. If it were a cable car, it would take about 57 trips to carry that many people. Click here to see the
remove svn files folder using php some time we forget to export a project on svn and upload that on main server. Result , our main server now have svn file and folders folders. if we want to delete them we have to delete them one by one (if your svn version is old) or
update product quantity on check out page magento you can do it by editing item.phtml (template/checkout/onepage/review/item.phtml) and these lines after line no #47
<td class="a-center"><?php echo $_item->getQty() ?></td>
<input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" name="update_cart_action" id="cup_<?php echo $_item->getId() ?>" class="input-text qty" maxlength="12" />
<td> <button type="submit" name="update_cart_action" value="update_qty" title="<?php echo $this->__('shopping-cart-table'); ?>" id="up_<?php echo $_item->getId() ?>" class="button btn-update"><span><span><?php echo $this->__('Update'); ?></span></span></button><td>
and put Jquery code at the end
var id = "#c"+this.id;
var quan = jQuery(id).val();
var lastChar = id.substr(id.length - 1);
url: "<?php echo Mage::getBaseUrl(); ?>checkout/cart/updatePosts/",
now override cartcontroller.php and place all the functions of the original cartcontroller.php and rename function updatePostAction by function updatePostsAction. and change the redirect
magento on maintenance mode open only on your ip Hello All Today I am going to explain you how to put magento on maintenance mode. That maintenance mode will show to all other user user beside you. So can can work on a live environment if there is any issue which is very useful.
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 ftp details only in that case you need a code to extract that zip. following can help you to do that.
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 , var and app/etc folder and for rest of file and folders create a file with name “magento-cleaning.php” and paste the blow