Get product stock information in Magento

Get product stock information in Magento

In this tutorial I will show you how to get product stock information in Magento. It will help you to get stock information of any product like quantity (qty), minimum quantity (min_qty), stock availability (is_in_stock), minimum and maximum sale quantity (min_sale_qty and max_sale_qty), etc. To get stock data first you need to load the product. Following are two different ways to load any product in Magento. By Product ID: By …

Continue reading

Get Add to Cart URL of any Product in Magento

Get Add to Cart URL of any Product in Magento

In this tutorial I will show you how to get Add to Cart URL of any Product in Magento. It will help when you will create a custom page for any product. Following is the code to get add to cart url of any product. For example we need to fetch add to cart url of a product id “123”. Now you can use this $_url with button or link …

Continue reading

Remove all duplicate elements from an array

Remove all duplicate elements from an array

In this tutorial I am going to show you how to remove all duplicate elements from an array without using array functions in PHP. Below is a simple example of removing duplicate elements from an array without using array function and using array functions. You will get following in result: Using Array function in PHP: Hope this tutorial may help you.

Take a Screenshot Using Html2Canvas JS

Take a Screenshot Using Html2Canvas JS

In previous post I have explained about Feedback with screenshot using feedback JS, which is using Html2Canvas JS to take a screenshot, now In this tutorial I will show how you can take a screenshot using Html2Canvas JS. This script allows you take a screenshot of a part of the web page also. You can download Html2Canvas jQuery plugin from https://github.com/niklasvh/html2canvas/releases. Following is an example to take a screenshot of full …

Continue reading

Post into a Facebook page Using Graph API

Post into a facebook page Using Graph API

I have published a tutorial on How to Auto Post on Facebook Using PHP with Graph API which post status on user’s wall. Now in this tutorial I am going to show you how to post into a facebook page using Graph API with PHP. Create Facebook APP: To get the Facebook Access token you need to create Facebook App. To create a Facebook App please follow the steps of …

Continue reading

Create a Password Strength checker in jQuery

Create a Password Strength checker in jQuery

In this tutorial I will show how you can create password strength checker in jQuery for your website. For this you need to have a jQuery plugin pwdMeter. In this example you will see five stages of password strength very weak, weak, medium, strong and very strong all calculated on your passwords characters and its length. To make a very strong password you have to add minimum 13 digit contain …

Continue reading

Feedback with screenshot using feedback JS

Send feedback with screenshot using feedback JS

In this tutorial I will explain how you can send feedback with screenshot using Feedback JS. This script allows you to create feedback form with screenshot with the form. Screenshot is based on the information available on the page. This script is based on html2canvas library, which renders the current page as a canvas image. As the whole image is created on the clients browser, it does not require any …

Continue reading

Draw a Circle on Google Map

Draw a Circle on Google Map

In this tutorial I will show you how to draw a circle on google map. We need to provide the radius, center point latitude and longitude, and different color options. Following are the options to draw a Circle on google Map for new york location with different color options also. Here is a complete example of draw a circle on google map. The result be like below: Hope this tutorial …

Continue reading