Skip to main content
8 events
when toggle format what by license comment
Apr 15, 2020 at 16:53 vote accept David montera
Apr 16, 2020 at 17:39
Apr 15, 2020 at 11:29 vote accept David montera
Apr 15, 2020 at 13:24
Apr 14, 2020 at 16:51 comment added David montera i have updated my question with some codes please check
Apr 14, 2020 at 16:45 comment added Pratik Navapara Yes, you can definitely create such methods inside your block file like "getCustomerFirstname()" and "getCustomerLastname()". Then you can access those like "$block-getCustomerFirstname()" and can merge both values in your respective phtml file.
Apr 14, 2020 at 15:35 comment added David montera There is a way to retrieve the data from the database inside the block in a function and return it to phtml file?
Apr 14, 2020 at 15:06 comment added Pratik Navapara I believe that reservation concept does not available in default magento. Hence, this should your custom or any third party extension code. In such case, you will have to look for the object methods which you can access in phtml or any other fie in which you need customer name. Fo that you can check with "get_class_methods($reservation)" method and you will able to know which data you can get from this object. If your required data is not available in this object then you will have to find some alternative way. I can help you further if you can post some more code of your module.
Apr 14, 2020 at 14:58 comment added David montera Yeah i understand , but how can i retrieve the data from customer entity inside a function in the block
Apr 14, 2020 at 14:54 history answered Pratik Navapara CC BY-SA 4.0