Linux – Quick notes

https://linuxize.com/post/create-a-linux-swap-file/#:~:text=Swap%20is%20a%20space%20on,partition%20or%20a%20swap%20file.

CategoriesUncategorized

Choose an event after making an order successfully

If you want to do something business right away a user placing an order, You can subscribe to an event checkout_submit_all_after. But If a user uses a Paypal Express, it does not help. For somewhat reason, a place order process of Paypal Express does not dispatch an event checkout_submit_all_after. So If you want to cover…

Customer data can’t be found in Local Storage of a browser

Link an issue: https://github.com/magento/magento2/issues/14912 I came across this issue on my customer website. I added a downloadable product ( which needs to be login to checkout), then I logged into, but when I clicked on the checkout button in cart sidebar, it gave me authentication popup. Due to customer data on Local Storage is not…

How to Magento-2 get a template file path

This way is how to Magento 2 find a template file path for a block. Example, a template defined in a layout file is FixBugs_Debug::panel/dashboard.pthml => Then a template file will be renderred is [Magento Root]/app/code/FixBugs/Debug/view/frontend/templates/panel/dashboard.phtml

Strict mode – Email Template

From Magento 2.3.4+, the Magento team added a new attribute for an email template, there is a strict mode or a legacy mode. If you add a new email template for sales objects (orders, invoices, shipments) from the backend, then it might not works property. Example order items grid is not shown in an email….

Số nguyên tố – Prime Integer

Số nguyên tố thì ai cũng biết rồi, rất đơn giản. Tuy nhiên trong lý thuyết cũng như ứng dụng của ngành mật mã, số nguyên tố có vai trò rất quan trọng. Sau đây, là một số bài toán/problems đơn giản trong toán học cũng như trong lập trình, có liên quan đến số…