Author: IntegerByte

Magento 2 get Helper function in XML

Create a dynamic link in the customer account. Here you make the dynamic link as per your logic. 1) Define helper class {vendor}\{Module}\Helper\Data in navigation link <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceBlock name=”customer_account_navigation”> <block class=”Magento\Customer\Block\Account\SortLinkInterface” name=”customer-account-navigation-new-product-link” after=”-“> <arguments> <argument name=”label” xsi:type=”string”>Some link</argument> <argument name=”path” xsi:type=”helper” helper=”{Vendor}\{Module}\Helper\Data::getLink”></argument> </arguments> </block> </referenceBlock> </body> </page> 2) Now create […]

You did not sign in correctly or your account is temporarily disabled In Magento 2

In Magento sometimes we face the issue “You did not sign in correctly or your account is temporarily disabled” when creating token using rest API. If you are calling rest API like  http://www.yoursite.com/all/V1/integration/admin/token and you are getting the error message. You need to clean the oauth token requests logs. To do so, is as simple […]

How to add custom select box in window.checkoutConfig on Checkout

Sometimes you need a custom variable add-in window.checkoutConfig dynamically and display on the checkout page according to requirement, follow steps to add custom select box in window.checkoutConfig on Checkout. Step 1 : Create di.xml file and add below code File : Vendor/Module/etc/frontend/di.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <type name=”Magento\Checkout\Model\DefaultConfigProvider”> <plugin name=”CustomCheckoutModelDefaultConfigProvider” type=”Vendor\Module\Plugin\Checkout\Model\DefaultConfigProvider” sortOrder=”100″/> </type> </config> […]

Back To Top