1. Use of the F12 key on the browser: This can be blocked using a javascript key event listener. Use the below script to accomplish it. 2. Use of Right click You can block this using javascript or with just your HTML or 3. Use of other shortcuts involving Ctrl keys 4. By temporarily removing… Continue reading How to Disable Inspect Element of a Website?
Month: December 2022
How to Disable Right-click with JavaScript/jQuery
To disable right-click on your page, you need to add the oncontextmenu event and “return false” in the event handler. It will block all access to the context menu from the mouse right-click. Example Use the bind() jQuery function to disable the right-click feature. This method disables the right-click (context menu) feature on a text field and also alerts… Continue reading How to Disable Right-click with JavaScript/jQuery
How to Disable Copy, Cut, and Paste with JavaScript/jQuery.
You can allow text selection, but prevent copy and cut functions using the oncopy, oncut and onpaste event attributes. By adding these attributes to a textbox’s tag, you can disable cut, copy and paste features. The user is left with the option to enter the field manually with these attributes set. Example The same effect… Continue reading How to Disable Copy, Cut, and Paste with JavaScript/jQuery.
Increase and decrease the quantity
create the extension we can increase and decrease the quantity of the item in the cart or checkout by applying a data-actions Entry point: In tpl give the corresponding data action Example :<div class=”minus” id=”minus” data-action=”minus”>-</div> Reference:https://system.netsuite.com/help/helpcenter/en_US/APIs/SuiteCommerce/Extensibility/Frontend/Cart.html#addLine
Web Store Session
Max for webstore is 20 minshttps://386782-sb2.app.netsuite.com/app/help/helpcenter.nl?fid=section_1534882804.html It can be decreased from the Idle Session Timeout in Minutes setting:Setup > Company > Preferences > General Preferenceshttps://386782-sb2.app.netsuite.com/app/help/helpcenter.nl?fid=section_1534882691.html
Mobile Testing Overview
How to resolve ReferenceError:”Primordials is not defined” in gulp: local
To solve the issue, first we have to check the node.js and gulp.js versions. If you are using Node.js 12 and Gulp.js 3. That combination does not work….Either upgrade to Gulp.js 4 or downgrade to an earlier version of Node.js. Then try to find the version of nvm. If the installed nvm version is 12.21.0.… Continue reading How to resolve ReferenceError:”Primordials is not defined” in gulp: local
Review or Create a Discount Item
To review current Discount Item records: Log in to NetSuite ERP as an administrator. Go to Lists > Accounting > Items. Review the list for a Discount Item that meets your needs, such as Amount Off or Percent Off. If a Discount Item matching the discount type needed for your promotion does not exist, follow the… Continue reading Review or Create a Discount Item
Advantages of registerView() Instead of addChildView()?
The main benefit of the registerView() method is that it lets you separate the JavaScript for your Commerce website from your site’s templates. For example, if a developer creates a widget using addChildView() and writes the widget so that it renders on the home page, a designer can add the new widget to a home… Continue reading Advantages of registerView() Instead of addChildView()?
Solution for the issue ” Last Product added is hyperlink text which is not working”
Description Example : On the website on the the last product added ishyperlink text which is not working.When we click on the hyperlink it will directs to page not found. Solution Its because of in the URL the internal id showing as null as shown below First creating an extension .Extending the view file of… Continue reading Solution for the issue ” Last Product added is hyperlink text which is not working”