DISPLAY A MYACCOUNT MENU TAB”CUSTOMER NOTIFICATION”

1)First of all creating an extension 2)Take the entry point file of the extension[JJ.extncheck.MyCoolModule.js] 3)In view file comment the unwanted module file[MyCoolModule.View.js] 4)Using command “gulp extension:local” and “gulp extension:deploy” 5)Activate the domain and the change will be present in the domain

Test Scenarios for the website footer section

Footer section The text is correctly displayed The elements in the footer are correctly aligned The social media icons are correctly displayed The used icons are fitting to the context Click on all the elements and verify if behavior is correct Upon clicking on the links, the correct page is opened Clicking “Subscribe arrow” without… Continue reading Test Scenarios for the website footer section

To check the product is saleable or not

In Magento, there is option to show the out of stock products. So that time we need to check whether the product is saleable or not for that, we need to check it for configurable and simple products if ($_product->getTypeId() != ‘configurable’) {$objectManager = \Magento\Framework\App\ObjectManager::getInstance();$StockState = $objectManager->get(‘\Magento\InventorySalesAdminUi\Model\GetSalableQuantityDataBySku’);$qty = $StockState->execute($_product->getSku());$isSaleable = $qty[0][‘qty’];} else {$isSaleable = $_product->isSaleable();}… Continue reading To check the product is saleable or not

Published
Categorized as Magento

Arrays in JavaScript

Arrays — lists of numbers, strings, booleans, or any other data type. Array access — each item in the array can be accessed by its numeric index. JavaScript arrays are zero-indexed. This means that the first item in an array is at position 0. var products = [‘soccer ball’, ‘cleats’, ‘socks’, ‘shorts’]; console.log(products[0]); // ‘soccer ball’… Continue reading Arrays in JavaScript

Creating a Payment Method

To create a payment method follow the below steps. 1.Go to Setup > Accounting > Setup Tasks > Accounting Lists > New , then select the Payment Method Type from the drop-down list in the Filters section, and then click New. 2.Enter a name for the payment method in the Name field 3.Select the Type of the Payment Method from the drop-down list 4.Check the Display in… Continue reading Creating a Payment Method

Conditional Statements in JavaScript

“If condition A is true, let’s follow a set of instructions, otherwise, if it is false, let’s do something else.” Now, let’s consider a conditional statement that actually does something: var inNortherHemisphere = true; var latitude = 40.7; if (latitude > 30 && inNorthernHemisphere) { console.log(“It’s cold in December!”); } else { console.log(“It’s not cold… Continue reading Conditional Statements in JavaScript

Manage Intercompany Sales orders

Generating Intercompany Sales Orders Go to Transactions > Sales > Manage Intercompany Sales Orders Before generating Intercompany Sales orders we need to create an intercompany Purchase Order Select a customer and a currency  Intercompany Purchase order list will be displayed and select a purchase order from the list which we needs to create sales orders Click… Continue reading Manage Intercompany Sales orders

Custom Category Field

We can create a new category fields as a part of customizations, follow the steps to create a new custom category field Create a new record in Other Records Customization >> Lists, Records, & Fields >> Other Record Fields >> new A new page will open , select the Record type as Commerce Category Add… Continue reading Custom Category Field