Skip to main content

Questions tagged [router]

0 votes
1 answer
43 views

In Magento 2, I want to set custom route, like after baseurl/custom-route/any url it should be redirected to homepage or base url. Here, I had tried to create type of RouterList and extend ...
Aayushi Doshi's user avatar
0 votes
1 answer
59 views

I am redirecting 404 pages to the homepage, but the URL is not changing it's the same 404 page URL I want to change it to the homepage. My code : <?php namespace Vendor\Module\App\Router; class ...
Rana Zain's user avatar
  • 731
0 votes
1 answer
334 views

I have one online store with two store views, English and French. How can I add different routes per store view in a custom module on a Magento 2.4 store, following the attached example? EN: www....
Kloppo's user avatar
  • 95
1 vote
1 answer
143 views

I am working on a custom page module and want to make a custom route however I would like to use the catalog_category_view.xml layout, instead of the [module_name]_index_index.xml needed for my route ...
A. Andersen's user avatar
0 votes
2 answers
729 views

I want create controller for specific path, but i can't know how i can do this. My controller must work with path like: site.com/usa/some-review/dynamicParam My path for controller: site.com/some-...
David Young's user avatar
0 votes
2 answers
1k views

I am using magento2.3.5-p2 community edition ( open source ) I want to create a custom Controller so that I can post data using ajax to the Controller function created client side will call the ...
Mohd Farhan Bin Ramli's user avatar
0 votes
1 answer
1k views

So, as the title says, I want to add an Admin button in the Edit Product Admin page. That button, when pressed, will call the respective controller of a URL, sending along the product id, the ...
Noob Doob's user avatar
  • 127
0 votes
0 answers
55 views

i have an new module at app/code/MyVendor/MyModule and i try to understand structure of module magento2. I have some task of trainning list.I have an controller with execute() method echo sometext to ...
Huy Nguyễn's user avatar
0 votes
0 answers
122 views

I am trying to get the list of routers and followed this available module, but I am trying to get the router for every url that executed on the browser. In the code as shown below. foreach ($this->...
nix's user avatar
  • 129
0 votes
0 answers
36 views

I'm trying a page from a custom module, but the magento is showing me this message The URL you request is not accessible. This url is (usually) reachable, I made it over a year ago and didn't change ...
Morgan's user avatar
  • 935
0 votes
1 answer
291 views

I am using Magento 2 Magefan blog extension. The blog post URL is generated as below. http://store-url/blog/post/hurry-xmas-with-family But I want URL as below and it show the content of the above URL ...
Lokesh Naik's user avatar
0 votes
1 answer
633 views

i am creating custom tab for frontend customer dashboard. it works well but after click the custom tab, the error of the title occurs. nothing comes on debug log. this error occurs before the ...
grandan's user avatar
  • 39
0 votes
3 answers
2k views

I am new to Magento and I tried this tutorial where I will create a controller for Magento 2. https://www.mageplaza.com/magento-2-module-development/how-to-create-controllers-magento-2.html My problem ...
RainDV's user avatar
  • 1
1 vote
3 answers
664 views

I am facing an error while running command di:compile This is my block file <?php namespace Company\Module\Block; class Booking extends \Magento\Framework\View\Element\Template { /** * ...
Mr Zid's user avatar
  • 438
2 votes
1 answer
181 views

I have created a page using the CMS (via Admin Portal) and now I want to add a custom block (programmed) to the page. You can see the created page here: My structure is the following: but ...
Jackridder's user avatar

15 30 50 per page
1
2 3 4 5
8