Add a Custom Field in Review in Magento

Add a Custom Field in Review in Magento

In this tutorial I will let you know how to add a custom field in review in Magento. Reviews are important to get collect feedback from customers. Now if you want to get their email address too with their review, this tutorial will help you add an email field in review form. Add a input type field for email in template\review\form.phtml as below. Add an ’email’ field in review_detail table …

Continue reading

Timezone Conversion in PHP

timezone conversion

Today in this tutorial I will let you know how to convert date and time from one timezone to another timezone in PHP. Following is a simple method with simple example of timezone conversion in PHP. You can use the DateTime object and their function aliases like as below: Result is as follow: DateTime is exists on PHP 5.2 and above. Hope this tutorial will help you.

Send emails from local using XAMPP with SMTP

Send emails from local using XAMPP with SMTP

In this tutorial I will explain how you can send emails from local using XAMPP with SMTP settings. It will help you to check the display of the email body on your local system. Open D:\xampp\sendmail\sendmail.ini file and change the below values : Now open D:\xampp\php\php.ini file and change below: Now you don’t need to use any SMTP details in your application. Just use php mail() function like below. Hope …

Continue reading

Shorten URL using Adfly API in PHP

Shorten URL using Adfly API

In previous tutorials I have explained shorten URL API of Google and Bitly. Now in this tutorial I will show you how to Shorten URL using Adfly API in PHP. It is one of the most popular URL shortener service provider. Also you can earn money through this service, that is the main reason of it’s popularity. It is providing an API to easily implement this service. To get the …

Continue reading

Shorten URL using Bitly URL Shorten API

Shorten URL using Bitly URL Shorten API

My previous tutorial was about Shorten URL using Google URL Shortener API. In this tutorial I will show you How to Shorten URL using Bitly URL Shorten API with PHP. Bitly is one of the most powerful and popular URL shorten and bookmark service. It offers simple and powerful API to generate shorten URL from long URLs. To use Bitly URL Shorten API you have to signup for an API …

Continue reading

Shorten URL using Google URL Shortener API

Shorten URL using Google URL shortener API

In this tutorial I will show you how you can shorten URL using Google URL Shortener API with PHP. Google provides URL shortener service (goo.gl) with a Google URL Shorten API key. Get detail information of Google Shortener API from http://code.google.com/apis/urlshortener. Get your API key by creating a project or existing project from https://console.developers.google.com. I have created a basic GoogleShortUrlApi class for shorten long URLs and expand shortened URLs. This …

Continue reading

Upload Multiple Files with Progress Bar

Upload Multiple Files with Progress Bar

In this tutorial I will explain how you can Upload Multiple Files with Progress Bar. It will help you to show progress bar when you upload files. Note PHP’s default max number of file upload is 20. You can not upload more than 20 files at once. To allow more than 20 files you need to edit php.ini file and change max_file_uploads value. HTML Part: Following is the HTML of …

Continue reading

Scroll to Top using jQuery

Scroll to Top using jQuery

In this tutorial I will explain how to implement Smooth Scroll to Top functionality using jQuery. This feature helps user to move quickly top of the page. I will explain this with a simple example. In this example the scroll to top button will appear, when user scroll the page more then 300px. HTML Part: Following is the HTML part. CSS Part: Now add following CSS for Back to Top …

Continue reading