Skip to content

magento man

Why is my post controller returning a 404?

I’ve created and enabled a module at app/code/Post/Test: app/code/Post/Test/registration.php: <?php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::MODULE, ‘Post_Test’, __DIR__ ); app/code/Post/Test/etc/module.xml: <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Module/etc/module.xsd”> <module name=”Post_Test” setup_version=”1.0.0″ /> </config> app/code/Post/Test/etc/frontend/routes.xml: <?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 id=”post_test” frontName=”posttest”> <module name=”Post_Test” /> </route> </router>… Read More »Why is my post controller returning a 404?

Translate “Add to Cart” button on Recently Viewed widget

I think “Add to Cart” button recently viewed is hard coded. Can anyone confirm this? I did find a guide about changing the words in app/design/frontend/VendorName/ThemeName/Magento_CatalogWidget/templates/product/widget/content/grid.phtml but the codes he is referring to does not match what i have.