Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

9
votes
2answers
3k views

Magento 2.2 error “The page isn’t redirecting properly”

I am testing my own module on Magento CE 2.2.0 but keep getting "The page isn’t redirecting properly". Looking at the network traffic I see these requests: /magento22-acumulus/admin/ /magento22-...
5
votes
5answers
4k views

app:config:dump locks everything in configuration

I am using pipeline deployment. As suggested in Magento 2.2 documentation, to use pipeline deployment process use below code: app:config:dump and add config.php to source control. But when i ...
0
votes
1answer
305 views

Web Setup Wizard breaks after 2.2 update

After running the latest upgrade to 2.2 via the Web Setup Wizard, it appears to successfully complete the installation. However, when I visit the Web Setup Wizard now, it displays a broken page. Click ...
0
votes
0answers
478 views

Magento 2 cart event observers not redirecting correctly

I want to restrict per order qty of any product to 50, In other words, I don't want to allow users to purchase more than 50 items of any product in one order from my store. So, I know qty can be ...
3
votes
3answers
2k views

Magento 2: Add multiple products to cart programmatically

Following is the event observer for adding multiple products into cart: <?php namespace Namespace\Module\Observer; class ThirdPartyAdd implements \Magento\Framework\Event\ObserverInterface { ...
1
vote
1answer
322 views

How to apply visibility filter to category view's product collection in magento 2?

How do I apply setVisibility() to 'Not Visible Individually' in Category view's collection? Basically, I want to load products with visibility 'Not Visible Individually' only for a specific category. ...
0
votes
1answer
501 views

Magento2: Disable user from changing addresses

Is there a way to disable customers from adding, editing, or deleting addresses on their account? I want to be able for users to add the address during registration and then after the account is ...
1
vote
1answer
660 views

Magento 2: Observer event on cart page

Please let me know which event observer is to be used when user is redirected to view cart in magento 2.2
1
vote
2answers
2k views

Magento 2: Change quote from current quote to other quote id

Please let me know how can I change my current quote to any other quote saved in database using an event observer in magento 2.2
0
votes
1answer
332 views

Magento 2: Add product to guest cart programmatically

Please let me know how to add product to cart programmatically using an event observer in magento 2.2
0
votes
1answer
82 views

Problem after I changed developer mode

after I change from default to developer mode my homepage is look like this what is my mistake ? please help me
1
vote
3answers
449 views

Magento 2.2: how to get out of stock products when managing stock

In one of my blocks I want to get a product collection including items that are out of stock, but the product collection always includes WHERE (stock_status_index.stock_status = 1) if you are managing ...
4
votes
1answer
830 views

How to get country list in system.xml

I want to display list of country in my system.xml <field id="country" translate="label" type="text" showInDefault="1" showInWebsite="1" showInStore="1"> <label>Countries</label>...
0
votes
0answers
638 views

unable to install B2B extension for magento 2.2.0

I m using magento 2.2.0 and trying to install B2B extension via composer require composer require magento/extension-b2b but i am getting bellow error [InvalidArgumentException] Could not find ...
0
votes
2answers
396 views

How to move layered navigation above toolbar for specific category in Magento 2

I'm trying to move layered navigation above description block for specific category and category page set in full width from backend in Magento 2 but it's not working. Can anyone help or suggest?
2
votes
1answer
910 views

How to position the custom tab in customer edit page in admin panel - Magento 2

I created a custom tab in customer edit page in admin panel. It works perfectly, but I want to position the tab, so I tried to edit the customer_index_edit.xml file like below by adding: <action ...
2
votes
0answers
847 views

Magento 2.2 Web Setup Wizard missing

I am running Magento 2.2 and the Web Setup Wizard is missing. When I use the url: admin/admin/backendapp/redirect/app/etc on the backend. It leads me to /setup/index.php/session/unlogin not /setup/#/...
2
votes
2answers
4k views

Magento2 How to Update product price by website or store id

I try to programmatically update product price for different website in magento2. This blow code is working but It will update main website price only, I need to update different website price using ...
0
votes
1answer
762 views

Show “You need to choose options for your item” message in magento2.2 when I hit API for add to cart configrable product

This is on Magento official document http://devdocs.magento.com/guides/v2.2/get-started/order-tutorial/order-add-items.html magento-host/rest/default/V1/carts/mine/items parameters { "...
0
votes
1answer
398 views

Call third party module block in CMS page in magento 2

Is there any way to insert custom block in CMS page in Magento 2.2 alike inserting CMS block in CMS page?
0
votes
2answers
574 views

Magento 2.2.0 - Block not called in Custom Module

I am working on a simple module and trying to display a block. All that is showing up is a blank page. If I put an echo "blah"; exit() in my controller, it shows the output. No errors in my log files. ...
1
vote
1answer
468 views

Class Magento\Framework\Session\SaveHandler Not working

After fresh installation of 2.2.0 version it gives: Class Magento\Framework\Session\SaveHandler contains 1 abstract method and must therefore be declared abstract or implement the remaining ...
4
votes
3answers
3k views

Magento 2.2 error: Unable to unserialize value

After upgrade to the version 2.2 my modules which has serialized values does not work any more. Here is some info from the Magento 2.2 release notes: Significant enhancements in platform security ...
1
vote
0answers
527 views

How add custom field (Product Sku) in Order export CSV magento2.2?

I need to export my orders to csv. I need two fields product sku and qty. sales > Order > export Any way to add Product SKU's as comma separated or any extension that can do it?
1
vote
2answers
689 views

Magento 2.2 data migration Duplicate store_group_name Entries

I am trying to migrate a store from 1.9.2.2 to Magento 2.2 using the Magento data migration tool but unfortunately when running the tool the error appears [PDOException] SQLSTATE[23000]: ...
1
vote
2answers
510 views

InstallData not working

I have InstallSchema.php as follows: <?php namespace Namespace\Module\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\...
1
vote
0answers
376 views

Magento 2.2 : How to enable the 'city' field on cart shipping estimator

I can see the city field on the file => checkout_cart_index.xml: <item name="city" xsi:type="array"> <item name="sortOrder" xsi:type="string">115</item> <item name="...
1
vote
1answer
203 views

What's the purpose of the modifyMeta() function in ModifierInterface

I've been trying to add data to the product form. I've been following this tutorial, as well as looking through the Magento 2 codebase. My understanding so far: The purpose of the product_form.xml ...
5
votes
1answer
121 views

Magento 2.X : what are people doing about different versions

After upgrading from 2.1.9 to 2.2.0 on two of our current magento sites, its apparent that the process is somewhat easy and difficult at the same time. Yes composer makes going from 2.1.9 to 2.2.0 ...
6
votes
1answer
4k views

How to Integrate Magento Social in Magento 2.2

I would like to know more about Magento Social which was recently introduced in Magento 2.2. The module is available in the following location. System -> Extension -> Integration -> Magento ...
1
vote
2answers
376 views

Use plugin after getImage() in Magento 2

I want to add text after image on product list page. For that I created plugin for getImage() function of vendor/magento/module-catalog/Block/Product/AbstractProduct.php Plugin Code: <?php ...
3
votes
0answers
727 views

Getting error Invalid state change requested in Magento2.2

When I am placing order by my payment gateway I am getting error Invalid state change requested. I debug the core code and found that is error is coming from plugin used by core classes. i.e Magento\...
1
vote
0answers
361 views

Magento 2.2 - custom attribute module fails

I've made a custom attribute module using this magento stackexchange Link to article. etc/frontend/events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
2answers
101 views

As an integrator, should I expect the provided Travis CI configuration to work properly?

As an integrator, after creating a Magento 2.2 project, should I expect the provided Travis CI configuration to work properly? The Magento Testing Guide explains how to run individual test suites, ...
2
votes
4answers
5k views

Magento 2 404 on all pages/files (except homepage)

I setup a Ubuntu server with the LAMP at my home network for testing. I downloaded Magento-CE-2.2.0-2017-09-25-08-19-44.zip and extracted it into /var/www/html and started the installation process. ...
6
votes
1answer
372 views

Unit test Issue on getting value

I am creating a unit test for my simple method, this method get the value from requestHeader here is my class which I want to create test class namespace Vendor\Module\Helper; use Magento\Framework\...
6
votes
1answer
5k views

Notice: unserialize(); Error at offset in Magento 2.2

This code not working in Magento 2.2, But it's working in Magento 2.1. I am facing this error Notice: unserialize(); Error at offset 0 of 168 bytes in /var/www/html/M2/app/code/Vendor/Module/Block/...
1
vote
0answers
173 views

custom customer attribute value in the e-mail template

I have install Clarion_CustomerAttribute and I don't know how to recall attribute value in the e-mail template I have tried Address Templates configuration and nothing. I use Port theme.
2
votes
1answer
512 views

Magento 2.2 - combining js

Has the combine js been moved from: Stores > Config > Advanced > Developer All i currently get under Advanced is : Admin System Tried switching different store views etc.
3
votes
1answer
841 views

How do you populate a Magento_UI dynamicRows element?

I've got a <dynamicRows> element. When I render the object, I'm able to create new rows, and all of the fields appear. However, I have no idea how to: Populate the rows from the database Save ...
4
votes
3answers
3k views

How to resolve unserialize issue [closed]

My extension has stopped working since updating to Magento 2.2.0 When running di:compile we get the following error: Errors during compilation: Vendor\Module\Model\ResourceModel\...
0
votes
1answer
375 views

Magento 2 installation stuck at 71%

Magento 2 installation stuck at 71% I installed many times but still installation stuck at 71%...have some one help me? Current PHP version: 7.1 allow_url_fopen On date.timezone UTC display_errors ...
3
votes
1answer
2k views

What is the correct way to create mock object in unit test

Now days I am focusing on TDD development, and I am following the Magento test class for reference. So firstly I look into Contact module (as it is the small module) and I found that in DataTest.php ...
3
votes
1answer
278 views

Remove block from Magento 2.2

I have a custom theme which was working fine on 2.1.9. Just upgraded to 2.2 and noticed some blocks I used to remove are now in place. app/design/frontend/MyThemes/custom1/Magento_Theme/layout/...
3
votes
1answer
2k views

Magento 2.2 - Unable to unserialize value, when editing categories

The following actions produce the results listed below each action. If a category has more than 50 items it seems to always happen, categories with less than 50 items will usually work, but will ...
1
vote
2answers
550 views

Magento 2 : Possible bugs/solution in Magento 2.2.0 [closed]

Magento 2 released it's new version Magento 2.2.0 I just want to know what are structural changes which are new in this series. Also is it the right version which we have to use instead of the last ...
3
votes
0answers
508 views

Magento 2.2.0 partial Credit Memo/Refund doesn't work properly

We have to try partial credit memo for Magento 2.2.0 shop admin for below step: 1) Proceed order with default payment and Grand Total are €37.00 2) Create the Invoice. 3) Try to Credit memo with ...
1
vote
1answer
514 views

Custom mail form on Magento 2.2.x

I'm trying to create a custom mail form on Magento 2.2.x. I have looked at several instructions for Magento 2.0.x and/or Magento 2.1.x but they dont seem to work anymore for Magento 2.2.x. Perhaps ...
2
votes
2answers
7k views

Magento 2.2 Incompatible argument type

I have compilation issue on my custom module. Code works properly in magento 2.1 but in magento 2.2 it's shows error at compilation like this Incompatible argument type: Required type: \Magento\...
8
votes
2answers
3k views

Magento 2 form field toggled type

I want to create a toggle input option in magento 2 like this: but i don't know what type of field is that, right now i'm using select dropdown like this: $fieldset->addField( '...