Fixing Magento Category Order Problems
Recently, one of our clients could not get their product categories to appear in the order set in the Magento Catalog > Manage Categories screen. No matter how they dragged and dropped the categories, the ones near the top would not display as intended on the front end.
How Magento Orders Categories
Categories are displayed in navigation menus based on a field titled “position” in thecatalog_category_entity data table. By default, the order is displayed in ascending order. There are other ways of adding code to display categories alphabetically, but by default, the order shown is determined by the position value.
So, why would changing the order under Manage Categories not work?
What I Observed
When working in the Manage Categories menu, the client and I were focused on manipulating the top 2-3 categories, as those were the ones most important to him at the time. We could change their order, but even after re-indexing the Flat Catalog, the front end would still not display the correct order.
Here is the code snippet by which we can create Magento shopping cart price rule, i.e the rule which is applied on shopping cart while customer add his/her product to shopping cart.
shopping cart price rule can be divided in 3 parts
1. Information of the rule
2. Condition that will be applied on the rule.
3. Action that will be taken.
Magento – Images Not Appearing on Frontend as well as Backend
Magento – Images Not Appearing on Frontend as well as Backend on Godaddy Server
Just Rename your .htaccess file inside the /media directory to .htaccess-old. This will absolutely resolve your image issue.
Magento: No input file specified – Godaddy
After installing Magento in godaddy. I logged into the admin section, it shows “No input file specified”.
Login to your Godaddy Account. Click on your hosting account.
Go to Settings > File Extensions Management and change .php and .php5 to run under PHP5.2X (instead of PHP5.2xFastCGI)
Magento: How to change invoice status in Admin panel?
When creating Invoice directly from Order in admin the invoice automatically gets marked as Paid. how can it be created with the status ‘Pending’ and marked as paid later?
How to get any category’s description in Magento
First, let’s talk about how to get category by category id in Magento.
It’s easy to get category by id, just change the number in load() method.
Then this is the dsecription:
You can change the description in Catelog->Category in the backend, and you can easily get other attributes just change the getDescription() method.
Magento: Automated Bash Script Installer
The following SSH script will automate the process of installing Magento, with or without sample data. It will walk you through everything, and the only thing you need to setup first is the database and assign a user to the database.
You will need SSH access to use this. SSH is similar to FTP, in that it requires software that you’ll need to download in order to connect to your site. If you don’t have an SSH client, you can download PuTTY for free.
Magento: How To Setup Google Adwords Conversion Tracking
Setting up Google Adwords Conversion Tracking on your Magento Community store is relatively easy – but it’s not a built-in Magento feature, so you’ll have to edit a template file. Here are the 4 simple steps that need to be done: (more…)
The following error message is shown instead of your usual Magento page:
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 1286489434787
Usually, it is caused by calling incompatible classes in themes, extensions or templates, database connectivity issues or resource shortage (i.e. insufficient diskspace or PHP memory_limit option).
Blank page is shown in Magento Frontend, Backend or Magento Connect Manager
If you see a blank page opening your Store in browser, it indicates that there is a PHP syntax error somewhere in the code of your site.
This usually happens when you modified files, templates or extensions manually, or installed a theme or extension with PHP syntax errors.
Before starting investigation please try to Disable Magento Compiler and Clear cached Magento data , in the most cases it should solve the issue.
To see the actual error message you need to login via FTP to your Store and use the following instructions: