Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [directory]

The tag has no usage guidance.

0
votes
0answers
33 views

How to create custom module after installing Magento 2 Docker Image?

I have installed Magento docker Image and frontend, backend is working fine. The directory structure of Magento docker Image installed is: Now I am looking how to start my first module. I have these ...
0
votes
1answer
13 views

Error related to Framework in Magento 2 SSH CLI

I'm currently running a Magento 2 (2.2.7) site and I've been getting the following error in the CLI when I enter certain commands (usually to do with enabling/disabling modules). The directory "/...
0
votes
1answer
33 views

Why does this require “..path” is returning a fatal error (PHP)?

my question is simple but I have not found a form to solve it. I am trying to include a library located on the magento's module which I am developing. $simple_excel_path = Mage::getBaseDir('code')."/...
4
votes
2answers
348 views

How to get the image directory

I need to get image directory means full path. I get the image path from the following code $product = $this->productmodel->load($orderItem->getProductId()); $product->getThumbnail(); I ...
0
votes
3answers
301 views

RuntimeException: Can't create directory

my website https://roofmegastore.co.uk/ is coming up with this error. 1 exception(s): Exception #0 (Magento\Framework\Exception\FileSystemException): Directory "/var/www/html/magento/pub/static/...
0
votes
1answer
36 views

Magento 2 Custom module installation time create media directory

I want to create media directory with 777 recursive permission on custom module installation time, So I have created createDirectory function in InstallSchema. But currently directory is created with ...
3
votes
0answers
268 views

Magento2, add custom module files to pub/media directory [closed]

If we include files in our Magento2 custom module, that should be added to the pub/media directory...how do we go about ensuring they are added? Ive created the required media dir sub-directory via ...
1
vote
2answers
659 views

Updating country name in magento 2

I need to change the name of country in magento store e.g. United Kingdom needs to be changed to Great Britain. How can I achieve this? I tried looking at the following tables ...
1
vote
1answer
27 views

How to delete folder after the order ends

Im new in Magento, I need to delete a file and its containing folder, which has a name generated by the following code: $order = Mage::getModel('sales/order')->load($id_order); $increment = $order-...
2
votes
3answers
457 views

Check if Magento 2 is using pub directory

How can we check if the website is using pub directory or not, independent of its mode? Is there any Magento function present to check the root document?
0
votes
1answer
115 views

Magento Localhost var directory XAMPP

Facing the following error in my 'magento localhost'. Tried creating a 'tmp' folder in the 'root directory' but is not working. Maybe I'm creating it in the wrong directory? Thanks
4
votes
4answers
5k views

Magento 2 : How to get Custom module's 'web' directory path/Get custom module image directory path

I have created a custom module in which I want to check if a (image)file exists in my view/frontend/web/images folder. I have checked this answer but in only shows how to get Magento's directory ...
15
votes
4answers
19k 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->...
11
votes
4answers
22k 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\...
0
votes
1answer
619 views

In Magento 2.2 I got this open_basedir restriction in effect error

From composer.json Am I using the wrong version of Magento. and i am using PHP Version 7.0.15-0ubuntu0.16.04.4 Note: I'm trying to install a theme in it and this work fine on localhost but on ...
0
votes
1answer
649 views

How to move test store to new directory or domain? [duplicate]

I am messing around with a test store so I can get my settings right and theme adjusted. My plan is to move from Bigcommerce to Magento 2.0, so I want to have it all ready to go before I move and "...
2
votes
1answer
1k views

Where are pages and blocks created in the admin section stored?

I have created blocks in the Magento Admin GUI as well as in the frontend/.../templates directory. Both have been tested and they work fine. My question are: Where do the blocks and pages that ...
2
votes
0answers
132 views

Magento 2 : How can I add an extra path to the DirectoryList

I want to be able to make Magento aware of an extra folder in my root called private_files. I thought I could do this by adding the following to my di.xml: <!-- Make Magento aware of an extra ...
0
votes
2answers
62 views

On click show/hide contents for brands list

I would like my brand directory to have a click event. So if a visitor clicks 'A' for example, all brands within A are shown. I have the below code which collates the brands - however, the script I am ...
4
votes
2answers
4k views

How to get Country ID from Country Name in Magento1.9.2.4?

I want to get country_id from the country name in Magento, Please suggest how can I achieve this. I found these database tables but they are not helpful: directory_country directory_country_region ...
1
vote
1answer
698 views

Does Magento 2 has a Fallback Directory as /tmp/magento?

I know that in Magento 1 the directory "/tmp/magento" was used as fall-back in case it existed. I would like to know if that is still the case in Magento 2.
2
votes
1answer
930 views

Why is my 'magento' directory missing from lib/internal?

Apologies if this is a duplicate, not appropriate, etc. I have just installed Magento 2.0.0 and a lot of the documentation I am reading/watching mentions a 'magento' directory in lib/internal, but I ...
2
votes
0answers
3k views

Edit magento 2 order 'print' layout

So when u go to My Account -> My Orders and click on view order and then click Print Order then u see a PDF of the order that u just placed. Mine looks all messy : So I want to edit this. Does ...
0
votes
2answers
2k views

How to save the PDF file into Magento root folder

$pdf = Mage::getModel('sales/order_pdf_invoice')->getPdf($invoicesSet); $this->_prepareDownloadResponse('invoice'.Mage::getSingleton('core/date')->date('Y-m-d_H-i-s'). '.pdf', ...
4
votes
1answer
866 views

Magento 2 - discrepancy between documentation and theme files structure on github

I am creating a new theme and would like to start by duplicating the default blank theme and then modify it to become my new theme. When I checked the frontend developer guides, it indicated the ...
1
vote
0answers
362 views

404 in Nginx server after moving Magento Multistore from sub-domain to sub-folder

We have a Magento multistore with 3 stores. We need to move one store that is in subdomain to a sub-folder of another domain: From MyShop.MyDomain1.com to MyDomain1.es/MyShop/ We need to make this ...
0
votes
0answers
33 views

_MACOSX folder in Magento directory

An old webshop of ours has a _MACOSX folder in its directory. When I backup the webshop it takes a very long time to backup _MACOSX folder. Probally because it is a whole copy of the files in the ...
1
vote
1answer
328 views

1.9 CE - Set variable to either region or region_id if customer in USA

Appologies but new to PHP... Need to pass a value for 'state' to payment gateway which can be any string for non USA customers but must be two character code for USA (based on drop down list). '...