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.
4
votes
Accepted
Get All Products by Category ID or Name API
If you want to perform a search by SKU (first case) in a better way, you could use the LIKE condition as in the example in the official guides
GET http://<magento_host>/index.php/rest/V1/products?
se …
1
vote
Magento 2 remove unused product attribute values
I think you could to it with a small extension like:
get all products with something like:
$products = $this->_productCollectionFactory->create()
->addAttributeToSelect('*')
->addA …
5
votes
Get all orders of customer using customer's token in Magento 2 API
You should be able to filter out the orders of a single customer using the search query parameters like this:
https://<mage host>/rest/V1/orders/?searchCriteria[filterGroups][0][filters]
[0][field]=c …
0
votes
1
answer
503
views
Magento 2.1.10 - Front controller reached 100 router match iterations caused by IWD StoreLoc...
I recently updated my Magento version from 2.1.1 to 2.1.10 and the module mentioned in the title is causing that exception.
module version is 2.0.6
I contacted their support, and was told it is a kn …
1
vote
Accepted
Magento 2.1.10 - Front controller reached 100 router match iterations caused by IWD StoreLoc...
The extension support has very kindly sent me a patch to be applied that solves the problem and told me I could post the code here.
Maybe it could be of help for someone else.
Just substitute the app …
0
votes
Inject class for overridded class
According to this question
Magento 2: Override Magento\Catalog\Block\Product\View Block
and to the exception you have, I guess you have to add this to the construct method and pass it to the parent c …
6
votes
3
answers
16k
views
Get Region Id given Region Code and country id
I need to get the region_id given the region_code and the country_id, but I cannot manage to achieve it.
I've tried using the countryFactory and the regionFactory, but i do not understand what i'm do …
0
votes
How to setup grunt themes.js for my theme. Should I point to css folders of blank theme?
I advise you to read more carefully the Magento fallback mechanism, about theme inheritance, in the official guides.
here
When inheriting, you don't have to necessarily create your own files, in the …
4
votes
Accepted
Creating shipment programatically does not update order items shipped - order never complete
After struggling for 2 days on this, trying to understand what the problem was, studying in deep also Magento core classes for module-sales, I found someone on Magento community who had similar proble …
0
votes
Duplicated theme not displaying correctly?
There are a couple of things that come into my mind as suggestions.
First, when I have to switch between themes, I run the static-content compilation specifying also the language and the themes, rec …
0
votes
1
answer
340
views
Unable to create customer custom attribute
I need to add a custom attribute to customers.
For products I did it with REST API, but it seems it is not possible to do the same for customers.
So, as suggested everywhere, I created a small exte …
0
votes
Magento 2.2 - Cannot update attribute values
This is not a definitive solution, for which I will create a new question to which someone hopefully will be able to answer, but I wanted to post at least what the true problem is.
Actually, I obser …
1
vote
1
answer
961
views
Magento 2.2 adding images to product programmatically does not set small_image
I'm adding images to products programmatically. Every product can have from 1 to n images.
So I reorder the images array in the way I need and then, to the first image of the array (that has to be the …
2
votes
2
answers
4k
views
Filter on custom product collection
I'm creating a custom brand page in which are listed product with a specific brand.
I've created a static page with a 2 column layout, with a left sidebar in which I'm putting filters and the main c …
1
vote
1
answer
237
views
Cannot create static Cms block from backend
Whenever I try to create a new static block from the backend, I always get the notice
"Could not save block, sorry something went wrong".
Checking logs I found this exception of the violation o …