Blog

All articles written by us are here...

Home Blog
Blog of WordPress Developer,Codeigniter Developer,PHP Developer Shashi Dhar Kumar

Our blog offered in different articles on various technology areas like WordPress, e-Commerce, Web Hosting, Joomla, PHP, Domain, Drupal, Updates & Support, Analytics. If you need any kind of article on technology we will write for you.

If you want to view our portfolio than please visit us.

 

Clean logs files database Magento

Clean logs files database Magento How to clean logs files database magento? Magento is an e-commerce platform which is most secure e-commerce open-source platform. So it has lot of security implementation into files or database as well. That’s why it always produces of lot of temporary date in files as well as into database. After some time you can see that your website as well as your database is getting heavy on daily basis. So it affects the performance of...
Read More

How to group Security Headers for web application using htaccess?

How to group group Security for web application using htaccess? Group Security Headers htaccess X-XSS-Protection sets the configuration for the cross-site scripting filters built into most browsers. The best configuration is “X-XSS-Protection: 1; mode=block”. X-Frame-Options tells the browser whether you want to allow your site to be framed or not. By preventing a browser from framing your site you can defend against attacks like clickjacking. X-Content-Type-Options stops a browser from trying to MIME-sniff the content type and forces it to stick with...
Read More

Remove decimal value from price of product in magento

Remove decimal value product price Magento Price of product is : 135.00USD => 135USD How to remove decimal value from product price in magento? In order to remove decimal digits in price of product magento, we need to custom some code :Go to this file : app/code/core/Mage/Directory/Model/Currency.php Open app/code/core/Mage/Directory/Model/Currency.php Find the following code on line no 195 :- Find this code: public function format($price, $options=array(), $includeContainer = true, $addBrackets = false) { return $this->formatPrecision($price, 2, $options, $includeContainer, $addBrackets); } and...
Read More

Redirect from non-www to www in CakePHP

How to redirect from non-www to www in CakePHP? Put the following code into .htaccess in main directory RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} !^www\..+$ [NC] RewriteCond %{HTTP_HOST} !=localhost [NC] RewriteCond %{HTTP_HOST} !=127.0.0.1 RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L]
Read More

How to hide product attributes with no value in Magento

As a working consultant on Magento Project I come across that different product type to have different product attributes. This means that every product will have more than 20 options and sometimes all option don’t apply to certain products. For instance a projector and laptop have different kind of product attributes like “Front Camera” in laptop is necessary to show as an product attribute, but into project it should not. Because the store uses the same attribute sets for each...
Read More