It’s very often that you want to change the PHP version in order to install different softwares in your development environment. But the MAMP version in your system comes with pre-installed version of PHP, and you want to go with it.
In your Magento 2 journey, you might have greeted with this error message – “Your session has expired”, when clicking on the add to cart button.
Composer is a dependency management tool for php projects. By using composer, you can just declare the dependecy in your project and composer will handle/download this for you.
jQuery is one of the best fronted frameworks ever created. These days there are several other players also, like react, angular and vuejs, but jQuery keeps the top position with a usage in 78% of top million sites.
Today’s tutorial we are showing how to create a custom taxonomy in WordPress. After WordPress 3 this feature is included in the core, so we just need to use the function with some params. The core developers created function to handle the heavy lifting for us. Why Custom Taxonomies? As your system/website grows you feel […]
You may heard about the jQuery Date Picker and probably you’ve used it many times. So in this tutorial we are not talking about a jQuery Date Picker, but a date picker with time selecting option.
If you need to reset the password in Magento 2 via MySQL database, use the below script.
This script allows you to call Magento 2 functions run outside Magento 2 setup. You can create any PHP file in Magento 2 root folder and run Magento 2 from there.
If you have a multi-language store and want to add Store Codes to this is the tutorial for you. So your example urls will look like this yourdomain.com/en, yourdomain.com/us, yourdomain.com/uk. Follow the below steps. Login to the Magento 2 admin panel Navigate to Stores > Configuration > General > Web and find the Url Options […]
Default Magento 2 setup comes with .html for all category and product URLs. Some of the store owners will go with a .html at the end of the url, but these everybody tend to remove that and keep looks more like browsing through folders. To remove .html from Category URL & Product URL in Magento […]
Today’s tutorial we are showing, how to add a new filter option in the product listing area of Magento 2.3. Here we are adding price sorting options such as Low to High and High to Low.
To give proper permissions for Magento 2 folders and files, follow the below commands. This commands should be running as root, but do not run magento command line – bin/magento- from root user, as this may create files with wrong user and throws permission errors. Once you ran this commands you can safely switch to […]
Today’s article, we will show you how to drag and drop an image file using dropzonejs and PHP. Dropzonejs library provides us options for multiple uploads feature. For this we have one index.php, dropzone repo, and upload.php files. We use bootstrap css to help us to sort the stylesheets. Download the dropzonejs by clicking here […]
Using flat catalog will speedup your website to a certain extent as Magento does not need to join multiple tables to pull products details. When you use the flat catalog system, all the EAV attributes will copied to flat table on the fly.
Today no one can think about a website without responsive design. Magento 2 is well equipped with responsive design ideas. There are certain most used break points are available in the Magento 2. But what if we want to add a custom break point to your existing application. Follow the below steps. Create a variable […]
It’s quite annoying that every time page goes to login page when we try to refresh a page or saving a product in Magento 2 admin side. So this can be achieved by changing the admin session timeout in Magento 2.
If you want to deny all the traffic except a single IP use the below snippet in your .htaccess.
Today’s short article we are showing how to copy all the files from one directory to another in Linux.
Wish list is a good feature for websites as users can save their items for a future purchase. Even they can send this to their friends as well. But some storefronts, there is no need for wish list feature, but in Magento 2 this is a feature comes built in. So how does we disable […]
In this article we will show how to load a slideshow in your Magento 2 website’s homepage. We use Slick JS Library for this example.
This tutorial demonstrates how to install Magento 2.3 and build a web server on operating system Ubuntu 16.04 LTS. In this tutorial I have used Digital Ocean droplet (2GB instance), you may please create the same or you can install one in your PC. First we create a user apart from root user, as it […]
If you are trying to use getRequest() from a controller that extends Magento\Framework\App\Action\Action, you may just use $this->getRequest()->getPost(). But if you are in a custom class, you need to inject the request in the constructor.
Description: This great plugin replaces native select box elements with fully customizable dropdowns. It’s just not reshape the select box, but it equipped with the form Submit, Onchange Events and Attributes as you would with normal usage.
It is very common that you may want to list out all the files in a directory that contains several levels of sub directories. So consider the below folder structure media sample.jpg foo.txt get.php PHP has a built in function called which comes handy while handling files and directories. Best thing about this function is […]
You might be noticed that some of your friends sending nice stickers in Whatsapp as reply to your chat. Sometimes it will a picture from your favorite movie scene or some other instance. Now you also can create stickers for WhatsApp, by using a app called sticker.ly. Just search in the app store/play store for […]
Most of the projects you work in PHP or in any language, there you have to encounter with categories and sub categories. When comes to categories, tree view is the best listing method that we can use in our web apps. In this article, we are showing you how to create Laravel tree view for […]
In certain cases you want to run a MySQL query and find out how many products are there without images in Magento. Which will help your store to run smoothly. Use the below query to figure out the products without images.
The below script helps you to add single quotes to comma separated list, while using implode.
We use the below when we have an array from a direct sql used in Magento 1 project. And we want to use it in the Magento way, the collection object. By using this we will be capable of using setters and getters same like any other collection in Magento. Creating a Collection <?php $resource […]