Questions tagged [magento2.2]
General questions about the Magento 2.2.x versions
2,491
questions
8
votes
2
answers
4k
views
Magento 2 : What is profiler, what is it's purpose and how can it be used?
I came to knew that there is a profiler in Magento 2, but I am not sure what it does and what it can be used for.
Please explain.
0
votes
0
answers
677
views
Error Filtering Template
After upgrading my server from Magento 2.1.9 to 2.2.0 my frontend only displays this error:
Error filtering template: Warning: Invalid argument supplied for foreach() in /var/www/root/public_html/...
1
vote
1
answer
961
views
Display products of particular catagory in magento 2 cms page
How to display products of a particular category on cms page.
3
votes
0
answers
776
views
One customer with multiple customer groups Magento 2
Does anyone know how to apply multiple groups for one single customer?
I have seen one result for Magento 1.8 but it doesn't work.
I have changed the DB to multiselect and not static value (varchar) ...
1
vote
3
answers
3k
views
Filter search not working for custom admin grid
I have created a custom admin grid. In that search is not working properly. Anyone knows please provide me a solution
ox_homeslider_post_listiong.xml
<filterSearch name="fulltext">
...
0
votes
1
answer
1k
views
Magento 2 goes down with 50 concurrent request
I am running magento 2 (using magento rest api services only) on aws t2 medium instance with ubuntu16.04, apache 2.4, php7, mysql 5.7.
When I use seige tool for load testing with 50 concurrent ...
1
vote
1
answer
2k
views
Steps for moving or migrating Magento 2 to AWS EC2 and servers versions [duplicate]
I need to migrate and move a Magento 2.2 store to EC2 on AWS.
Q1- is there a step by step (updated) guide for doing so? most of the googled results are out-dated, non of them mentioned the point in ...
0
votes
1
answer
102
views
Issue with multiwebsite with multistore ___store appending twice in magento2.2
I have multiwebsite with multistore
website1 English, website1 French
website2 English, website2 French
I use two theme One for website1 luma and another for website2
Website1 issue Luma theme
...
0
votes
1
answer
332
views
After clearing Static Content, CPU Usage hits 100% for a while. How do I lessen that?
After clearing Static Content, CPU Usage hits 100% for a while. How do I lessen that?
Basically, I clear Static Content so I can see my LESS changes, but every time I do, my CPU is just going crazy. ...
2
votes
0
answers
240
views
2.2 Faster way to regenerate css in developer mode
In developer mode, static files are mostly symlinked so making changes is immediately visible in frontend. However, when making changes to CSS this is not the case.
The minimal files I have to ...
1
vote
1
answer
3k
views
How to fetch the image from DB and display it , to frontend in magento 2
I have created custom Backend grid and Ui form to add image slider and it is working good in Backend. In Backend I have fetched the image by getting media url.In frontend, have fetched the image name ...
2
votes
1
answer
1k
views
Magento 2.2 - custom product sorting issue
I have override toolbar.php for custom sorting attribute.
<?php
namespace Vendor\Module\Block\Product\ProductList;
class Toolbar extends \Magento\Catalog\Block\Product\ProductList\Toolbar
...
2
votes
3
answers
4k
views
Remove the main menu from the homepage
I'm trying to remove the main menu from the homepage, for this I used the following code in my custom template:
<referenceBlock name="store.menu" remove="true" />
But the menu is still there ...
5
votes
2
answers
2k
views
Magento 2 error when merging and minifying JS and CSS files
I merged and minified JS files and CSS files and now my Magento 2 is throwing below error:
Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Argument 4 passed to Magento\\Developer\\Model\...
0
votes
1
answer
1k
views
Keywords meta tags are not being updated
When I change the Meta Keywords in Search Engine Optimization and check the result with the Developer Tools of my browser, I can't see any change.
I tried removing the browser cache and cleaning ...
3
votes
2
answers
2k
views
Mass status in admingrid: Ui form
I have created Admingrid and associate UI form. I need to change the Status for all the items using Massaction. Any one know Please suggest me..
Uigrid.xml
<massaction name="listing_massaction"&...
1
vote
2
answers
4k
views
How to add status as dropdown list in UI form in magento 2
I have created a Ui form in magento 2. How do i kept status as dropdown list in Ui form ?
It should look in below format.
Status-1)Enabled
2)Disabled
2
votes
2
answers
811
views
Magento upgrade 2.19 to 2.2
Got this error, no clue how to upgrade:
- magento/product-community-edition 2.2.0 requires composer/composer 1.4.1 -> satisfiable by composer/composer[1.4.1] but these conflict with your ...
2
votes
2
answers
3k
views
Ui form: Edit functionality: Image Preview in magento 2
I have created Ui form.
In that, I have uploaded a image which is also saved in DB and shows preview in admingrid.
It shows image preview for a new action But it is failed to show image preview and ...
0
votes
1
answer
282
views
Magento 2.2.1: Upgrade from 2.1.6
I am receiving the following error when clicking on a product link or accessing the product page. This was done after upgrading from Magento 2.1.6 to 2.2.1.
Also received other errors but resolved ...
2
votes
1
answer
2k
views
Magento 2 Extension display subcategories in block
I need to create new module, which allows to display subcategories for a specified category inside block.
I call the block like this:
<block
class="Vendor/Module/Block/CategoryList.php"
...
11
votes
6
answers
29k
views
Magento 2 customer-data.js:90:23 [object Object]
I'm using Magento 2.2 with Porto theme and getting an [object Object] javascript error at customer-data.js line 90 in the console after logging into the store and refreshing the page or switching to ...
1
vote
3
answers
1k
views
Ui form: image not saved in DB in magento 2
I need to save below fields in DB. All other fields are saved except Image.But images are saved in pub/media folder.Please suggest me a solution
Here, i have mentioned my controller for save.php
...
0
votes
1
answer
379
views
Array in magento 2
In below code,I want to save only the name in DB. But How do i get name only from below array. Please suggest me a solution to get a name
Array
(
[0] => Array
(
[name] =>...
0
votes
2
answers
232
views
Upgrade error: magento 2.1.3 to version 2.2.1
I have Upgraded Magento 2.1.3 to version 2.2.1 then it's giving me an error as follows:
Exception #0 (InvalidArgumentException): Merge for content type '' is
not supported
Please help me anyone ...
3
votes
0
answers
78
views
Mapping Magento Test Automation Framework suite to netbeans
I am unable to integrate the MTAF in netbeans. Can you please provide me some ideas ,how to map to netbeans.
My MTAF folder structure:
and netbeans configuration folder structure steps:
open ...
1
vote
2
answers
1k
views
Js variable not updating in checkout page in Magento 2
I have implemented the custom Payment Method which is Payment Terms and it's working fine. Here I'm showing the text under Payment Terms payment method which is populated from the controller, and it's ...
1
vote
0
answers
329
views
How to disable proceed to checkout button when enter invalid post code in Magento2.1?
We need to disable 'Proceed to Checkout' button on the cart page, When user enter invalid postal/zip-code using custom module.
Please help to find a solution.
1
vote
2
answers
361
views
City/province/region not included
Is there any one who can help me?
I see that Magento by default is US every city and province included.
But for my country, I only can see the name of my country, but i can't see any city drop-down ...
0
votes
2
answers
2k
views
Getting 404 Error on Second Domain - Magento 2 Multi-Store
So I have a LEMP stack set up on a staging server and on my local. I have it set up as a Multi-Store. The staging server and local are identical. Except that the local is running off of Laravel Valet ...
2
votes
1
answer
1k
views
Production Mode Slower than Developer mode? How can this be?
EDIT:
Developer Mode: Waiting TTFB => 121ms
Production Mode: Waiting TTFB => 224ms
(It's the first html that loads, the page) It's that delay I feel when browsing.
While using Magento 2.2.1, ...
1
vote
2
answers
2k
views
What layout types are there for the UI form component?
What layout types are there for the UI form component?
The example in the documentation (http://devdocs.magento.com/guides/v2.2/ui_comp_guide/components/ui-form.html) have type tabs:
<item name="...
1
vote
1
answer
175
views
Swap long and short description
Is there an easy way to swap the long and short descriptions in the mysql database for a magento 2.2.0 installation for all products?
2
votes
1
answer
2k
views
How to read the csv file in controller in Magento-2?
I want to read the CSV file for stock update.
My CSV file contains :sku ,qty.
How to read these values?
If anyone knows please explain it to me.
2
votes
0
answers
196
views
AddToCart using GET and Query String in Magento 2.2
I am currently migrating a store from Magento 1.7 to Magento 2.2
On many of our product pages there is a button to order a free sample which is achieved by adding a product 'free sample' with options ...
2
votes
1
answer
2k
views
Ui form: image field in Magento 2.2
I need to create a image upload field in my Ui form.
I have created below files.
But while trying to upload an image, it shows a below error.
Please suggest me a solution to save a image in DB.
I ...
0
votes
1
answer
392
views
category->categories view in admin causes error: Exception #0 (Magento\Framework\Exception\NoSuchEntityException): Requested store is not found
Imported data from version 1.9.3. Set the stores to single store mode. Developer mode enabled. Cache cleared, indexes rebuilt. I tried turning single store mode off and adding a new store so that ...
0
votes
1
answer
59
views
What is the best way to create custom theme in magento 2.2?
Which files I should copied from the Luma theme to Custom theme?
When I create my custom theme - review section and add to cart in product view page are not working.
If I copies Magento_Review ...
0
votes
1
answer
789
views
'bin/magento setup:upgrade' Failing after update
I am trying to upgrade from 2.1.9 to 2.2.0.
I have updated my composer.json file and have successfully run composer update. Have successfully upgraded from 2.1.6 to 2.1.9 but keep getting the below ...
0
votes
1
answer
2k
views
Magento 2: How to use multiple fieldsets using uiComponents?
I want to have multiple fieldsets under the same tab using uiComponents.
There is something similar under Stores -> Attributes -> Product but it's created using an old deprecated method.
Is ...
6
votes
1
answer
1k
views
Upgrade Magento from 2.1 to 2.2.1 with sample data using composer
What steps do I need to follow to upgrade a demo installation with sample data from Magento 2.1 to the latest 2.2 version?
Instructions that work for Magento Commerce (Enterprise Edition) as well as ...
5
votes
1
answer
7k
views
Magento 2.2 - adding name field to newsletter module [closed]
I'm using magento 2.2 and I want to add name field for newsletter module, so there has to be input box in front-end, and also it needs to show in backend, how to achieve this? There is a lot of posts ...
0
votes
2
answers
67
views
UI form in Magento 2
In the below code which path or which file name have to give in 7 th line instead of slide. Because i am creating Ui form in backend
<field name="name">
<argument name="data" xsi:type="...
1
vote
1
answer
726
views
Creating a Multistore Setup on a subdomain for Magento 2.2
I would like to setup a store in Magento 2.2 that is accessible from a subdomain.
example.co.za (main site - Fully Functional and Working)
a.example.co.za (store with unique categories etc)
I have ...
0
votes
1
answer
2k
views
Call a phtml file at bottom of home page using custom controller Magento 2.2 [closed]
/var/www/html/magento2/app/code/NameSpace/ReviewRating/Controller/Index/Slider.phtml
<?php
namespace Namespace\ReviewRating\Controller\Index\Slider;
use Magento\Framework\App\Action\Action;
use ...
0
votes
1
answer
270
views
Magento 2.2 : Cannot Add Subcategory [closed]
I can't add subcategory in "Catalog > Categories", I get the following error message :
Something went wrong while saving the category.
In var/log/debug.log, I have this :
[2017-11-13 04:34:03] ...
10
votes
6
answers
21k
views
Product custom attribute import with CSV Magento 2
I am trying to import product with CSV in Magento2. In the first case, all attributes are default attributes so import works fine.
Now In the second case I have added some custom attributes in my ...
0
votes
1
answer
217
views
How upgrade magento 2 via composer to alternative version PHP
Alternate version php 7.0.24 - my site.
Native version PHP 5.2.6 - my server.
Composer doesn't want to update magento (it defined version PHP 5.2.6).
How to specify for the script an alternative ...
0
votes
2
answers
36
views
Product tab changing issue in magento 2
I have tabs on product page like Details, Reviews etc. so how can I change the label of this default tabs in Magento 2. I use Magento 2.2.
How can I archive this task?
1
vote
0
answers
230
views
How to display checkout session value in ZIP/Postal code textbox in checkout page - Magento 2.0.1
How we can display checkout session postcode value in Zip/postcode text-box under "Estimate Shipping and Tax" in cart page.
Please help me to find solution for this issue.