-
Magento2 add a cms page link to menu
Magento2 add a cms page link to menu or add a link to the menu, Magento2 add a cms page link to the menu. If you are store owner/ developer then sometimes, you want to add a cms page link to menu of your Magento 2 store. Magento 2 does not provide any feature like add a Cms page to your existing menu. At default Magento, you can only add the categories to its menu. So, today I am writing this blog for how you add a cms page link to the menu. For this, you need some coding also. If you do not want to wish to do any…
-
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 <?php echo $block->getUrl('checkout', ['_secure' => true]);?> Cart Url <?php echo $block->getUrl('checkout/cart', ['_secure' => true]);?> If you want to call at block class try with Checkout link: $this->getUrl('checkout', ['_secure' => true]); and…