6
votes
Accepted
Magento 2 Customer review report search Bug in all 2.1.x, 2.2
Here is the solution...
Create new module
Vendor/Module/etc/module.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
5
votes
Accepted
Fork of Old magento/magento2-samples Modules
I've forked the most recent one I could find - https://github.com/BenSpace48/magento2-samples
Update
They're back with an out of date disclaimer - https://github.com/magento/magento2-samples
4
votes
Accepted
Magento 2 - AWS automatic codeDeploy via GitHub webhook
This is a very "BIG" topic but I will cover the basics here
ASSUMING YOU ALREADY HAVE an AWS account and CodeDeploy setup
Here are the basic that we take on a deployment for M2
Here is the appspec....
4
votes
Accepted
Running Magento 2's Provided Code Sniffs
It's the PhpCsFixer configuration file, not the code sniffer rules itself
Instead of using command line options to customize the rule, you can save the project configuration in a .php_cs.dist file ...
3
votes
Accepted
Where is the code of packages like Magento\ReCaptchaAdminUi on Github?
This module is included in the security package, you can find Magento_ReCaptchaAdminUi module on
https://github.com/magento/security-package/tree/develop/ReCaptchaAdminUi
3
votes
Call to undefined method Magento\Eav\Api\Data\AttributeExtension::setIsPagebuilderEnabled()
If anyone facing this issue, please have look at this hotfix
diff --git a/vendor/magento/module-page-builder/Plugin/Catalog/Model/Product/Attribute/RepositoryPlugin.php b/vendor/magento/module-...
2
votes
Running Magento 2's Provided Code Sniffs
You can use a pre-commit hook to check the staged files, there is one in:
dev/tools/Magento/Tools/StaticReview/pre-commit
Instead, if you want to test a specific file you can run the phpcs ...
2
votes
How to setup static analyzers used in Magento's build pipeline?
Introduction
This document provides setup steps to get most static analyzers that are used in Magento's build
pipeline working locally in PHPStorm. This guide is written specifically for those using ...
Community wiki
2
votes
Magento 2: I want to clone the Media folder as well while cloning the Magento 2 GIT repository
For this you can open git repo url and check if media folder is available in git repository ?
If not available than ask administrator to commit in new branch and you can take a pull of that branch.
...
2
votes
Accepted
Magento 2 : how to install magento 2 Extesion using composer from github private repository?
Please set your repository Private to Public because the Private repository is not working for this operation.
Please set your package name in a lower case
"bhaveshpp/Percentoffsale" to "...
1
vote
Could not apply patch! Skipping
create patch file:
copy file:
cp {current file} {modified file}
after modification in file of modified file check difference:
diff {current file} {modified file}
create patch:
diff -u {current ...
1
vote
Magento 2 - Database values to push in production using Git
You can do this using app:config:dump command. This will generate system specific, configuration specific, sensitive configuration settings in config.php.
then you can commit this config.php file on ...
1
vote
Accepted
Magento 2 - Where to find the code for vendor/magento/framework on github?
You can find this in the lib/internal dir in github. Link below:
https://github.com/magento/magento2/blob/2.4-develop/lib/internal/Magento/Framework/DB/Select.php
1
vote
Accepted
create Magento package in packagist
Please refer to Magento's official documentation for instruction on hosting your package.
You can find the instruction on link!
1
vote
Magento 2.3.4 - How to install Inventory Management Manually?
You can get the missing Magento Inventory (a.k.a MSI) packages from: https://github.com/magento/inventory
For Magento 2.3.x you need to get the latest 1.1.x release.
copy all module folders to app/...
1
vote
Best way to work on Magento 2
Depends on the size of the build and the budget for dev resources. But on a larger site we have 3 sites. And a lot of these are a topic in their own right. The most solid setup is to have three sites.
...
1
vote
Accepted
How to test module in different Magento and PHP versions using CI?
First of all, you have to implement the Magento Coding Standard, then you can create a Travis config file to set the PHP version that you want to test your module and the Magento version and edition, ...
1
vote
Accepted
Add Magento Existing project to Github repository
Below is the process for setup existing project to git.
Create a repo on git.
use git init command inside magento folder
git remote -v
git fetch --all
git checkout master
use git add . to add files ...
1
vote
clean server .gitgnore
You can generate .gitignore file from here also.
.gitignore Search 'Magento2'
Your file /robots.txt file is alreday added in .gitignore file
1
vote
Accepted
Magento 2: Setup Magento project after clone git repository
First of all, you need to check the vendor folder. If it is empty then you need to run the below commands to install core modules of Magento and deploy the project.
composer update
php bin/magento s:...
1
vote
Accepted
Why is the default .gitignore in Magento 2 ignoring files from /pub/media?
Images are not required for a project to run, which should be the point for a code repository
Imagine a 200k sku's catalog with all catalog images inside git repository... what a size! https://...
1
vote
What will happen if we install magento 2 from github and later used composer to update
It will not update Magento, only the external dependencies, listed in the require section of composer.json. Everything in the replace section is supposed to be in the repository itself, so composer ...
1
vote
Running Magento 2's Provided Code Sniffs
Sounds like you're asking to simply run the command all on your own. Try this. Remove --dry-run to have it automatically apply the fixes.
php /path/to/php-cs-fixer --dry-run --diff --verbose fix /...
1
vote
Accepted
Require specific Magento 2 Github commit with composer
This is not possible. The Magento 2 composer repositories are maintained separately from the development repository in GitHub.
That means:
there is one repository per module (magento/product-...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
github × 47magento2 × 30
composer × 8
git × 7
magento2.3 × 3
module × 3
magento-2.1 × 2
installation × 2
testing × 2
opensource × 2
php × 1
database × 1
admin × 1
magento2.2 × 1
api × 1
extensions × 1
grid × 1
frontend × 1
custom × 1
payment-methods × 1
rest-api × 1
configuration × 1
magento2.4 × 1
layered-navigation × 1
backend × 1