• Magento2 get cart and checkout link in block or phtml
    Magento 2

    Magento2 get cart and checkout link in block or phtml

    Magento2 get cart and checkout link in block or phtml In Magento2 get cart and checkout link in block or phtml then you need to call getUrl() method.It is every easy to get those url at Phtml or block class. Also, there is no need to write layout xml code for getting cart and checkout page url at magento 2. If want to get cart & checkout link at PHTML file then try below code: Checkout Url [crayon-5c17fdddc47cb496118031/] Cart Url [crayon-5c17fdddc47d2055024481/]   If you want to call at block class try with Checkout link: [crayon-5c17fdddc47d5236939069/]   and Cart link: [crayon-5c17fdddc47d7812037597/] I hope this will help lots. More Import Blogs: Magento2…