I am trying to create a module that replaces the default /checkout/cart page. I have created app/code/NewShop/Cart module and it just displays a text now.


<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
  <router id="standard">
    <route frontName="checkout/cart" id="cart">
      <module name="NewShop_Cart"/>

I compiled it and when I go to /checkout/cart it still shows the default Magento cart page. How can I override that?

  • What are you trying to achive? – Amit Bera Sep 4 '19 at 9:07
  • Eventually I want to rewrite the cart page. It's a project with a heavily customized cart system. – Kibret Sep 4 '19 at 15:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.