How to Load Contents from A Custom Phtml File for Magento 2.4?

First, we create the .phtml file, say footer_menu.phtml, and place it under add/design/Young/goggles/Magento_Theme/templates/. Add the following code: Next, edit default.xml, which is under add/design/Young/goggles/Magento_Theme/layout/. Add the following code to a proper place. Run bin/magento c:f Besides the basic html code we can add in a .phtml file, we also can add php code, say: We… Continue reading How to Load Contents from A Custom Phtml File for Magento 2.4?

Published
Categorized as PHP

How to Renew SSL Certificate on Magento 2 / NGINX?

I have installed lnmp (Linux, Nginx, MySQL, and PHP) environments for www.cheapglasses.net. I use the free SSL Certificate – Let’s Encrypt. By default, LNMP will renew Let’s Encrypt automatically. Today, I found https://www.cheapglasses.net not working, and I found Let’s Encrypt failed to be renewed automatically. I googled “Magento 2 let’s encrypt auto renew failed” and… Continue reading How to Renew SSL Certificate on Magento 2 / NGINX?

How to Allow or Disallow A Customer to Access Customer Area of Magento

If you use Nginx, and Linux systems for your web hosting, modify nginx.conf, and add the following code to the proper place. If you use Apache and Linux systems for your web hosting, Create a folder named “customers” under your Magento 2.4 based shop, under the newly added folder, create a file named .htaccess, and… Continue reading How to Allow or Disallow A Customer to Access Customer Area of Magento