Method to add custom JS validation rule in Magento 2

Add requirejs-config.js file to the following location: app/code/[Vendor]/[Module]/view/frontend/requirejs-config.js Copy file vendor/magento/module-ui/view/base/web/js/lib/validation/rules.js to app/code/[Vendor]/[Module]/view/frontend/web/js/lib/validation/rules.js Where you can add the custom validation code as following: That’s it. Overriding the inbuilt JS also done in the same,if you are using a custom , create a folder with the same naming pattern in the vendor folder structure and paste… Continue reading Method to add custom JS validation rule in Magento 2

Permission issue while enabling the feature “payment instruments”

While enabling the feature “payment instruments” getting an error message as “not allowed”.So that user is not able to get into the checkout and myaccount pages. Solution: Go to setup ->Users/Roles ->Manage roles kindly add the following and set the level to “Full” for the customer center role. : Payment Card Payment Instrument Payment Card… Continue reading Permission issue while enabling the feature “payment instruments”

Scroll To Top In Magento 2

When a visitor scrolls the web page down It is convenient to display a button that will allow easy, by a one-click move customer back to the top of the page To enable such a button on our website. 1. Create a default.xml layout file in your theme directory: /app/design/frontend/ThemeVendor/ThemeName/Magento_Theme/layout/default.xml 2. Paste the XML code: <?xml version=”1.0″?> <page… Continue reading Scroll To Top In Magento 2

Published
Categorized as Magento

No Bins are available in the Assembly Build Helper

When creating an Item Receipt for purchase orders, if the item is using the ‘Bin’ feature, i.e., If you choose to use bins for this item, you must associate at least one bin with the item using the Bin Numbers subtab. For that, you must perform Inventory Detail for that item. And in the Assembly… Continue reading No Bins are available in the Assembly Build Helper