Generating passwordGUID and hostkey for connecting external servers via suitelet

Solution var HTTPSMODULE, SFTPMODULE, SERVERWIDGETMODULE;var HOST_KEY_TOOL_URL = ‘https://ursuscode.com/tools/sshkeyscan.php?url=’;/** *@NApiVersion 2.x *@NScriptType Suitelet *@NModuleScope Public */define([“N/https”, “N/sftp”, “N/ui/serverWidget”], runSuitelet);//********************** MAIN FUNCTION **********************function runSuitelet(https, sftp, serverwidget){ HTTPSMODULE= https; SERVERWIDGETMODULE= serverwidget; SFTPMODULE= sftp; var returnObj = {}; returnObj.onRequest = execute; return returnObj;}function execute(context){ var method = context.request.method; var form = getFormTemplate(method); if (method == ‘GET’) { form =… Continue reading Generating passwordGUID and hostkey for connecting external servers via suitelet

How to Integrate Stripe Payment Gateway in Node.js

Install this package by using this commandnpm install stripeTo run the file you need to run the following commandnode index.jsYou need to include stripe module in your file by using these lines.var stripe = require(‘stripe’)(‘Your_Secret_Key’);To get your secret key, simply go to Stripe Offical Website and create an account, then you can get your secret… Continue reading How to Integrate Stripe Payment Gateway in Node.js

Stripe API integration in Svelte

1) Install the Stripe Node library npm install –save stripe 2) Load Stripe.js <script src=”https://js.stripe.com/v3/”></script> 3) Define the payment form <form id=”payment-form”> <div id=”card-element”> <!–Stripe.js injects the Card Element–> </div> <button id=”submit”> <div class=”spinner hidden” id=”spinner”></div> <span id=”button-text”>Pay now</span> </button> <p id=”card-error” role=”alert”></p> <p class=”result-message hidden”> Payment succeeded, see the result in your<a href=”” target=”_blank”>Stripe dashboard.</a> Refresh the… Continue reading Stripe API integration in Svelte

How to Change Default Logo of Admin in Magento 2

1) For that, You need to create app/design/adminhtml/Vendor/Theme/Magento_Backend/layout/admin_login.xml and paste the below code: <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” layout=”admin-login” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceBlock name=”logo”> <arguments> <argument name=”logo_image_src” xsi:type=”string”>images/admin-custom-logo.png</argument> </arguments> </referenceBlock> </body> </page> 2) Now, Make sure admin-custom-logo.png file available on app/design/adminhtml/Vendor/Theme/web/images/ this path.

Published
Categorized as Magento

Source Code Editing to Customize Advanced Templates

Referencing Fields  FreeMarker is commonly used to reference fields on transaction records Syntax:  ${record.fieldId} To print the field’s label, the syntax is:  ${record.fieldId@label} For example, ${record.entity@label}: ${record.entity}             Customer: Fabre Art Gallery Additional Information to Include on Templates  There are additional models that can be accessed on each template. These include, companyInformation (Company configuration information), … Continue reading Source Code Editing to Customize Advanced Templates

NetSuite – Shopify Integration

A Custom Connector can be created for the NetSuite – Shopify Integration using Suitescript 2.1. Shopify is an eCommerce platform that hosts your online store. It helps organize the layout of your store’s appearance through themes (which you’re free to modify or change any way you want). It also offers payment processing, which allows you to… Continue reading NetSuite – Shopify Integration