A client notified me that their Avast AntiVirus was blocking their own site because of clickjack attempts, more specifically Threat:JS:HideMe-I [Trj] with a big shiny red TROJAN HORSE BLOCKED alert. Here’s how I recovered the usability of Autson Slideshow: 1. Open \modules\mod_AutsonSlideShow\tmpl\default.php 2. Around line 564 locate and delete this script that looks something like…
421 Sorry, cleartext sessions are not accepted on this server. – FileZilla Error
Some times when you connect to the webhost via FileZilla you may encounter this error message. “421 Sorry, cleartext sessions are not accepted on this server.” Solution: Just add a ftpes:// before the domain name Old One, host : domain.com username : xxx pass : yyy port : 21 New, host : ftpes://domain.com username :…
One Habit You Should Avoid To Get Richer
Mental accounting is a common money mistake which even smart people commit. Understanding this mistake and avoiding this could prove to be very beneficial. Behavioural finance experts say that mental accounting works this way: Let us say you have bought a Rs.200 ticket to a movie, but when you show up at the entrance of…
Changing the Default Document Directory in Plesk for a Domain or Subdomain
Summary: Problem: Normally the domains point to www, public_html, or httpdocs folder. Change this to some other folder. e.g., httpdocs/Somefolder. Solutions: 1. Goto /var/www/vhosts/<domain>/conf 2. Create file vhost.conf 3. enter this line DocumentRoot /var/www/vhosts/(yourdomain.com)/httpdocs/(path-to-new-document-root) 4. Save File 5. enter this command in your ssh terminal /usr/local/psa/admin/bin/websrvmng -a. Full Description How to change the default…
ERROR: PleskFatalException Unable to connect to database: saved admin password is incorrect.
In case you are unable to Log-in your Plesk Control Panel and you are getting following Error Message: ERROR: PleskFatalException Unable to connect to database: saved admin password is incorrect. Follow these steps to recover MySQL admin password:- – Stop your MySQL server as :: sudo service mysql stop – Open your MySQL configuration file …
How to remove decimal price in magento
Hello Everyone, Today I’m going to tell you how to remove decimal price in magento.In simple words, This tutorial will tell to change the price from Rs 121.00 to Rs 121 . For this, you need to edit code/core/Mage/Directory/Model/Currency.php Find the following :- public function format($price, $options=array(), $includeContainer = true, $addBrackets = false) { return $this->formatPrecision($price,…
Removing Pagination In Magento Seo Page
First go to ..app\code\core\Mage\Catalog\Block\Seo\Sitemap open Abstract.php file In it change array(50=>50) to somewhat larger value . public function bindPager($pagerName) { $pager = $this->getLayout()->getBlock($pagerName); /* @var $pager Mage_Page_Html_Pager */ if ($pager) { $pager->setAvailableLimit(array(50 => 00)); // Change to larger value $pager->setCollection($this->getCollection()); $pager->setShowPerPage(false); } } Rest do the css changes to align the page in columns.
Getting All Products on a Page in Magento
Here is the code to get all the products: $allproducts = Mage::getModel(‘catalog/product’)->getCollection() ->addAttributeToSelect(‘*’); foreach ($allproducts as $product) { echo $product->getName() . ” “; }
Add fields to contact form in Magento
http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/contacts/add_fields_to_contact_form
Custom Template Layout in Magento template – CMS page template
There are some default template page in Magento linke 1column.phtml, 2column-right.phtml etc… If you want to such add cms page template follow the steps. 1. Design your html template 2. Rename your html template with .phtml exertion 3. Add Magento codes to your template … let your html tpl is… your content area Adding…