Suppose you have developed an extension in Magento, and stored all the data into the database and you want to display that data on the frontend randomly. In MySql the rand() function helps the select query to fetch data randomly. In Magento, you can select random rows from MySQL
Sometimes, if we need limit in the text, but if you are using the inbuilt functions of php then it breaks the words, and count only characters not the word. In this post you will see the very useful PHP function which can be used in limit of word.
In PHP sometimes you want to refresh the page you can do it by the javascript as well as by the PHP itself. Here I am going to refresh the page by using the "meta http-equiv".
In this post I am going to describe the Actual product price and the Special product price. Before doing this it is very important to know what is the actual and special products price?. The actual price is the real price assigned to the product and special price is
Sometimes we analyze that our PHP script is running very slow, we, just think that may be reason is our loop and the fetching data through the sql query etc . But we do not know that where is actual problem? We actually don't know in which function or
In Magento Custom options are the options that can be added to any products individually through the admin panel, which provides an option for the user to select what type of product they actually want. Here is a example for the custom option. Suppose you have a product say
Magento provides very good error troubleshooting, but it is very important to know how to debug the errors by using the Magento troubleshooting methods. The Standard Error Page Just look like as the image below:
Magento product collection are the very important, by these function we can saves a lot of time, than to write complex sql query. In this blog post, we will see some important function in magento product collection class. Product Collection class in magento is Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection which returns all the