Magento 2 search suite to improve your sales

Magento 2 search suite
Magento 2 Search suite In order to improve the sales in ecommerce it deals with how fast we are handling our customers to get the required product. Statistics shows the most customers preferring the search box to get the product rather than navigating from header layout menu. So it is important to have Search box in all pages. Hence most ecommerce frameworks preferring the search box in header position. I hope everyone agree with my point, whatever people search we have to show something ins...
More

Magento 2 admin recreate cart

Magento 2 admin recreate cart
To restore quote or magento 2 admin recreate cart pro-grammatically we need to use admin session model, frontend magento checkout model will not be useful here. The sample code was given below, Model In custom model file use magento admin session and set the following above attributes, which will recreate the existing quote again in admin order.
More

Magento 2 get currency symbol by code

Magento 2 get currency symbol using code can be we do from Magento currency Interface. In default, magento will give all currency from configuring admin. To set the configuration see here.In frontend all the allowed currencies are displayed. So we can get the current currency code directly from store manager.To get the current currency code click here. While doing custom functionalities, we need to get the currency symbol of the code. I have seen lot of articles like here using object manager ...
More

Magento 2 custom csv export

Know Magento 2 export csv before Magento 2 custom csv export Magento 2 core modules admin grid provide csv export from the existing grid structure. To know more about admin grid in custom module click here. In some cases, you need the custom fields of order,customer or product to export as csv file. In order to do this Magento 2 custom csv export from your custom module you need to follow the magento 2 coding standard. The below coding snippets helps you. This code will export the order data i...
More

Fatal error: Class IntlDateFormatter not found in AbstractFactory

In wamp server if you get this error while installing magento 2. You have to do two things to fix this issue. i) Enable php_intl module at php extension in wamp server. See the above image for your reference. ii) Copy the files from the /bin/php/php5.5.12 to /bin/apache/apache2.4.9/bin icudt36.dll icuin36.dll icuio36.dll icule36.dll iculx36.dll icutu36.dll icuuc36.dll Start learning magento 2 by clicking here.
More

Magento 2 admin grid custom module

Magento 2 admin grid
Magento 2 admin grid custom module fully deals with the admin part work in magento 2 admin module development. Before moving to this article, you should be aware of the basics of module creation in Magento 2. To learn about the full module creation click here. The first step of the article is to have menu, yes we need to define the menu before moving to grid page. Create a new file menu.xml in the directory app/code/Explorer/Test/etc/adminhtml/. Menu in Magento 2 admin grid To do magento 2 a...
More

Magento2 code snippets

Magento2 code snippets
This articles gives some useful Magento2 code snippets. To know more about magento2 click here. Order state update To update the order state and and status pro-grammatically in order define the status and state in this format. Initiate order object in the construct function and use that order object in the custom function to update it. Exception handling To use try catch exception in code, extend the exception class with use. Get post value and set jsonresponse in contro...
More

custom payment method Magento 2

magento 2 custom payment method
In this article we explain about creating new custom payment method in magento 2 from the new custom module. The payment module details are Namespace - Explorer Module - Payment Payment - Testpay To register the module in magento 2 use registration.php and module.xml file with having the module name there. To know more about the module creation click here. registration.php To register the module create registration.php file in the module. module.xml system.xml Every paymen...
More

Magento 2 setup script

Magento 2 setup script
Magento 2 Setup script is a installer script to create a database table from the module. However this is already known from magento 1.x the coding structure vary in the magento 2.x. In magento 1.x these sql scripts are written in mysql4-install-{module version number}.php. In magento 2 these sql code should be come under the Installschema class. Before moving to setup script you should be aware of the basic module development structure click here.For module development click here.Create a direct...
More

Magento2 theme integration

Magento2 theme integration
Theme integration is the necessary to learn first in magento2. After magento installation,to create or customize any page in website you need to work on theme files only. Magento2 theme integration have various difference comparing to magento 1. The first step of theme integration create the vendor directory and theme name directory. For example for your reference, lets have the vendor name as 'Explorer' and theme name as 'test'. The below things are the steps for magento 2 theme structure. ...
More