Jan 20, 2012
Encode Decode image using PHP
Hello,
I am describing here the way to
1) Encode image to generate a string
2) Decode image from a given encoded string
1) Here you need to specifiy the path of your image in variable ‘$image_path’
<?php
...
read more
Jan 6, 2012
Website ID from Store Group ID in Magento
Hello All,
I am posting here code for fetching website information from Store Group Id.
Also useful code showing relations between Stores, Groups and Websites.
< ?php
$store_id = 1; //your...
read more
Dec 14, 2011
Ajax in Magento
There are some instances when we are required to use Ajax features in Magento.
Prototype javascript library used in Magento has inbuilt functionality for Ajax.
I am describing here the basic...
read more
Nov 28, 2011
Root Category in Magento
In Magento, products are assigned to Website, though we can disable the product in independent store, but this is very lengthy procedure as you need to edit each and every products.
So I came...
read more
Nov 11, 2011
Order Profit column in Magento
I am explaining here the way to add a Profit column in Order grid seen in admin-end
This column will show the profit gained per order (i.e, the difference between Cost and Selling Price)
1) Copy...
read more
Nov 7, 2011
Custom Email Templates in Magento
Hello,
I am explaining here the method for sending custom emails using the custom email templates with variables.
1) Create an email template from Admin-end > System > Transactional Emails, for...
read more
Oct 13, 2011
Empty Cart in Magento
In one of my project, I needed to explicity delete the items from cart after order placed.
You can also use this script for making a functionlity for giving an option for empting the cart at...
read more
Oct 8, 2011
Number of days between dates
One day I was just thinking about days spent by me on this earth, so I decided to make a script for the same.
I am writing here the code, just make a new empty php file and copy and paste the...
read more
