Author: Bibin Johnson
Search Optimisation in Magento 2
Here is the custom Builder Plugin to sort the Search results to get accurate results <?php namespace JJSearchCustomizationPluginModelAdapterIndex; use MagentoFrameworkAppObjectManager; use MagentoFrameworkAppRequestInterface; use MagentoElasticsearchModelAdapterIndexBuilder; class CustomBuilder { public function afterBuild(Builder $subject, $result) { // Use ObjectManager to get request safely in plugin context $request = ObjectManager::getInstance()->get(RequestInterface::class); $searchQuery = trim($request->getParam(‘q’) ?? ”); $inputLength = strlen($searchQuery); if… Continue reading Search Optimisation in Magento 2
Misdirected Request The client needs a new connection for this request as the requested host name does not match the Server Name Indication (SNI) in use for this connection.
Cause In recent Apache version, Apache team has released fixes for CVEs that affected Apache + nginx functionality: new changes do not allow Apache process requests from nginx without the server name (by default, nginx does not pass the server name through SNI when establishing a connection with a proxied HTTPS server). Plesk team is… Continue reading Misdirected Request The client needs a new connection for this request as the requested host name does not match the Server Name Indication (SNI) in use for this connection.
Data transfer in DBeaver
Supported formats ExportImportDatabase (table-to-table transfer)CSVCSVXLSX DbUnitXML HTMLTableJSONMarkdownSQLSource codeTXTXMLParquet XLSX Export data DBeaver allows you to export data from your database to various formats for use in other systems or applications. Info For more details, see Data Export. Depending on the selected format, exporting allows you to: Export query results or entire tables. Adjust data extraction, formatting, and encoding options. Set… Continue reading Data transfer in DBeaver
How to Build a Forum App with NextJs and Strapi CMS
Prerequisites Node.js installed Knowledge of NextJs To set up our Strapi back-end, we will first create a directory for our project: 1 mkdir forumapp This creates a folder for our project strapi-forum. Next, we move into this folder: 1 cd forumapp Then we install Strapi: npm create strapi-app forum-backend –quickstart The command above sets up… Continue reading How to Build a Forum App with NextJs and Strapi CMS
How to display custom checkout field value in Admin Sales Order?
Adding Template File sales_order_view.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” layout=”admin-2columns-left” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceBlock name=”order_info”> <block class=”LearningRewriteSalesBlockAdminhtmlOrderViewCustom” name=”sales_order_view_custom” template=”order/view/custom.phtml” /> </referenceBlock> </body> </page> Other Method Learning/RewriteSales/Block/Adminhtml/Order/View/Custom.php <?php namespace LearningRewriteSalesBlockAdminhtmlOrderView; class Custom extends MagentoBackendBlockTemplate { } Learning/RewriteSales/view/adminhtml/layout/sales_order_view.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” layout=”admin-2columns-left” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceBlock name=”order_info”> <block class=”LearningRewriteSalesBlockAdminhtmlOrderViewCustom” name=”sales_order_view_custom” template=”order/view/custom.phtml” /> </referenceBlock> </body> </page> Learning/RewriteSales/view/adminhtml/templates/order/view/custom.phtml <h1>Hi, I am… Continue reading How to display custom checkout field value in Admin Sales Order?
Jobs – Queuing a new job in payload
Jobs are stored in the Payload database in the payload-jobs collection, and you can decide to keep a running list of all jobs, or configure Payload to delete the job when it has been successfully executed. Queuing a new job In order to queue a job, you can use the payload.jobs.queue function. Here’s how you’d… Continue reading Jobs – Queuing a new job in payload
API Key Strategy for Authentication
To enable API keys on a collection, set the useAPIKey auth option to true. From there, a new interface will appear in the Admin Panel for each document within the collection that allows you to generate an API key for each user in the Collection. import type { CollectionConfig } from ‘payload’ export const ThirdPartyAccess:… Continue reading API Key Strategy for Authentication
Proposal for RMA-Based Web Application
The proposed web application will allow customers to easily manage their Return Merchandise Authorization (RMA) claims, track status, and interact with the claims process. Integration with a shopping site and NetSuite RMA flow will streamline the RMA process, making it more efficient for both customers and the administration. 2. Key Features Customer Authentication: Login via… Continue reading Proposal for RMA-Based Web Application
Best and Cost-Effective SMS & OTP Services
Twilio (SMS & OTP) Pricing: Twilio is a leading service provider for SMS and OTP validation. SMS cost: Typically around $0.0075 per SMS for the US, but rates vary based on country and volume. OTP: Twilio also offers two-factor authentication (2FA) services for OTPs with competitive pricing. Pros: Reliable, easy to use, and has extensive… Continue reading Best and Cost-Effective SMS & OTP Services