Articles Archive for April 2010
PHP »
Suppose, I have a string with text and number and I only want the number. I don’t want the characters and text of the string. Here is the way out:-
Magento »
Problem: When I try to add products to shopping cart, I get redirected to enable-cookies CMS page. Similarly, when I try to login as customer from customer account login, I get redirected to the same (enable-cookies) page. The enable-cookies page asks me to enable cookies in my browser. The message says “Please enable cookies in [...]
Magento »
Here, I will show you the code to get the most viewed products in Magento. The function addViewsCount() filters the products with their views count. Here is the code:-
PHP, Regular Expression »
Here, I will be showing you a simple and easy one line code to format URL string with PHP. By URL string, I mean the url key in any Search Engine Friendly URL. I have used preg_replace function to do so.
Magento »
Here, I will be showing how you can get product collection from product type i.e. simple, configurable, bundle, grouped, and virtual. Here is the code:-
Wordpress »
Scenario: – I have installed WordPress MU in localhost (local computer). – I am using Windows XP Operating System. – I am using WAMP Server. Problem:
Magento »
You can easily setup a multiple currency shop in Magento. By multiple currency shop, I mean giving the user to browse products in different currencies. Magento will provide a currency dropdown in category and product listing page. When you select your desired currency, the entire products price will be changed to your selected currency. Here [...]
Google »
Scenario: You have set up google apps for your domain. Let the link be:- https://www.google.com/a/domain.com/ Now, you forgot the admin password.
Magento »
Every time you login to Magento Admin panel, by default you will always encounter a notification popup message. From a developer point of view, this popup message is very much annoying for me. I am sure, you hate it if you need to login many times to admin panel. Here is a quick and simple [...]
