Loading image on Page Load

Sometimes, there faces page load lagging time after submission or reloading of the page. In this situation, it is better to use a page loading image, so that the user can understand what does exactly happening and also it increases the UX.

Expand-Collapse Function on click

We can expand or collapse a div by clicking a button by adding a class “show” <button type=”button” id=”button-id”>Expand-Collapse</button><div id=”content”>  <p>The content to display… </p></div> <script> $( ‘#button-id’ ).on( ‘click’, function(e){jQuery(‘#content’).toggleClass(‘show’);}); </script>

Error: Cannot find module ‘gulp-sass’

If we found this error while running gulp extension:local. Then do following step. 1)In the Command which is open as adminstrator run the command ‘npm install -g windows-build-tools’.2)Then uninstall the nvm setup and reinstall it 3)perform the commands of npm install .Then it will not show the error.

Disable Welcome Email after signup

When customer sign in need to disable the email notification send from the netsuite.For that create di.xml file Then create the plugin class EmailNotification { public function aroundNewAccount(\Magento\Customer\Model\EmailNotification $subject, \Closure $proceed) { return $subject; } } Through this we can disable the emails sent from magento when the customer is registered.

Published
Categorized as Magento

Converting Date to d/m/yyyy format

Scenario: Convert given date to the d/m/yyyy format Solution: You need to use the module ‘N/format‘ to convert the date to different formats. format.parse method can be use for this. It parses a value from the appropriate preference format to its raw value. The appropriate preference format is the one selected in the Date Format… Continue reading Converting Date to d/m/yyyy format

Filters using suitelet script

Problem: Create a suitelet script that loads a custom search US CASES – HOURS TO CLOSE search result in a given format for klipfolio and create filters for ‘created date condition’ also replace the same condition with that of UI by using splice() method. Solution load the custom search 2.Add the filters 3.Replace the condition… Continue reading Filters using suitelet script