The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
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
390 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
86 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
586 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
982 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
655 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
456 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
980 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
891 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/#/...
3
votes
2answers
5k 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
834 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
429 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
674 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
534 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
4k 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
569 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
801 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
613 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
414 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
240 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
124 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
485 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
850 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
363 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
113 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
6k 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
412 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
204 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
528 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
990 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
4k 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
442 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
282 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
563 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
1answer
598 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
565 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
9k 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( '...
1
vote
2answers
2k views

Magento 2.2: Problem with varnish.vcl generated

I have installed Magento 2.2.0-rc23 and now try to setup varnish FPC. I generate VCL on BE System -> Advanced -> System -> Full Page Cache -> Varnish Configuration -> Export VCL for Varnish 5. VCL ...
2
votes
1answer
4k views

Difference between magento 2.1 and 2.2

I'm currently working on Magento 2.2. And found that In Magento 2.2 core team made many changes in files and folder structure, deleted many files, replaced classes and many other things. One other ...
0
votes
1answer
196 views

How to Set Product video url Programitically in magento2.2?

I have created a script for import CSV products everything's working perfect but one issue is product video url not set. <?php use \Magento\Framework\App\Bootstrap; include('app/bootstrap.php'); /...
2
votes
1answer
997 views

How to escape output in templates in 2.2 - XSS security [duplicate]

I've noticed that the way we escape data in templates is changing as part of 2.2 Escape functions for templates For the following output cases, use the specified function to generate XSS-safe ...
1
vote
1answer
2k views

Magento 2: How to create a configurable product programmatically

I am new to magento and i have created a simple product programmatically from frontend and my question is how can i create a configurable product and link attributes and price and all, what to do, and ...
2
votes
1answer
2k views

Display text if attribute yes/no is set to YES in Magento2?

I'm trying to display something in the product page if a YES/NO attribute is set to YES. Actually the only way I found to do this in multilingual magento 2.1.8 is : if($_product->getAttributeText('...
2
votes
1answer
2k views

Create link dynamically in customer account navigation in Magento 2

Hi i have created account navigation link, and i have two customer groups in magento admin panel, and i only want to display that links to specific group rather than displaying all the time. here is ...
1
vote
1answer
491 views

Magento2 Override 2 classes in single plugin di.xml

I am making a custom module for displaying attributes in Minicart and cart page and I have changed two core classes vendor/magento/module-checkout/CustomerData/DefaultItem.php vendor/magento/module-...