Magento Help

Help for various Magento Issues

Magento Installation Issues

On the odd occasion, Magento decides to mess around with your intelligence slightly. It usually installs all of the relevant files, with correct file permissions etc. However, my most recent install I had to check the file permissions for index.php as they were set to 644 – ensure that this is not the case and all directories are set as 755, all files are 644 but index.php is also 755. In addition, when installing magento, a few times I have had a new domains which I have recently changed the Nameservers on, so I have utilised using the hosts file… Read More »Magento Installation Issues

Magento: Changing Font Style in Invoices

Fonts: The invoice uses Libertine. To change this ( I usually change it to helvetica), follow the steps outlined below. in /app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php I changed all the references to Libertine to Helvetica with cut and paste. In /app/code/local/Mage/Sales/Model/Order/Pdf/Items/Abstract.php I changed     protected function _setFontRegular($size = 7)    {         $font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . '/lib/LinLibertineFont/LinLibertineC_Re-2.8.0.ttf');        $this->getPage()->setFont($font, $size); return $font;     }     protected function _setFontBold($size = 7)     {         $font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . '/lib/LinLibertineFont/LinLibertine_Bd-2.8.1.ttf');         $this->getPage()->setFont($font, $size);      return $font;     }     protected function _setFontItalic($size = 7)     {         $font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . '/lib/LinLibertineFont/LinLibertine_It-2.8.2.ttf');         $this->getPage()->setFont($font, $size);         return $font;… Read More »Magento: Changing Font Style in Invoices

Checking/Installing Magento System Requirements / Add-Ons

Go to the following link to view what Magentos requirements are for your Server; http://www.magentocommerce.com/system-requirements/ • Login to WHM • Find “easyapache (apache update)” from the left hand panel • Click on “Start customizing based on profile” • Select the Apache version you require. I would advise 2.2 • Seclect the PHP verson. I would recommend PHP 5. • Seclect the PHP Build, I would advise 5.2.17 • Now scroll down to the bottom and select “Exhaustive Options List” • Select all “add-ons” that are required for Magento to function properly. • Proceed with the recompile • DONE!! 😀

Magento – 404 error on product page

Log in to PHP MyAdmin and execute the following command;   INSERT INTO `report_event_types` (`event_type_id`, `event_name`, `customer_login`) VALUES (1, ‘catalog_product_view’, 1), (2, ‘sendfriend_product’, 1), (3, ‘catalog_product_compare_add_product’, 1), (4, ‘checkout_cart_add_product’, 1), (5, ‘wishlist_add_product’, 1), (6, ‘wishlist_share’, 1);