In Magento you can change the default sorting attribute for product listing page from Magento admin.
To set the sorting attribute login to Magento admin and follow the following steps:
1. Go to Admin >> System >> Configuration >> Catalog
2. Expand the “Frontend” Section
3. Make selection from the “Product Listing Sort by” dropdown
4. Click the “Save Config” button.
In web pages which take input/feedback from the customers it’s a good idea to limit the type and size of data that can be entered so that spam can be avoided.
Let see how we can limit the number of characters that can be entered in a text box.
The simplest approach I follow is to use the jQuery “Limit” plugin. Click here to download the plugin.
In order to promote certain products, you may want to place them at the top in the category product listing page. Lets see how to set/change the position of the products from Magento admin.
To set/change the position of the products proceed as below:
1. Login Magento admin and follow the path Admin >> Catalog >> Manage Categories.
2. Click on a category in the category tree to display the category related information.
Solr admin interface provides information about the solr and its running environment, provides the power to manage cores, view the logs etc. It is open to public by default hence a security risk, lets see how we can password protect the solr admin.
The steps mentioned have been tried in a hosting environment which has the following software installed.
If you open the comments.php template file and look at the source code you will find that “wp_list_comments” function is used to display the comments listing. To change the “Reply” text your can pass “reply_text” parameter to “wp_list_comments” function.
Similarly to customize the comments listing frontend design you can pass a callback function as parameter to “wp_list_comments” function.
My shell script samplescript.sh resided in the directory /home/projects/sampleproject/scripts and in the shell script I included a configuration file relatively as below:
#!/bin/bash CONF="../config/common.conf" . $CONF
At times we need to add new configurations options or modify some option in an existing module, lets see how to do it in this article. Suppose we have to add a new field “Surcharge” to the Payment Method “Cash on Delivery” configuration options and modify the “Instructions” option label to “Message”.
To do this we have to create a new module.
1. We create a file “Techawaken_Cod.xml” in folder app\etc\modules\ to declare the module. The content of the file is shown below:
<?xml version="1.0"?> <config> <modules> <Techawaken_Cod> <active>true</active> <codePool>local</codePool> <depends> <Mage_Payment /> </depends> </Techawaken_Cod> </modules> </config>
Its very easy and simple to change the logo image in Magento. In default Magento theme logo image is picked up from the {{Magento_Root}}/skin/frontend/default/default/images/logo.gif.
One option is to create gif image of you logo and name it logo.gif and upload it in the {{Magento_Root}}/skin/frontend/default/default/images/ folder to overwrite the old logo image file.
In Linux, the system time zone is determined by the symbolic link /etc/localtime. This symbolic link points to a time zone data file located at either /usr/share/zoneinfo or /usr/lib/zoneinfo depending on Linux distribution. So changing the system timezone is just a simple job of updating this symbolic link.
Run the following command to view the list of regions
ls -l /usr/share/zoneinfo
As discussed earlier in post “Magento System Requirements”, Magento has certain has certain server/software requirements which must be met in order to install and run it.
You can test your server for compatibility by following these simple steps: