Manage Fastly VCL snippets using the API

  • Post category:Magento2

Delete a snippet 1. Save Fastly service credentials as bash environment variables export FASTLY_SERVICE_ID=<Service ID> export FASTLY_API_TOKEN=<API Token> 2. Check active VCL version curl -H "Fastly-Key: $FASTLY_API_TOKEN" https://api.fastly.com/service/$FASTLY_SERVICE_ID/version/active 3. Save active version number returned in the…

Continue Reading Manage Fastly VCL snippets using the API

Magento 2 admin token using Rest API & CURL

  • Post category:Magento2

Magento access token is used to synchronize and work with any third-party applications. Using the Magento Rest API provided, you can create, authenticate, and remove a token and its access. ************* curl POST HTTP token…

Continue Reading Magento 2 admin token using Rest API & CURL

Magento 2 Send bulk emails using SendGrid API

  • Post category:Magento2

Here in this post, I'm going to show how you can send bulk transactional emails programmatically using SendGrid API & an email template created in Magento. Before getting started, let's understand the used table's role…

Continue Reading Magento 2 Send bulk emails using SendGrid API

Useful Git Commands

  • Post category:Github

Git is a free and open-source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Here are some of git useful commands that you can use…

Continue Reading Useful Git Commands

How to redirect to previous page in Magento 2

  • Post category:Magento2

In Magento 2, You can redirect to the previous page. This allows customers to redirect back to the page from where the customer came. In Your Controller write the following code: <?php namespace Company\Module\Controller\Index; use…

Continue Reading How to redirect to previous page in Magento 2

How to use Dependency Injection (DI) in Magento 2

  • Post category:Magento2

Dependency injection is the idea that a class is given the classes that it needs in the __construct method. Magento uses constructor dependency injection. In your __construct method, you list classes that you want to…

Continue Reading How to use Dependency Injection (DI) in Magento 2

How to use Configuration Files in Magento 2

  • Post category:Magento2

A module's configuration files are stored in your modules etc/ directory, like app/code/Kaushik/HelloWorld/etc/. In there, you will find several important files. Many of these files can be found in a module's etc/ directory. However, you…

Continue Reading How to use Configuration Files in Magento 2

Description of Magento 2 Directory Structure

  • Post category:Magento2

What are the naming conventions, and how are namespaces established? The root Magento directory contains these primary folders: app/code: where your custom modules are found. Hopefully, very few 3rd- party modules are installed here because…

Continue Reading Description of Magento 2 Directory Structure

Setup Apache Virtual Host on Ubuntu Server

  • Post category:Linux

In this post I will show you through setting up website using virtual hosts on Ubuntu server. Before we begin, you need to have Apache installed in order to work through these steps. 1. sudo…

Continue Reading Setup Apache Virtual Host on Ubuntu Server

List of CLI Commands in Magento 2

  • Post category:Magento2

In this post I listed all the useful commands that we can use in Magento 2. Command like content deploy, indexing, setup upgrade, cache and other many more commands. By default, Magento 2 comes with…

Continue Reading List of CLI Commands in Magento 2