All Questions

Tagged with
Filter by
Sorted by
Tagged with
2
votes
0answers
21 views

Magento 2: How to install custom module in app/code folder only using composer.json file?

I'm trying to install my custom module using composer.json file and after run composer update command my custom module installed successfully in magento2. Actually I want to install my custom module ...
0
votes
0answers
14 views

Own module in bitbucket - different branch for 2.2.x and 2.3.x. How to install with composer?

i have own module in bitbucket (written at the time when was magento 2.2.x) which is overwriting magento-catalog ImageBuilder.php file. Now after testing this with 2.3.x i found, that it isnt working....
2
votes
1answer
31 views

Why module go to vendor directory if install using composer Magento2?

Can anyone please tell me the reason why module go to Vendor directory when install using composer? Please refer me a link for this reason. In my custom extension, I am using this code in my ...
0
votes
2answers
87 views

Upgrade Magento vendor module(dependency|library) to a newer version

Magento uses multiple "external" dependencies|libraries for example one of them is dotmailer-magento2-extension. This specific module is at version 3.1.1 as it can be seen here vendor/dotmailer/...
0
votes
0answers
17 views

Magento 2 Install Composer and Setup Upgrade in 1 step: how do we get the package name?

I am reading through the Magento guide and understand the steps. However it appears to me that many -if not all - of the steps are the same everytime. https://devdocs.magento.com/guides/v2.3/comp-mgr/...
3
votes
2answers
92 views

Magento 2 : How to override a custom module which install via composer?

I have installed one custom module using composer as usually that module was installed in vendor directory is there any way to override phtml file in the same module like name but on app/code module ...
3
votes
1answer
261 views

How to make and install my module via composer with two private repositories in magento 2

Problem Description: I have created two private repositories in github under same user name. Each repository contains different modules. But while trying to install the package via composer throws ...
3
votes
2answers
547 views

When would you place a module in the app/code folder versus another location?

When would you place a module in the app/code folder versus another location? If I add new module in app/code folder with composer.json and another module in vendor folder using composer What ...
0
votes
1answer
49 views

including dependency in magento

I was trying to publish one extension to magento marketplace Things are a fork of tinypng and I can see the dependency of tinypng module is automatically pulled by composer, but where they are ...
2
votes
1answer
36 views

How to mention the magento version compatibility in composer.json

I am creating a module in Magento 2. Now I am writing composer.json. Here I write supporting PHP version "require": { "php": "~5.6.0|^7.0.0", }, How do I write my module will be supported by ...
1
vote
0answers
28 views

How can I add a 3rd party dependency in a custom module?

I'm building a module which requires a 3rd party library, how can I make the 3rd party library available to the module without without adding it to the composer.json magento root file? I added it ...
1
vote
0answers
37 views

Problem with CLI installing module

Im trying to install sitemap module for Magento 2 and i got this message via cli, i make some changes in composer.json { "name": "mageplaza/module-sitemap", "minimum-stability":"dev" "...
0
votes
1answer
47 views

What is the Composer.Json file and what is it used for?

I would like to know what the composer.json file is actually used for when I create a new module. I know it's an optional file that can be created when I create a new module so why include it? ...
1
vote
3answers
216 views

Magento2 Delete config row while Extension Uninstall

I have created a custom module which is being installed via composer. When I run the command - php bin/magento module:uninstall Vendor_Faq It is removing all the corresponding tables which I wrote ...
0
votes
1answer
49 views

How to copy phpunit test xml file of a module under dev/tests/unit/ with composer installation in Magento 2?

I wrote a module including phpunit test xml file. I want to automatically copy that xml file under dev/tests/unit/ after composer update. The composer.json of the module looks like { "name": "...
2
votes
3answers
547 views

Installation issue in magento marketplace 'page doesn't contain HIT in cache header.'

I have developed customer module in magento. When i am trying to submit in marketplace its keep giving the same error even after trying so many solutions. Installation issue: http://magento.dev/gear....
2
votes
2answers
228 views

Magento Using Composer Class in Module

I am using geoip2/geoip2:~2.0 but need to access the GeoIP data from within a magento Model Class. use GeoIp2\Database\Reader; gives an error. I am not sure how to call this in order to be able to ...
0
votes
2answers
2k views

Magento 2 composer “module-wishlist” error

I'm trying to update my magento version to 2.2 (from 2.1.7) but had a "Content Dependency" error, but have narrowed down the issue a module, the "module-wishlist-sample-data" magento module. When I ...
4
votes
2answers
2k views

How to install modules in app/code with composer in Magento 2

How can I force composer to install modules in app/code instead of vendor directory in Magento 2? I have few modules they strictly need to be install in app/code, but when I update them with ...
5
votes
2answers
5k views

ReflectionException error on Magento 2

I tried to install MailChimp module for Magento 2. After I put all the files in the app/code/[vendor]/[module] and I run php bin/magento setup:upgrade, I received this error: [ReflectionException]...
1
vote
0answers
47 views

Why can Magento 2 only uninstall composer packages

When you run bin/magento module:uninstall Vendor_Module -r and Vendor_Module happens te be a module that's not installed by Composer, Magento will not perform an uninstall. Why did Magento add this ...
2
votes
0answers
150 views

Magento 2 : Why my module is on the vendor and app folder?

I use these commands to install my dependencies today: composer config repositories.myvendor_cli vcs git@github.com:myvendor/my-cli.git composer require myvendor/cli:dev-master To work well I ever ...
1
vote
1answer
83 views

How can I prepare my Github's extension to install using Composer?

Using the question below I've installed extensions hosted on private and public repositories using composer, but I need to create my custom extension now. How to install an extension on a private ...
0
votes
1answer
827 views

How to install an extension on a private Github using Composer?

I'd like to know how to install extensions on my Magento 2.1 using Github / Bitbucket / Gitlab with public and private repositories. Thanks.
0
votes
1answer
3k views

Autoload Error: Module has been already defined

This error shows up when I do the following: DL and paste this extension under DIR>vendor>magento-japan folder m2-jplocalize Run the following command: composer config repositories....
3
votes
1answer
56 views

Can we create single composer file for more then 1 module

I am creating one module which will contain more then 1 module in it. Is it possible to create single composer file for more then 1 module? Please let me know is it possible or not. If yes, then it ...
0
votes
1answer
112 views

Magento 2 : Where Put External Dependency?

I'm developing module to call REST API and I want to use an external package via composer. In which composer.json I should put dependency? In composer.json in root directory or composer.json in module ...
2
votes
2answers
1k views

Magento 2: Composer install for my own module

I'm have my own magento 2 module. It's allready uploaded on Gitlab. What i must do to install this module using composer require?
1
vote
0answers
17 views

How change folder when get code Module in github via composer in magento2?

I have create a module in github. When i run composer require namespace/modulename dev-develop in root magento2 folder. It get source to vendor/namespace/modulename folder. I want put code to app/...
2
votes
1answer
50 views

How to auto get Module A when install Module B in magento2?

For example I have two modules, Demo and Base. I want that when Module Demo gets installed, module Base is automatically fetched from Github and installed. I think it is related to composer. Edited ...
3
votes
1answer
807 views

Magento2 - Moving or extending a module from vendor to app folder

I have an extension Magestore_Bannerslider, which the previous developer installed using composer for magento2, The module is installed and working properly. The code is in the vendor folder I need ...
3
votes
1answer
5k views

How to Uninstall modules in Magento 2 using composer?

How to Uninstall modules "ub data migration" in Magento 2 using composer
6
votes
1answer
211 views

How to install module-sample-scss in Magento 2

I'm trying to install this module (magento/module-sample-scss) in Magento 2 with composer as described here, but with no success. If I run this from the Magento root folder: $ composer require ...
2
votes
1answer
2k views

Cannot see new custom Module in Magento 2.1.2

I am new to Magento, and I am trying to do add my very first module. I tried to follow two tutorials that show how to create a "Hello World" module, which basically shows a 'Hello World!' message on ...
3
votes
1answer
969 views

How to deploy public PHP files in Magento 2 extension?

I need to deploy a publicly accessible PHP file as part of a Magento 2 extension. Obviously this is not intended, as usually all requests should be routed through index.php, but in this case it's ...
2
votes
1answer
140 views

Uninstall meta package with related extensions

I created 2 (but planning to create 999 :) ) extensions and a meta package for it. The meta package extension contains only composer.json` { "name": "sergei/module-main", "version": "1.0.0", ...
4
votes
1answer
463 views

Deploy content of pub folder using composer when installing a new Magento 2 module

There are many modules that require to copy some files and folder inside the magento's "pub" folder. As our entire modules operations and infrastructure is based on composer, this manual (non-composer)...
0
votes
1answer
755 views

bin/magento sampledata:reset tries to read nonexistent composer.json

I want to update a Magento installation with sample data from 2.0.2 to 2.0.7, so I am following the instructions here to update the sample data. When running bin/magento sampledata:reset I get the ...
2
votes
1answer
86 views

Create community module

I downloaded megento with composer and installed it,ther app/code directory for creating module, So i just created this directory and my module directory like this : And etc\modules as the same,i ...
3
votes
1answer
83 views

Minimal Magento2 installation a CMS framework

Just want to setup Magento2 as a minimal CMS framework for an internal project, I am only interested in the following modules: Backend Authentication ACL ORM API I tried to define the magento ...
0
votes
1answer
45 views

Module developement update composer config [duplicate]

During module developement (module is palced in app/code) after adding new package to composer.json, how can i make magento to install that package ?
8
votes
1answer
3k views

Magento2: How to include third pary module through composer.json in custom module

I created a custom module, this module depends on thirt party module(tecnickcom/tcpdf), I added this library in my custom module composer.json file { "name": "packagename/mymodule", "description": "N/...
9
votes
1answer
1k views

Magento2: different kind of composer.json files

In Magento2 I see different vendors follow different composer.json formats given below to name their modules. 1st: "autoload": { "files": [ "registration.php" ], "psr-4": { "Amit\\...
17
votes
1answer
4k views

Magento 2 Enterprise: Create New Module in vendor directory

I tried to create new module in vendor directory in Magento Enterprise 2.0.0. The module could not be loaded after I ran the Magento setup:upgrade. If I move my files to the app/code directory, the ...
1
vote
1answer
607 views

Magento2 custom module downloaded by composer at two places

I have hosted my custom module on bitbucket, and using satis proxy between comopser and bitbucket. The problem is, when i use the command composer require vendor/module, it downloads the module at two ...
1
vote
1answer
479 views

Multiple magento-2 modules in single git repository

I am trying to host my magento 2 extensions in a bitbucket repository. each extension will be a branch of that repository. The problem is that, we need to create tag for particular version of the ...
17
votes
4answers
14k views

Why `code` folder is missing under `app` folder in magento 2 stable version?

I have downloaded Magento 2 stable from https://www.magentocommerce.com/download with sample data and installed. It's working fine in both areas i.e. frontend & backend. But I could not find app/...
2
votes
1answer
3k views

Magento 2 Component manager (extension installation)

I'm developing an extension for Magento 2, and was wondering what are my options for the installation process for users. I saw in the magento documentation that there supposed to be a component ...
4
votes
2answers
121 views

Marshalling in Magento2

According to Magento2 Doc By default, when you install a package, Composer puts it into vendor/<package> directory, such as vendor/magento-module-catalog. However, the Magento framework requires ...
13
votes
1answer
4k views

Magento 2 uninstall module

Apparently, now Magento 2 supports uninstall scripts that allow db schema modification when uninstalling a module (horay!!). As explained in here this only works for module installed via composer. (I ...