Here is the code to provide the sorting method of getting the files to be copied from a folder to another folder based on the required list of names #!/bin/bash CSV_FILE=”{CSV_File}.csv” SOURCE_DIR=”{Source_location}P” DEST_DIR=”{destination_location}” # Create destination directory if not exists mkdir -p “$DEST_DIR” # normalize: trim, remove CR, remove all spaces, lowercase normalize() { … Continue reading Method to Scan a Copy Files from a Folder Another Folder with a CSV File
Author: Bibin Johnson
Sh Code to Convert Files from JPG to WEPB in bulk from a folder
Firstly Need to Install webp Extension on the linux or operating system #!/bin/bash # Usage: ./jpg-to-webp-folder.sh /path/to/input /path/to/output INPUT_DIR=”{location}” OUTPUT_DIR=”{location}” # Check inputs if [ -z “$INPUT_DIR” ] || [ -z “$OUTPUT_DIR” ]; then echo “Usage: $0 <input_folder> <output_folder>” exit 1 fi # Create output folder if it doesn’t exist mkdir… Continue reading Sh Code to Convert Files from JPG to WEPB in bulk from a folder
Best practices of integration from Net Suite using web application
Best practices for integrating NetSuite with web applications built using Next.js or Vue.js for product sync and order sync involve using NetSuite’s REST API or RESTlets for scalability and flexibility. Key best practices include secure authentication, choosing the right integration method, handling schema changes, monitoring sync processes, and ensuring data accuracy in real time. Integration… Continue reading Best practices of integration from Net Suite using web application
Vendor Portal Data Schema – For PO Edit
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