Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [paths]

Path is the way get the file from the root folder.

Filter by
Sorted by
Tagged with
1 vote
1 answer
512 views

URL Rewrite not working only for one specific path

I want to ask you for help regarding URL Rewrites. As you can see here I've added the URL rewrite for this path but in the sitemap.xml file there is still not updated it's an old (target path) so the ...
Kristijan Isajloski's user avatar
1 vote
1 answer
232 views

Is that possible to customize "files export path"?

System - Data Transfer - Export The files export is in /magento/var/export/. Can we custom this path? And if we can custom. How to?
GGame's user avatar
  • 46
0 votes
1 answer
1k views

How to add .less css files in custom theme magento 2

I want to add the custom.less file in my custom theme which i want to develop from scratch. so, anyone have an idea then please share with me.
Deep Shah's user avatar
  • 561
0 votes
1 answer
208 views

The value specified in the URL Key field would generate a URL that already exists in Magenot 2.4

I have migrated data from Magento 1.9 to Magento 2.4. All things is working well. But when in open any categories and open Product in Category tab -> then click on reset filter -> search a ...
Prits's user avatar
  • 625
0 votes
1 answer
224 views

How to include image path in script

My script : <script> require(['jquery'], function($){ jQuery.ajax({ url: '<?php echo $this->getUrl('customwishlist/index/wishlist') ?>', method: 'get', dataType: 'json', success: ...
zus's user avatar
  • 165
0 votes
2 answers
89 views

Template path hints are not displaying on front end, I tried in default and developer mode

Template hints are not displaying in both developer and default mode. I am using magento 2.3.5 p1
vinaysirige's user avatar
0 votes
1 answer
486 views

Link to logo within XML layout file

I'm getting 404 for my logo in my default.xml Existing code: <referenceBlock name="logo"> <arguments> <argument name="logo_src" xsi:type="...
Sam's user avatar
  • 163
0 votes
1 answer
338 views

How to get magento root file path in controller in Magento 2?

How to get magento root file path in controller in Magento 2 ? Like if my magento root file path is /var/www/html/magento in Controller file?
Prits's user avatar
  • 625
1 vote
1 answer
141 views

Store language by path gives 404

I'm trying to create an store language, and use a path on main domain to server that store. To do it I've already done all the nginx magic to made it select the correct store, but my problem is that ...
Daniel Carrasco's user avatar
0 votes
2 answers
3k views

image path for a phtml file

Hello I would like to add a image to a phtml file. however it didn't get use to the magento code to get the image path <img src="{{media url='/ca_flag.png'}}"/> Somehow the image address was ...
Paul Fan's user avatar
  • 658
0 votes
1 answer
70 views

Magento not displaying paths correctly for files

My server has just been updated and now on my site the file paths for css, js and everything is wrong: the path weirdly includes the document root, so the path looks like: https://www.example.co.uk/...
Vaishal Patel's user avatar
2 votes
0 answers
62 views

Magento 2: Use Categories Path for Product URLs is not working

I have two products having the same attributes as categories, attribute set, etc. And I have set Use Categories Path for Product URLs as NO but still, one product has the category in URL another don't ...
Bhakti Thakkar's user avatar
0 votes
1 answer
926 views

<?php echo $this->getChildHtml('order_totals') ?> finding path

<?php echo $this->getChildHtml('order_totals') ?> I am searching the path in server. but unable to find Please help me.
Pratibha's user avatar
1 vote
2 answers
165 views

How to modify the custom module URL?

I have created custom module i.e /stores/index/display. But I want to modify the /stores, How can I do that?
Parshuram's user avatar
0 votes
1 answer
1k views

magento 2 how to edit custom header in site which path i can edit

here is the code for custom header <div class="message global demo"> <div class="content"> <p>This is demo store. No orders will be fulfilled.</p> ...
prabhakaran7's user avatar
  • 1,087
0 votes
5 answers
5k views

Magento 2.2.5 can't find sitemap while it is generated

I'm struggling with an weird issue. I can't make any custom files / folders in my root of magento. I want to make a custom folder with some images, resulating in 404 errors when trying to reach the ...
Kees Janssen's user avatar
0 votes
1 answer
36 views

Magento Current Path

I want to show current menu path to users in Magento. it will good if I can show it under top menu. How i can show user the navigated path to current page?
mhheydarchi's user avatar
2 votes
1 answer
517 views

How to get to know the XML file and its path for that template Path Hint in Magento 2

As we can enable template path hints in settings along with blocks but there is no option to show from which xml file it is coming in the frontend. How should I know which xml file to write to move, ...
Manish Kumar's user avatar
0 votes
0 answers
1k views

TCPDF ERROR: Unable to create output file in Magento2

I am trying to get PDF Download able, I installed TCPDF library by this: composer require tecnickcom/tcpdf and created PDF Document as: // create new PDF document $pdf = new \TCPDF(...
Ajwad Syed's user avatar
  • 1,591
2 votes
2 answers
1k views

How to compose URL for AJAX in Adminhtml Magento 1.9

I'm inside the Admin area, I'm adding a check inside the products, inside my File phtml write: <?php $ajaxUrl = Mage::helper('adminhtml')->getUrl('adminhtml/MyCompany_MyModule_AjaxController/...
Orazio D'Arrigo's user avatar
0 votes
1 answer
182 views

Magento 2 What is the path component after rest /rest/<default|wholesale>/V1/...?

I have a multi-store setup, each store view has its own domain, and I just noticed on order-place Magento calls this API https://example.com/rest/wholesale/V1/carts/mine/payment-information and I ...
Mac A.'s user avatar
  • 280
0 votes
2 answers
76 views

How to include the Login.php in my custom template? — Magento 2.2

I am new to Magento, I am not yet familiar with how the paths are working. I am trying to override file Login.php the in the following path: vendor/magento/module-customer/Block/Form/Login.php I am ...
Bondsmith's user avatar
  • 179
28 votes
4 answers
54k views

How to get root directory path in a phtml magento 2?

$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $storeManager = $objectManager->get('\Magento\Store\Model\StoreManagerInterface'); $mediaPath = $fileSystem->...
Rita Jose's user avatar
  • 1,850
21 votes
5 answers
65k views

How to get media directory path in a phtml file in magento 2?

Used the below method in order to get the media directory path, but it returns an error. $om = \Magento\Core\Model\ObjectManager::getInstance(); $directoryList = $om->get(\Magento\App\Filesystem\...
Rita Jose's user avatar
  • 1,850
0 votes
2 answers
2k views

How Magento 2 converts the namespace path to actual file path?

I know in Magento 2.x versions the namespace is converted to actual file path to load classes runtime. For example, \Magento\Catalog\Model\Product is converted to path\to\webroot\magentorootdir\...
Vicky Dev's user avatar
  • 1,992
2 votes
1 answer
982 views

Controller redirect to wrong location in Magento 2

I have a controller where I created a redirect to checkout/#payment like this $resultRedirect = $this->resultRedirectFactory->create(); $resultRedirect->setPath('checkout/#payment'); ...
Alin Lupoiu's user avatar
  • 2,672
12 votes
2 answers
15k views

Magento 2 : Get pub/static File Path

I need to get the file PATH for an image in pub/static/[VENDOR_THEME] folder. Currently, I can do this by using a helper: public function __construct( \Magento\Framework\App\Helper\Context $...
minlare's user avatar
  • 695
8 votes
5 answers
21k views

Magento2 : get image path of product

I created custom page for getting products . I got all information but how to get full image path. I am using getImage() it is showing image only how to get full path. <a href="<?php ...
User0434's user avatar
  • 1,155
0 votes
1 answer
29 views

My Magento site on Macbook is not picking up .css and .js because paths are wrong, where can I set these paths?

I have pulled whole Magento web site from a git repository onto my Macbook. It looks like the css and js files don't have the right path, and site doesn't look good (site is now without any styles). ...
Vladimir Despotovic's user avatar
3 votes
1 answer
532 views

How to log 404 or undefined url's path information in magento?

I want to log all urls which redirects to 404, for this I extended Mage_Cms_IndexController's noRoute action, here I can log all urls by Mage::log(Mage::helper('core/url')->getCurrentUrl()); Now ...
Mansoor Khan's user avatar
2 votes
1 answer
353 views

How can i bulk ADD URL Rewrite Management

How can i add bulk URL Rewrite Management, i need to migrate new website, but i have already promoted my old site products, so, after i change new site, old site url return blank page, or empty page. ...
Gem's user avatar
  • 699
0 votes
1 answer
2k views

Magento theme redirects to wrong path for css files

I know this question gets asked A LOT on this forum, but I just cannot get the url to change. I'm working on a test-site to try out a new theme (fortis), and no matter what I do it tries to retrieve ...
trossn's user avatar
  • 11
1 vote
1 answer
78 views

Former Dev removed reviews, wishlist, send to friend

Is there something controlling reviews, wishlist and send to friend at a higher level than the admin control? A former dev removed the wishlist, reviews, send to a friend feature of the product page ...
Qozmiq's user avatar
  • 131
2 votes
1 answer
472 views

Change path url language

Currently my domain when switchable in English is www.mydomain.com/?___store=en&___from_store=it I wish it was www.mydomain.com/en How can I do?
yavonz15's user avatar
  • 417
0 votes
3 answers
1k views

How do I open a csv file in the root of my module directory?

I've been writing a rather complicated module as of late. One of the steps I need to do is pre-populate one of the models with all of the data it needs to work right. This data is slowly replaced ...
CarComp's user avatar
  • 1,246
5 votes
1 answer
354 views

Magento 2: What is the `component_paths` property in `magento/magento2-base`

In Magento 2, the magento/magento2-base package has the following component_paths section in its composer.json file. "extra": { "component_paths": { "trentrichardson/jquery-timepicker-...
Alana Storm's user avatar
  • 44.4k