Home » Archive

Articles Archive for April 2010

PHP »

[29 Apr 2010 | 2 Comments | 2,404 views]

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 »

[27 Apr 2010 | 7 Comments | 3,824 views]

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 »

[26 Apr 2010 | 9 Comments | 4,531 views]

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 »

[22 Apr 2010 | One Comment | 1,755 views]

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 »

[20 Apr 2010 | 4 Comments | 8,613 views]

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 »

[19 Apr 2010 | One Comment | 813 views]

Scenario: – I have installed WordPress MU in localhost (local computer). – I am using Windows XP Operating System. – I am using WAMP Server. Problem:

Magento »

[16 Apr 2010 | 9 Comments | 4,099 views]

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 »

[8 Apr 2010 | No Comment | 307 views]

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 »

[6 Apr 2010 | 7 Comments | 2,414 views]

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 [...]