PHP Coding Standards Result Verified whether the script followed the PSR-2 coding standard Verified whether the file should start with <?php tag and end with ?> tag Verified whether file should contain declare(strict_types=1); statement Verified whether all files must contain a header stating namespace and licensing information Verified whether the copyright header… Continue reading Template for PHP Coding Standard
Month: May 2023
Resolve TypeError: Cannot read property ‘application_manifest’ of undefined at Object.getCompilationTasks (‘Folder path’) while running the gulp command.
This error as shown in the screenshot below, may occur while we run the gulp command. This error can be resolved by replacing the gulp folder in the extension/theme folder with the gulp folder in the extension/theme development tools respectively.
Magento 2: How to save form data to sales_order_item table from .phtml file of adminhtml in magento 2?
This can be done with a ajax controller[Vendor]/[module]/view/adminhtml/templates/order/view/tab/info.phtml [Vendor]/[module]/Controller/Adminhtml/Test/Save.phpon the controller [Vendor]/[module]/view/adminhtml/layout/routes.xml [Vendor]/[module]/view/adminhtml/layout/sales_order_view.xml
Human Resource Planning
Human Resource Planning (HRP) is the process of analyzing an organization’s human resource needs and developing strategies to meet those needs. It involves forecasting an organization’s future workforce needs and identifying the necessary skills, knowledge, and abilities required to achieve its strategic objectives. The HRP process typically begins by analyzing the organization’s current workforce, including… Continue reading Human Resource Planning
Method to Show Address Fields in Registration Form in Magento 2
To show the address fields in the registration form Add below code in your customer_account_create.xml file This will the address fields on the registration form
Magento 2 Pre-order and Backorder
A pre-order is used for the products that haven’t been released yet. A backorder option is available for items that are out-of-stock, but have been in stock lately. Magento doesn’t have a pre-order feature by default. So to make it work on your website, you need either an extension for that or a customization. To… Continue reading Magento 2 Pre-order and Backorder
Backorder Functionality-Magento
Backorders in Magento 2 Backorders functionality is supported by Magento 2 out-of-the-box. Go to Stores – Configuration – Catalog – Inventory – Product Stock Options tab. In the ‘Backorders’ section select the necessary option: No backorders disables backorders in your store; Allow Qty Below 0 shows the product as In Stock even when the product reaches qty = 0;… Continue reading Backorder Functionality-Magento
Add Custom developments to add to cart
This is based on the event happening before adding a product to the cart. Using this event we may modify the qty and price of the product if the requirements are pointed out. This can be achieved with a help of a module Create a module with etc/frontend/di.xml After that create an observer to modify… Continue reading Add Custom developments to add to cart
How to use Sequelize in Node.js
Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server. Installation of Sequelize we have to install to Sequelize module install this module by using the following command. npm install sequelize Requiring module You need to include Sequelize module in your project by using these lines. const Sequelize = require(‘sequelize’);
Prototype Testing
Prototype testing refers to a type of testing that is performed on an early version or a model of a software system, known as a prototype. The purpose of prototype testing is to identify and address potential design flaws or functionality issues in the system before it is developed further or released to end-users. Prototype… Continue reading Prototype Testing