Magento Archive

Customize Email Template in Magento 2

Email templates are used in email massage for interactive viewer’s sight. Email Templates are sent from system when user or customer’s activities like register to website, creating order from E commerce website like Magento. In Magento 2, the format of email templates is HTML and CSS based. So it is easy to customize email templates

Create invoice programmatically in Magento 2

In this tutorial we will learn step by step to create invoice programmatically in Magento 2. Invoice in Magento 2 is very comprehensive for merchants. In Magento 2, invoice can be created from admin. When you place an order in Magento 2 e-commerce website then there is two scenarios of create invoice in Magento 2.

Create shipment programmatically in Magento2

The below code script will create order shipment programmatically after placing order. This is useful if you want to automate the shipment process. You can achieve this by calling order success event.   [php] <?php namespace Vendor\Module\Controller; class OrderShipment extends Magento\Framework\App\Action\Action{ /** * @var \Magento\Framework\App\ObjectManager */ protected $_objectManager; public function __construct( \Magento\Framework\App\Action\Context $context, \Magento\Framework\App\ObjectManager ) { $this->_objectManager

Set custom price of product before adding it to cart in Magento 2

This post will demonstrate that how Set custom price of product before adding it to cart in Magento 2. First of all you need to create events.xml file in Vendor\Module\etc\frontend\ path. In events.xml file you have to call “checkout_cart_product_add_after” event to perform any action after product added to cart. [php] <?xml version=”1.0″?> <config xmlns:xsi=”; xsi:noNamespaceSchemaLocation=”urn:magento:framework:Event/etc/events.xsd”>

Create order programmatically in Magento 2

Create order programmatically in Magento 2 In this article, we will learn to create order programmatically in Magento 2 step by step. Magento 2 is very fexible and provide easy way to customize and override functionality. Magento 2 is very fast growing e-commerce platform. As internet is reaching to more people, in the same proportion