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 […]
Most of you are familiar with creating modules in Drupal 7, but things got changed in Drupal 8. Drupal 8 has massive change in code architecture and adhering latest industry standards. Already Drupal 8 become the talk of town, so today’s tutorial we are working with a simple module in Drupal 8. Module Directory Drupal […]
Magento have the ability to setup different stores. A product can be made visible in different stores and if we want load store specific details, use the below code.
PuTTY is awsome a client program for the SSH, Telnet, Rlogin, and SUPDUP network protocols. These protocols used to run remote session in your local machine which is a great step in tech industry. Coming to our topic, putty doesn’t give an option to save password as this helps to save your time by typing […]
The cart page performs the duties of a lead-maker, whereas, the checkout is the deal-binder. Both are the significant parts of a buyer’s journey. Improving them simply means streamlining the buyers’ passage towards absolute purchases. However, the tricky part is deciding how to improve these pages for higher usability and conversions. The marketers and webmasters […]
Most of the developers start the projects in their local development environment. If you are working with Magento, Drupal, WordPress etc. you may need virtual hosts to setup, in order to work the test sites properly. When you use virtual hosts each and every links looks very unique, and similar to the main website URL. […]
File upload is an essential part in any web application, so we are demonstrating a multiple file uploader in PHP and MySQL. In Our example code, we will implement the following functionalities to demonstrate the multiple images upload in PHP. Here we will not be using any framework, but just pure PHP for file upload. […]
PDF documents are often used because they help preserve the original content/format of the document, but this can make splitting the file up a little more difficult than other document formats. If you have Adobe Acrobat, you can use the built-in Split Document function to split it up.There are several solutions to achieve the splitting […]