Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'Magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.
1
vote
How can I duplicate the category page in a custom module?
Controller of your module has to extend Magento\Catalog\Controller\Category\View
Also, instead of copypasting layout file use handle update and use references to change parameters of blocks.
12
votes
2
answers
4k
views
What and why is the proper way to load a model
I have quite a lot of experience with Magento but I realized that I don't understand which way of loading a model is the correct one and why. I've read everything that I could, about the topic but peo …
1
vote
1
answer
254
views
Magento 2 Saving store configuration programatically in upgrade script
I want to save store configuration programtically but I'm just getting one problem after another. Firstly I wanted to use Writer class but since it only updates core_config_data table it doesn't work …
0
votes
Magento 2 Saving store configuration programatically in upgrade script
I took couple steps back and decided to just run bin/magento config:set command from within the upgrade script and it works as intended.
Do do that you have to call ConfigSetCommand::run() and provid …
3
votes
1
answer
114
views
Mageno 2 after programatically removing product attribute group the attributes are no longer...
(Magento 2.2.6) Hi, normally when you remove attribute group from an attribute set you still see the attributes that belonged to the group under "Unassigned Attributes" section of attribute set edit p …
0
votes
Mageno 2 after programatically removing product attribute group the attributes are no longer...
It seems that eavSetup doesn't have necessary method so what we have to do is to call setRemoveAttributes method on attributeSet model and then save the set model. In the argument we need to state lis …