All Questions
8 questions
2
votes
3
answers
4k
views
Create custom route in Custom module magento 2
How to create a custom route in Magento 2
http://127.0.0.1/magento8/trails/post/view/id/13
module:- trails
folder :-post
controller :- view
argument :-id/13
I want to http://127.0.0.1/magento8/...
1
vote
2
answers
928
views
magento 2 - custom router throws Front controller reached 100 router match iterations error
I am trying to build a module that has a custom front-end router on magento 2.1.12. I am following magento doc & I am using the inchoo custom router example.
The problem is the route (MY-SITE/...
0
votes
1
answer
2k
views
Magento 2 - How to call custom (Self Created) module in home page?
I have created a custom module with view using (Block, Layouts and Templates), its working fine with the url(http://hostname/modulename/index/test) but need to call it in home page. I mean when home ...
0
votes
3
answers
2k
views
How can I set data from controller to .phtml file in magento
I have created a custom module and there are some drop downs in it. I have done all the things in .phtml file as pure php.
How can I change that to correct way code in my .phtml file:
<?php
$...
0
votes
0
answers
29
views
Custom Module overlaps magento default theme
I have a Sliding contact us module.This module overlaps with the navigation menu of default magento luma theme. How do i fix this issue?
1
vote
2
answers
614
views
Magento 2 add custom link to username dropdown
can anyone tell me how to create a custom link ("MY VEHICLE") in the dropdown from username of a logged in user. I am a beginner and have no idea where to start, any help is greatly ...
1
vote
0
answers
489
views
magento 2.1 grid on custom tab of admin product edit page
I am trying to create a grid that should be shown on clicking a custom tab of admin catalog edit page.
1. Created catalog_product_new.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
1
answer
2k
views
Magento 2: How to programatically check if an order exists without using try-catch?
I am looking at the implementation of \Magento\Sales\Api\OrderRepositoryInterface
on https://github.com/magento/magento2/blob/eacac63d35b97961e3304dc007cd6b78519a93d0/app/code/Magento/Sales/Model/...