Removing All from Show All Per Page on Magento’s front end

.

Searching low and high, trying every search string i can think of in google. I’ve found nothing. Posting on Magento Commerce’s website i got a response with the answer. Here is the answer:

The file you are looking for is: Mage/Catalog/Block/Product/List/Toolbar.php

In this file at line 530 function getAvailableLimit()

public function getAvailableLimit()
{
if ($this->getCurrentMode() == 'list') {
if (isset($this->_availableLimit['list'])) {
return $this->_availableLimit['list'];
}
$perPageValues = (string)Mage::getStoreConfig('catalog/frontend/list_per_page_values');
$perPageValues = explode(',', $perPageValues);
$perPageValues = array_combine($perPageValues, $perPageValues);
return ($perPageValues /*+ array('all'=>$this->__('All'))*/);
}
elseif ($this->getCurrentMode() == 'grid') {
if (isset($this->_availableLimit['grid'])) {
return $this->_availableLimit['grid'];
}
$perPageValues = (string)Mage::getStoreConfig('catalog/frontend/grid_per_page_values');
$perPageValues = explode(',', $perPageValues);
$perPageValues = array_combine($perPageValues, $perPageValues);
return ($perPageValues /*+ array('all'=>$this->__('All'))*/);
}
return parent::getAvailableLimit();
}

as you can see the

return ($perPageValues /*+ array('all'=>$this->__('All'))*/);

I comment /*+ array(’all’=>$this->__(’All’))*/
now the “All” show anymore ….

Or course you should not change the core but sometime it’s easier then build an override
for it.

You should test it on a development store before !!!!
USE AT YOUR OWN RISK !!!!

Let me know if you have any problem

Installing MCrypt in php

1 way I’ve found of installing mcrypt, to tell you the truth I have no idea how it works, but it worked for me. Please comment and let me know how it works for you.

From root SSH (putty)

run commands as follows:

yum install mcrypt*

yum install php-mcrypt*

Your Magento folder does not have sufficient write permissions

.

Error: Please check for sufficient write file permissions

Your Magento folder does not have sufficient write permissions, which this web based downloader requires.

If you wish to proceed downloading Magento packages online, please set all Magento folders to have writable permission for the web server user (example: apache) and press the “Refresh” button to try again.
Refresh

To learn more about setting write permissions, please visit the Magento community site for further details.


Ever seen the above error message?  I have.  Solution’s I’ve found for this are as follows:

I installed magento through SSH as root.  Now the problem with this is all the folders magento creates is now owned by root, so apache or magento cannot change them.  Simple fix.  From what I read off of MagnetoCommerce.com is somebody changed the owner of the downloader folder.   I tried this, it didn’t fix my problem.  Feel free to try this way though.
chown apache downloader/ -hR

I took this a step further since I was still having the same problem.  I did this to the entire website directory

chown apache www/ -hR

Let me know if this works for you.

FTP Images

Learning by trial and error.  When using FTP always transfer images using BINARY.  Transferring images in ASCII can cause images to pixelate or become corrupt.  Just a tip from one FTP user to another.

Plesk webmail error

Ever see this error while in Plesk:

Failed setting of domain parameters: Cannot change Webmail on domain: webmail

So in between making domains in my plesk, i decided to update plesk core files.  Well it didn’t tell me there was a file dependency.  So I updated core files, tried to make another domain and I kept getting this error.  After searching a bit, and concluding nothing from these searches i went back, deleted all my domains and accounts and started creating new domains.  Which still gave me this error.

After sifting through plesk’s interface a while i realized the Latest Release Dates on Base packages of Plesk and Horde webmail support were the same.  I didn’t have the newest version of Horde webmail support installed.  So I installed the new version of Horde webmail support and all was well.

My dot com is live!

Finally. Steven Kohlmeyer .com is live.  I now have a blog on there. I’ll keep this blog active with new posts, but the majority of my posts will be at http://StevenKohlmeyer.com.

Kansas City Chiefs vs Denver Broncos

This is going to be a great game.  Me living in Kansas City and being a Denver Broncos fan.  I cannot lose this game.  Either way I win.  I can’t wait until the game tomorrow.  Who else is gonna be there?