phtml Archives - Magesan

Tag: phtml

Invalid template file: ‘Vendor_Module::info/default.phtml’

Invalid template file: ‘Vendor_Module::info/default.phtml’  in module: ‘Vendor_Module’ block’s name: ‘info_0’ If you are facing this issue then the issue is with your payment method. You need to check what payment has been set for a particular order or invoice. In my case I was also facing the same error and after scratching my mind for

How to write jquery in phtml file in magento 2

We need to write jquery sometimes in phtml file for special requirement. For that you need to define jquery in require function in script tag for using jquery within phtml file.Put below script in phtml file and replace console.log with your custom code.