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.
0
votes
Attribute value is not coming on my cart page, fetching all the attributes
$product->getAttributeText('features'); does only work for attributes of type "select".
$product->getData('features'); should do the trick.
0
votes
Getting error looks like we got no XML document in soap apo
This happens, for example, when your credentials are not correct.
For debugging, I'd recommend to wrap your code inside a try...catch block like this:
try {
$soapResponse = $soapClient->functionNa …
3
votes
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2.catalog_product_entity_i...
It seems that you have set integer as the backend_type or type property of your attribute. This is not possible. Normally you would use varchar, if you want to store numbers, use int or decimal if you …
2
votes
Can't use di (Dependency Injection) in product list class rewrite for json Helper
You have to copy the constructor of \Magento\Catalog\Block\Product\ListProduct into your class and add your additional arguments at the end of it.
You also have to call parent::construct([...]), whe …
1
vote
Accepted
Magento 2: Impossible to add new sizes
As for the virtual products, I think this happens when you add configurations to a configurable product, but don't specifiy a weight. Then the child products are added as "Virtual".
Regarding the siz …
1
vote
Accepted
Magento 2: Overwrite extension's i18n
You should be able to put your translations into
app/design/frontend/<vendor>/<theme>/i18n/en_US.csv
0
votes
Magento 2 : Fatal error: Uncaught Error: Call to a member function dispatch()
You can simply inherit (or use, if you don't want to add functionality) from \Magento\Catalog\Block\Category\View instead of \Magento\Framework\View\Element\Template to get access to the getCurrentCat …
0
votes
Protect a Magento store from blocking
Just host the software on your own server. This way, you can't be blocked instead of by your hoster. Choose a well-known hoster in your market, and you shouldn't get any problems as long as you pay th …
2
votes
Accepted
Difference admin save and cli script save?
You should make use of service contracts, as the load() and save() methods are officially deprecated.
Use \Magento\Catalog\Model\ProductRepository or even better \Magento\Catalog\Api\ProductRepositor …
0
votes
How to call the getId() function on an instantiated resource Model
I understand that the correct way to load is to use the Resource Model
That's wrong. The correct way is to use the service contracts, which are implemented with repository interfaces/classes.
For ex …
1
vote
Add store code to URL's for multi language website doesn't work
I assume either your base url, or at least one of your store codes, contains characters that won't work for domains under the .eu scheme.
Hard to say though without knowing the actual data that you're …
1
vote
Magento setup installation error
You are using PHP7.3 when you should be using PHP7.4
0
votes
Undefined variable: escaper (Magento 2 @var syntax)
Purchased themes for M2 generally aren't a good idea, in my opinion.
The comments don't autoload anything. They are only there to signal your IDE which classes the objects have, so the IDE can suggest …
0
votes
Is it safe to permission set 777 for var?
I don't think this is recommended?
Where did you find this?
Refer the official documentation: https://devdocs.magento.com/guides/v2.4/install-gde/composer.html
0
votes
Magento 2: Error filtering template: Notice: Undefined index url
The $params array doesn't have the key 'url'.