Just imagine a situation, you want to insert fresh records after a bulk deletion. But there is a condition, this deletion should not perform unless all the records are properly inserted. To overcome this kind of situations we use transactions in MySql. So how these transactions works in Magento custom query operations. Please follow the […]
Here we are demonstrating the best way to Insert multiple rows in to a custom table with single query or at once. Sometimes we need to insert multiple records to table with a single step or query. So this way the query is efficient enough to insert multiple records at once. Multiple contacts to database […]
Changing password in Magento is not a big deal, if you are logged in to My Account area/Admin dashboard. I am talking about changing a customer’s password using program . Below code will show you how to programmatically change customer password after validating old password.
Create a 3D Tilted Scroll Effect with jQuery Tilted Page Scroll Plugin. By using this plugin, the items in the page will tilt while you scroll the page.This easy to implement plugin will give a rich 3D look to your website.
This tutorial illustrates how to manage inventory settings in Magento 1.9. 1) To Configure the Inventory Section, login to the Magento admin panel, go to System->Configuration and click on the Inventory button in the Catalog at left side. 2) On the page you will see two options 1) Stock Options 2) Product Stock Options Stock […]
Accordion type of menus are using widely to show large data set in a effective way. It eases the web browsing in lengthy data sets. With bootstrap accordion plugin, you can easily achieve the accordion in your website. The below example will show you how to build a simple accordion widget using the Bootstrap collapsible […]
How to create a database table in Laravel from a controller function You can use Schema object to create database table on the fly in a controller in Laravel.
Mailchimp is a Email marketing service, that allows you to manage subscribers in your website. Mailchimp provides integrated tools to manage your subscribers in an easy way. Basically Mailchimp is not a free tool, but they have a free option with limited subscribers. With this free forever plan you can have a list of 2000 […]
Spout is an alternative to PHPExcel library. I was a big fan of PHPEXcel, but later I find out that this library consumes huge amount of memory. In my case, I often work with large data sets, so this started making problem for me. After researching a lot in Google, I just find out this […]
Below is a easy code to get current logged in admin user in Magento 1.9. Admin users are the users logging thorough the admin panel of your magento stores. These users will have different permission in order to access different areas of admin side $adminSess = Mage::getSingleton(‘admin/session’)->getData(); //get data from sesssion $adminUser = Mage::getSingleton(‘admin/session’); […]
Sometimes you may want to have custom messages for individual fields than your generic Laravel messages. Most of the time your projects wouldn’t need the out of the box look of Laravel framework. This solution you can implement in controller level of your Laravel Project.
In this tutorial you will learn basic PHP File Handling — Create, Open, Read, Write, Append, Close, and Delete
In Jquery Ajax, you can send the form data to another page. What we will do usually we will append all the form data one by one in data object. This scenario is doable when handling a form with less elements. If you have form with many elements, this is tedious task. So in this […]
There are more and more people converting their traditional business to e-Commerce. It is very convenient for customers to shop online when compared to physical shop, as there is no shop visit needed in their busy schedules. When starting an online business first question would be which is the best online shopping cart for small […]
Often times we have deal with br tags in the text area HTML element. Most of the time this occur when we print the database stored values in textarea.
Uploading a file such as video, profile pic or a work sheet is very common in web applications. In this tutorial we are learning how to upload a file to server using PHP script. You can upload any type of files to server using this PHP Script. But be careful when you upload executable files […]
Programmers loves to do everything through programs. Even though there are options in Magento admin panel to create a customer. In this tutorial we are showing how to create a customer programatically in Magento 1.9 This script includes the line that sending email after creating the customer.
When you work with Magento, it’s often needed to use the Magento classes and Models outside the Magento core. What I meant is when you want to create a customer programatically outside Magento’s framework,, may because of a custom functionality that you want to build on some other applications. Copy the below code to run […]
In this tutorial we are showing how to create a simple contact form in Codeigniter. Contact forms are very necessary in any website, so the visitors can communicate to the website admins. Mostly visitors will have a lot of queries of about how your business running or a question about packages that you provide. In […]
Today’s tutorial are showing how to create a module in Magento 2. When you work in Magento you have to create a custom module at some point. Magento 2 has been around for 2 years now. More people are attracted to Magento’s powerful features and developing more Magento websites in the eCommerce industry. Magento considered […]
YouTube and Vimeo allows users to embed the videos in there web page such as blog, eCommerce. However the videos are not responsive by default. We need to have some work around to get this done. Step #1. Get the YouTube Embed Code Go to YouTube and click on the share link seen bottom of […]
In this tutorial I am going to teach How to Export MySQL Table data to CSV in PHP. A CSV is a comma separated values file which allows data to be saved in a table structured format. Here I will be using well known PHP function fputcsv to create the CSV file. Basically the data […]
How to release the lock in Magento 1.9, this is a sourced article from GitHub Sometimes you may have a run away reindex process that aborted due to a MySQL connection error of some sorts. It may be useful to use the following MySQL commands to aid in debugging. Determining if a lock exists Magento […]
Every website needs get traffic in order to visible in people’s searches. When discussing about traffic, RSS aggregation websites are very good source of traffic. They will have automated crawlers to list your site in their websites and you will gain a back link. In some websites they have RSS feeds but failed to discovered […]
Posting a data to an iframe is very easy process. Just set the forms target to load in iframe. <form action=”iframe.php” target=”t-iframe” method=”post”> <label for=”text”>Firstname:</label> <input type=”text” name=”firstname” id=”firstname”> <input type=”submit” value=”post”> </form> <iframe name=”t-iframe” src=”iframe.php”></iframe> The main advantage of this your form will not reload when you submit the form. It feel like ajax […]
Alexa rank is a online analytics service that continuously analyzing a website and gives your statistics. In this tutorial we are showing how to find Alexa rank of a given URL in PHP. This will help you to create a widget in your website to find the Alexa rank of a particular website. First of […]
When I started my first laravel project, I had requirement for uploading big images. So I decided to use a well image library jQuery-File-Upload from Blue Imp. But one problem I do not know how to inlcude the thirdparty library in the Laravel. After researching a lot in forums and other sites, I got the […]
CKEditor is one of the best WYSIWYG editor available for your websites. Today’s tutorial I will show you how to use image upload in CKEditor using Laravel. This option let you upload an image from your computer or a direct link from other website. You can see the result of the tutorial as shown in […]
This tutorial demonstrates, how to use third party libraries in Codeigniter. Codeigniter is capable to make any kind of websites like blogging websites,Informational Websites,Ecommerce Websites or social media websites, with any size. While developing web applications we will be dealing third party libraries. We cannot expect all of your favorite libraries are loaded in package […]