Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
1
vote
1answer
769 views

Magento 2.2 IWD Onepage Checkout Issue

I have installed and enable one-page checkout extension by IWD Agency it shows correctly but removes my theme header and footer how to prevent it and Show my header footer as it was before. Here I can ...
1
vote
1answer
987 views

Sales Emails going via wrong email address magento 2.2.x

I have setup email address in sales representative but getting sales email from apache@domainname So where I need to fix this issue? Can anyone let me know? Other emails except sales are working ...
0
votes
2answers
1k views

Magento2 : How to add Custom Block?

How to add custom block under payment method(admin order invoice)
6
votes
2answers
2k views

Add Phone Number column in sales order grid

I am trying to add phone number column in my order grid. I have added new column through sales_order_grid.xml in my ui_component directory. Code is below: <?xml version="1.0" encoding="UTF-8"?>...
6
votes
3answers
3k views

Add tabs with attribute content on product page 2.2.x

I've read many add tabs post here, but can't seem to get any to work the way I need to work. Attribute is 'sizechart' and is text field added to the default attribute set (but could be dropdown or ...
4
votes
1answer
7k views

UI form validation in Magento 2

I want to validate text field to numeric or not in UI form. <column name="sortorder"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> ...
3
votes
1answer
4k views

how to get refreshed shipping address in quote object in js - Magento2.2

I am using this one code but once i update shipping info not getting refreshed info they retrieve old info how can i achieve that? require([ 'jquery', 'Magento_Checkout/js/model/quote', ...
13
votes
3answers
4k views

Magento2.1 ui grid, remove or clear filter issue (after removing filter, result row apply to whole collection)

I created ui grid in magento 2.1.0 and facing issue while removing filters or clear all filters from ui grid. My filtered result occupies whole grid means same row repeated in the whole grid after ...
5
votes
2answers
1k views

When it is good to use viewModel ? What is difference between viewModel and Block?

I am bit confuse about using viewModel in Magento. I am not getting exact difference between viewModel and Block. In which case using viewModel is best case? Any help will be appreciated.
3
votes
2answers
6k views

Adding quantity increment button in cart and mini cart

I need to add a quantity increment button in cart page and mini cart popup like this. I added the button but I can't assign the functionality. This is what I did app/code/Amsi/UserManagement/...
3
votes
1answer
737 views

Which module I can disable in Magento 2?

I am working on a website in Magento 2, but many of the modules are not of my use because my target customers would be from INDIA for now. Also, I only want to sell simple, virtual and downloadable ...
8
votes
4answers
3k views

Magento 2: When will 2.0 support stop?

Right now the Magento team supports 6 different versions of Magento: 1.9.3.0 CE 1.14.3.0 EE 2.0.10 CE 2.0.10 EE 2.1.2 CE 2.1.2 EE I reckon it's a lot of work to deal with and 2.2 is coming next. So ...
7
votes
2answers
2k views

Magento2.2 getCollection from Factory deprecated

I get in my editor (PhPStorm) on getCollection the message that it is deprecated. In my controller i got the function public function __construct( Registry $registry, ...
4
votes
6answers
3k views

Magento 2.2.2 remove other shipping methods and enable only free shipping if consumer total more than 100

We are using Magento 2.2.2, We have more then 5 shipping methods enabled in our site. We needs to remove other shipping methods and enable only free shipping if the cost of their order totals to ...
4
votes
3answers
756 views

Add videos to products programatically

I know this question has been asked before: Add video to product programatically Magento 2.2.5 : Add video to product programmatically Importing product videos maybe others but I need ...
3
votes
2answers
3k views

Magento 2: CronJob bug? MySQL is always running at 30% usage and many php processes are running

I am running magento 2 (2.2.1) on nginx and enable the cronjob by default. php bin/magento cron:install I don't customize any configuration regarding schedule of cronjobs. after running the ...
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 ...
8
votes
2answers
4k 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( '...
6
votes
5answers
6k 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 ...
6
votes
2answers
2k views

Magento 2.2.1 - how to give discount on payment methods?

I go to Magento 2.2.1 Admin > Marketing > Promotions > Cart Price Rules and create a new Rule: Conditions. Option "Payment Method" is not showing up in Conditions Tab. I want to give some ...
5
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 { ...
4
votes
2answers
3k views

How to retrieve variable from CMS page in Magento 2

In Magento 1.9.x, we can do it like below In CMS page, add content: {{block type="core/template" name="..." my_vars="123,456" template="path-to/test.phtml"}} Create path-to/test.phtml: <?php ...
4
votes
2answers
10k 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\...
3
votes
2answers
1k views

Redirect customer login/register success to checkout Magento 2.2

I am creating a module for redirect login/register success to checkout if customer has some items on quote but that's not working. If I stop the event with that die; on Observer/Redirect.php above ...
3
votes
3answers
2k views

How to add custom block in admin order create form in magento 2.2.5

I need to add custom block after order comment section in admin order create form using version(magento2.2.5)
2
votes
1answer
2k views

Oauth 2.0 in Magento 2.2 with how to access the token

Can please give example to access the magento 2 api by using oauth 2
2
votes
1answer
151 views

Magento2 Add line separator in mass action list in sales order grid

I need to add line separator before my two newly created custom mass action "Custom Action 1" and "Custom Action 2" and
2
votes
3answers
414 views

Magento 2 add customer group as Email Template variable

In magento 2 it is possible to create Email Template variables, however, those variables are html or plain text. I'd like to create a variable containing the user group, so i can use this variable to ...
2
votes
0answers
313 views

When I deselect the swatch once after selected, the product image is not displaying in magento 2

When I deselect the swatch once after selected the product image went blank when I inspected and the image src went undefined in Magento 2.2??
2
votes
2answers
2k views

Show custom module configuration in Admin Menu not in Store -> Setting -> Configuration

I am creating a custom module , now wanted to add module configuration options like enable/disable options . I found many post that shows how to create these options using system.xml but in that way ...
2
votes
3answers
5k views

How to display star rating summary

I have removed reviews tab and placed the form in a popup modal. Now I have displayed all the reviews posted by the customer about the particular product and I have displayed the Rating summary for ...
2
votes
3answers
3k views

Where is defined the Place Order button in default checkout payment step section?

I wanted to know where the button from the image is defined (The place order button in the payment step of checkout) And also where is the discount code section defined?
2
votes
2answers
753 views

Stores->Configuration->Advanced->Advanced Not showing up

I'm trying to set up a custom cron job as per this tutorial, but Stores -> Configuration -> Advanced -> Advanced does not exist on my backend. This is what the Advanced menu looks like for me: This ...
2
votes
2answers
1k views

Magento 2, add color style in Status column in sale order

Using Magento 2.2, Admin Grid. I want to add style to Status column in sale order. How to do this?
2
votes
1answer
116 views

How can I trigger a shipping method price change based on street address?

I have below code to trigger a change in a shipping method price in this file: view/web/js/model/shipping-rates-validation-rules.js define( [], function () { 'use strict'; ...
2
votes
1answer
739 views

Magento2: How to use Custom Collection Data in UI Component Grid

I am creating a custom module to show my custom records on grid (using UI component),till now I have Created UI Component, but unable to link up with the Collection. Here is my UI component code: <...
1
vote
2answers
5k views

Magento 2 : Permission denied with colinmollenhour module cache

I regularly get this error message: 1 exception(s): Exception #0 (Exception): Warning: file_put_contents(/var/www/html/magento/var/cache//mage-tags/mage---365_COMPILED_CONFIG): failed to open ...
1
vote
2answers
2k views

You cannot define a correlation name 'tdv' more than once [] [] , magento 2

I have create custom admin FORM and use 2 product attributes as field select option but in getting error. "You cannot define a correlation name 'tdv' more than once" If i have use single attribute ...
1
vote
1answer
85 views

How can i get the order total value on success page easily? Magento 2.2

I am trying to get the order value from success.phtml page so that I can report it back in the facebook pixel. I am just looking for the simplest way to get the order value. Yes, a shortcut pretty ...
1
vote
3answers
1k views

Magento 2, add `company's name` in invoice PDF file?

Using Magento 2.2, Invoice, PDF. I want to add new text block into pdf invoice. What do I need to do? Printed Order Invoice
1
vote
4answers
3k views

We can't find products matching the selection

I just updated to 2.3.0 and when i try to open any category page -> instead of filters i'm getting "Compare products" and "My wishlist" + . instead of product list getting message "We can't find ...
1
vote
1answer
1k views

Call to a member function setActive() on boolean in vendor/magento/module-backend/Model/View/Result/Page.php:27

I am using a module which gives me this error when I try to open its settings in the admin. This is part of the stack trace: app/code/Rokanthemes/SlideBanner/Controller/Adminhtml/Slider/Index.php(...
0
votes
1answer
350 views

Magento 2 Update cart automatically on carty quantity update gives error “Mismatched anonymous define() module”

I have done everything mentioned in this post, however, it gives me an error in console: require.js:166 Uncaught Error: Mismatched anonymous define() module: function ($, getTotalsAction, ...
0
votes
0answers
669 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
0answers
216 views

Magento2.2 sitemap genrate after some product url not showing properly

I have to used Magento2.2 and we are also install in our site this plugin olegkoval/magento2-regenerate-url-rewrites but we are truncate url_rewite table after run this command on our staging site ...
0
votes
2answers
668 views

Magento 2 : Get Shipping price below min. amount

I need to get a quote in Magento2 cart page shipping estimation like Magento 1.x. How to show all the shipping methods when entering any zip code. I'm using webkul marketplace extension for sellers ...
0
votes
1answer
560 views

Magento 2 Create Module with same frontName as other module?

I have to extend functionality of Magento_Customer module and new some more controller under customer/account like customer/account/mobileVerification so my question is, Is okay to have the same ...
9
votes
6answers
7k views

How to change listing per page option?

I am trying to change per page option in magento 2 on product listing page Currently its 9, 15, 30 by default in toolbar I want to change it to 12, 24, 48, 96 etc Any help will be appreciated
7
votes
5answers
9k views

Product custom attribute import with CSV Magento 2.2

I am trying to import product with CSV in Magento2. In first case all attributes are default attributes so import works fine. Now In second case I have added some custom attribute in my Magento 2.2 ...
7
votes
1answer
2k views

How to integrate RabbitMQ with Magento 2.2.* EE

The way of setting up magento queues in M2 EE 2.2.* is different from how it used to be in version prior to 2.2.*. The queue.xml is deprecated and there are 3 new configuration files queue_consumer....