Archive for the ‘Programming’ Category

Reducing the Size of Your Magento Install

Thursday, April 8th, 2010 Posted in Programming | No Comments »

Quoting a Magento Professional Partner nicknamed "Crucial": Yes, it’s safe to delete that data. I always clear it out after an upgrade: rm -rf downloader/pearlib/cache/* downloader/pearlib/download/* Basically when you are upgrading and installing, your downloader folder will become very large, and you ...

Install mod_security 2 on CentOS/RedHat

Monday, August 31st, 2009 Posted in Customization, Programming | 1 Comment »

This is a translation from Spanish to English, but still the best guide I've used so far. Modified slightly to help others but could use more work. Important: ModSecurity blocks lots of UNIX commands. I had to add dots to them. ...

Edit the Magento Invoice PDF Templates

Tuesday, December 2nd, 2008 Posted in Programming | 18 Comments »

Code Location /app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php /app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php Changing the font size Change the font size in the two files: /app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php (line 487-507) /app/code/core/Mage/Sales/Model/Order/Pdf/Items/Abstract.php (line 255-274) Change the invoice logo Admin -> Configuration -> Sales -> Invoice and Packing Slip Design More info Changing the invoice size from A4 to letter Changing the font ...

Remove the Store View from the Magento Meta Title Tag

Wednesday, November 5th, 2008 Posted in Programming | No Comments »

Having problems with the word " - English" showing up on all your meta titles? Here's the solution:

osCommerce Error: Unable to determine the page link

Thursday, October 2nd, 2008 Posted in Programming, Technical Issues | 3 Comments »

This is a simple PHP4 -> PHP5 error. Make sure the following is in your .htaccess file. [code]php_flag register_globals On php_value register_long_arrays On[/code]

Work on sites before the DNS has rolled over (by editing the hosts file)

Monday, September 29th, 2008 Posted in Programming, Tricks | No Comments »

Important: This does not work if you are behind a proxy, which includes antivirus firewalls and such. Right click on the hosts file in C:\Windows\System32\drivers\etc Go to properties, turn off "read-only" Open the file using Notepad or any text editor Add a line to ...

Display code in the browser

Tuesday, September 23rd, 2008 Posted in Programming | No Comments »

Use &lt; instead of "<" and &gt; instead of ">". Or if you're pasting code into a WYSIWYG editor, just paste into the design view and not the source view. It should automatically convert the characters for you.

Remove Estimate Shipping and Tax box from Magento checkout

Tuesday, September 23rd, 2008 Posted in Programming | 2 Comments »

Open the file /app/design/frontend/default/default/layout/checkout.xml Remember if you are using a different theme the path to that file will be slightly different. Remove this line: [code]<block type="checkout/cart_shipping" name="checkout.cart.shipping" as="shipping" template="checkout/cart/shipping.phtml"/>[/code] Source

Canada Post module for Magento now available

Monday, September 22nd, 2008 Posted in Programming | No Comments »

After this module is installed you can request quotes from the Canada Post Sell Online system. Feature list Storage of sellonline information Easy setup process Easy configuration / setup process Add ability to view number of boxes to ship and contents of each box Orders from ...

Make your WordPress site faster (easily)

Sunday, September 21st, 2008 Posted in Programming, Tips | No Comments »

What: There's a feature called "gzip" that's installed by default on most web servers. Modifying your site to make use of it can really speed up the performance. How much faster? Try the quick and easy mod_gzip tester by WhatsMyIP.org. Just enter the URL ...