Everyone must be excited about the new windows 10 look and feel. But one question remains how to change the default lock screen timeout time. Please follow the below steps. How to change lock screen timeout in Windows 10 Step-1 : Press Windows icon and pull out the menu. Then click the settings Step-2 :Settings…Continue Reading
Programming
How to find out how many times a web page shared in Facebook
How to find out how many times a web page shared on Facebook Everyone uses at least one social media websites every day. Did you ever think how do the social media websites are active? It’s the users who share or posts new content, their thoughts etc. When coming to Facebook, one the prominent platform,…Continue Reading
Get all children categories given a category id in Magento
If you want to get the children categories recursively, you can use: Get all children categories given a category id in Magento. This will retrieve all sub – sub categories recursively.
Top Magento Hosting Providers
Building a Magento website is easy when comparing to figure out a good Magento hosting solution for the website. There are plenty of Magento hosting recommendations in the internet, but most of them are really confusing and sometimes misleading. Usually Magento developer companies suggest for the server, depending on the load and features of the website….Continue Reading
Magento Newsletter Tutorial
Magento Newsletter Tutorial When running an e-commerce store it is necessary to send out promotional emails and campaigns. Apparently, Magento having built in newsletter functionality and it’s easy to use. It allows site administrators to create and send email campaigns from admin panel. Before going to Magento newsletter page, we just need to set Magento email…Continue Reading
Best selling wordpress premium templates
A clean and neat looking theme is crucial for your online presence. Here comes WordPress easy to setup, featured rich website builder. WordPress has a great online presence when it comes to personal blog, movie website, shopping cart and what not. Market share trends for content management systems for websites, WordPress leads with 60%. So…Continue Reading
WordPress Hosting
How to Choose the Best WordPress Hosting? Webhosting is the key component of every successfull website. Choosing the best webhost will improve not only the traffic but also the SEO rankings. Up time of your web host really matters in this case. There are different types of the hosting such as free, shared, vps, dedicated…Continue Reading
How to choose web hosting
Selecting your target hosting type First selecting your target hosting type. In fact there are 3 hosting types, 1)shared hosting 2) VPS hosting 3) Dedicated hosting . I would suggest select shared hosting if your daily traffic below 3000 visits. If your daily limits exceeds this better consider any of the options 2 or 3….Continue Reading
Redirecting to External URLs in Magento controllers
If you need to redirect to external URLs in Magento you have to use There are similar method uses in Magento to redirect to another Magento internal path. $path would be an internal module/controller/action/param1/param1value page
MAGENTO SEO – HOW TO DISABLE THE CATEGORIES PATH IN URL?
To do this, go to System => Configuration => Catalog => Catalog => Search Engine Optimization and set “Use categories path for product URL’s” to “no”.
How to use custom cache data in Magento
Using caching in Magento website is an essential part of development. Magento is well known for eating up the server resources. The below code snippet helps when someone deals with heavy data in Magento website.
Creating Magento simple products programmatically
Products are the basic thing in the e-commerce shop and Magento has good features to create it from the backend. But certain situations we have to create it via programmatically. For example a bulk upload from a API, or another store etc. How to create Magento simple products programmatically We can use API for this,…Continue Reading
Get a parent category and all sub-sub–sub categories in Magento
Getting all sub(recursively) categories in Magento, not an easy task. I’ve seen so many of them looping through the category model and creating overhead to the server. It’s mainly because the each model creates and SQL query. Good performance Single Query Solution: Let $parentCategory be your Main Category, then this collection will load all subcategories,…Continue Reading
How to get data from Magento System Configuration
Magento stores all the configuration values in the database, but it has a particular format to retrieve the data. Getting data from system configuration table is easy. sectionName, groupName and fieldName are present in etc/system.xml file of your module. It will automatically fetch config value of currently viewed store as you have the option to enable…Continue Reading
Get order currency code from order
When we need to get currency code from order object use the below code 1) currency code from order object 2) With currency symbol
How to clear the Magento cache?
When making certain changes to Magento, it is necessary to clear the cache in order to reflect the changes to reflect. There are three ways to clear the cache in Magento: Through the Magento Admin Panel website.Log in to your Admin Panel account Go to the System -> Cache Management section Click on the Flush…Continue Reading
Magento: Convert Price from Current Currency to Base Currency
It’s quick way to convert currency from one currency to another in Magento and vice-versa. It is useful when you are using multiple currencies in a shop. From below code, you can convert from currency to another chosen currency. Changing currency from one to another
How To Write A Batch (.bat) File
A batch file contains a series of DOS commands and is commonly used to automate frequently performed various tasks. It makes the life as just save your commands in one file and double click on it from your Windows machine. Create a .bat file …Continue Reading
Stop Magento indexing process
Stopping the indexer process, its an easy task. When Magento starts indexing it updates the status in the table index_process to working. If script stopped working due to error or server problem, the status remains the same working and won’t bring the process back to pending automatically. One solution is log in to your database via PHPMyAdmin(or any…Continue Reading
Re-indexing Magento via command line
Re-indexing in Magento, such a huge process, so most people suggests to run it via command line instead of using browser. This could be a host problem, may be Magento timing out. However your catalog size increases its a pain to work with re-indexing. The Magento indexer file located in shell dir Checking status of…Continue Reading
Call to undefined function add_action() in hello.php
PHP Fatal error: Call to undefined function add_action() in p-content/plugins/hello.php, I was getting the above error in the error logs. Assuming someone calling this URL directly. To avoid these I’ve added the WordPress good practice line on top of the script.
Load product by id/sku in magento
Load product by id in Magento is very simple action And when we need to load the product by sku For the product collection in magento
Remove .html from category or product URL in Magento
Removing .html from Magento category URL or product URL is very eas to do. If you want to remove .html from category/product URL in Magento then Follow the below steps Go to System -> Config -> Catalog -> Search Engine Optimizations tab Delete “.html” from Category URL Suffix. Now you must do the indexing go…Continue Reading
Export to CSV in PHP
Export to CSV and saving to file, this is the topic I am explaining here. First of all, you will have a database which saved the data sets for you. I am using MySQL for saving the data. Opening the file in write mode and save the database records to CSV by using fwrite.
Magento overriding/modifiying header/footer of the email templates
Modifying the email templates is an essential part of development in Magento. Especially when dealing with email templates. In latest Magento 1.9 there are some extra lines of code in email templates, for header and footer. If you want to tweak this without touching Magento core templates, this is right article to go through. First…Continue Reading
Trigger a function when clicks outside of an element in jQuery
If you need to hide a div when you click outside of it. Below snippets are explaining that behavior in detail. HTMLjQuery Its pretty self explanatory, when you click outside of the target div, the jQuery function check for then click event is based on the element. If not the div will fade out.
Disable the Magento Demo Store Notice
This is a demo store. Any orders placed through this store will not be honored or fulfilled. If you are seeing this message in your Magento store after installation, it means you have enabled the Magento demo store notice. Magento 1.9 it’s a default thing. This is recommended to turn on while developing an application,…Continue Reading
Multi conditions for addAttributeToFilter in Magento
addAttributeToFilter You may be wondering how to give multi conditions in Magento addAttributeToFilter function. See below for an example. It’s a bit tough why I’ve used this for, one custom attribute, same time needs to check the attribute value exists and if exists need to validate if that’s zero. so the final query will look…Continue Reading
How to fix integrity constraint violation when adding columns to sales order grid in Magento
When adding a new field in the sales order grid everything works well, but when you try to filter by date or some other field, you will get the below error message. Usually, it redirects to some other page and throws the Magento exception number screen, it’s horrible, isn’t it? There has been an error…Continue Reading
Install Node.js on Windows and create test app
Installing a node.js application in windows is pretty easy. First, you need to go to nodejs downloads page. Download the windows msi version as the installer. Run the .msi file from anywhere from your computer. And installation window appears, go through the process one by one. Finally, if you are done restart the computer, to…Continue Reading