Integrate an extra step in the checkout in Magento2

Sometimes we need to integrate or create a new step or tab in the checkout. We can able to achieve it through a custom Magento module. Create a layout file in the extension folderEx: vendor/Extension/view/frontend/layout/checkout_index_index On the layout file, sort order key is meant by the position of the tab in the checkout. Sort order… Continue reading Integrate an extra step in the checkout in Magento2

Published
Categorized as Magento

Payment Link

The Payment Link feature allows your customers to conveniently pay an invoice online, using a computer or mobile device. Instead of having to contact you and discuss payment, your customers can receive an email of the invoice with a link to the payment page. They can choose which method they want to use to pay,… Continue reading Payment Link

Issue when accessing values from script parameters

IssueWe can create script parameters for any suite-script in NetSuite using the “New Parameter” button in “Parameters” subtab during editing any script record. The values inside the script parameters can be accessed inside the script using their internal id. Also the values in parameters can be viewed through UI using the script deployment record of… Continue reading Issue when accessing values from script parameters

The context API

However, there are cases where props are not practical. Perhaps 2 components are so distant in the components tree that we’d have to move state up to the top-level component. In this case, another technique can be used called context API. It’s ideal when you want to let multiple components communicate with descendants, but you don’t want… Continue reading The context API

Svelte Props

You can import a Svelte component into any other component using the syntax import ComponentName from ‘componentPath’: The path is relative to the current component path. ./ means “this same folder”. You’d use ../ to go back one folder, and so on. Once you do so, you can use the newly imported component in the markup, like an HTML tag:… Continue reading Svelte Props

How to set timer for an disabled button tp be enabled using js.

Here first of all we need to open a <script> tag and add the folllowing code <script type=”text/x-magento-init”> { “#country”: { “regionUpdater”: { “optionalRegionAllowed”: <?= /* @noEscape */ $displayAll ? ‘true’ : ‘false’ ?>, “regionListId”: “#region_id”, “regionInputId”: “#region”, “postcodeId”: “#zip”, “form”: “#form-validate”, “regionJson”: {$regionJson}, “defaultRegion”: “{$regionId}”, “countriesWithOptionalZip”: {$countriesWithOptionalZip} } } } </script> Then you nee… Continue reading How to set timer for an disabled button tp be enabled using js.