If you have a tawk configured site and its script it can be added to the magento backend . Careful about the script src number given from the tawk website. For reference: Paste this code in CONTENT>CONFIGRATION>EDIT THEME> FOOTER> Miscellaneous HTML Same thing is used for all scripts to view chatbot in the page.
Author: Bibin Johnson
Overriding Third party module in magneto 2
If we want to override a 3rd party module other than magento’s default. We need to create a di.xml with the same folder layout in the code folder. Try out the code in the di.xml And in the php file just map the location as per the code folder structure Here, [Vendor] and [Module] is… Continue reading Overriding Third party module in magneto 2
How to add My Order link in My Account dropdown?
for adding a new or existing link in the home page dropdown menu after logged in. Add default.xml in app/design/frontend/your-theme-namespace/yourtheme/Magento_Sales/layout with following content under the body tag: Other unwanted links can be also removed by adding remove=”true” in the defaul.xml page
Adding Breadcrumbs to Magento My account Page.
for adding breadcrumbs to each page , each page needs an action for the link. here is an example adding breadcrumbs to customer account pages sign in and sign up pages. For that we have to add the code into customer_account_create.xml inside Magento_Customer module it can also added using an external module : https://github.com/karliuka/m2.Breadcrumbs Refer… Continue reading Adding Breadcrumbs to Magento My account Page.
Adding Stripe and Eway Payment method to magento 2
You will need a Magento Marketplace account, you can then link the account to your Magento 2 store and add the free eWAY and Stripe Magento 2 extension to your account. After that we use composer to install both these modules. In the Magento 2 directory, run the command (note, please ensure you are using… Continue reading Adding Stripe and Eway Payment method to magento 2
Adding css to a new overridden module in the design folder
Create a web folder inside the module folder and create the css file inside the folder like Vendor_Module/web/css. After that link the css in the layout file of the current module it may be in the default.xml or name_index_index.xml file. the following code will be pasted in the head area of the xml file
Add custom link to my account menu
First of all we will need to find out they responsible layout and block for the navigation menu. The layout is the customer_account.xml and the block is the customer_account_navigation. STEP – 1 Simply create a customer_account.xml file under your theme directory /app/design/frontend/VENDOR/THEME/Magento_Customer/layout/ and add the following code. after this create a route customer index Step – 2 createa index.php at… Continue reading Add custom link to my account menu
How to create a blog in Magento 2?
Blog is a great thing to implement on your Magento 2 website. It helps you to create a source of traffic and a free place to promote your store.By creating a blog on Magento 2 you build trust and improve customers’ experience on your website. Magento doesn’t have the blog feature by default. So you need… Continue reading How to create a blog in Magento 2?
Adding Captcha to site via Amasty module
General Settings To get the access to the ‘Invisible Captcha’ settings, please go to Stores → Configuration → Amasty extensions → Google Invisible Captcha and expand the General Settings section. We have to generate scre key and site for every domains, we must fill a form to get those keys. Site Key and Secret Key – enter the values of both keys… Continue reading Adding Captcha to site via Amasty module
How to create a custom block in Magento 2
1. Add a new PHP class block. Create the file in the following location: and add the following code to it: \Magento\Framework\View\Element\Template — a class from which you inherit your own block that interacts with the template. 2. Add a template file (template .phtml file) Create this file: 3. Combine the PHP class block and the… Continue reading How to create a custom block in Magento 2