Add menu in Dashboard customer_account.xml in this route_nam_controller_name_action_name.xml layout file call this phtml file ADD this HTML to your .phml file which one used for file upload now user select file and upload here and when user submits button click then ACTION PATH controller call.put this code into your this controller file.
Tag: MAgento 2.3
SQL Issue on the server
Job for mysqld.service failed See “systemctl status mysqld.service” This message came after deploying the mysql service and we will not be able to run the service. use the terminal to route to the following commands This will resolve the issues on the server and will be able to run the MySQL services on the local… Continue reading SQL Issue on the server
Add Custom Currency to Magento 2
As we all know Magento 2 does not support CryptoCurrency yet, so here we are going to learn how we can add a new currency. The very first step to start with is to modify your module’s registration.php file Here is the code for the CurrencyBundle.php file, keep this fine in app/code/Vendor/Module/Override/CurrencyBundle.php Now we will… Continue reading Add Custom Currency to Magento 2
Call Phtml file on CMS Page – Magento2
We can create a layout file on the frontend using the block or pages from magetno admin panel here the trick used to create that. all phtml using block code login to magento admin. Open any cms page and write block code in content section. Here we called an external phtml file to a page… Continue reading Call Phtml file on CMS Page – Magento2
Magento 2: How to save form data to sales_order_item table from .phtml file of adminhtml in magento 2?
This can be done with a ajax controller[Vendor]/[module]/view/adminhtml/templates/order/view/tab/info.phtml [Vendor]/[module]/Controller/Adminhtml/Test/Save.phpon the controller [Vendor]/[module]/view/adminhtml/layout/routes.xml [Vendor]/[module]/view/adminhtml/layout/sales_order_view.xml