Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
22
votes
2answers
14k views

Magento 2: Implement UI Fileuploader

I recently implemented the FileUploader Ui Component in my form on Magento 2.1.7. The code for it is here (app/code/Vendor/Blog/view/adminhtml/ui_component/vendor_blog_form.xml): <field name="...
16
votes
2answers
2k views

Magento 2.2.x cache disabled automatically

First of all, I couldn't find any info about this kind of issue anywhere on the web. We have a production environment with git integration. We pull our changes to it only via git (git pull). The ...
15
votes
1answer
572 views

Conditional RequireJs configuration (Load requirejs-config.js programmatically?)

I would like to replace a RequireJs component only on certain conditions (for example, based on configuration). Is there any way to programmatically prevent loading of my module's requirejs-config.js ...
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 ...
13
votes
1answer
1k views

Set default values for a multiselect ui-component

I have a custom entity in my magento 2 install. And one of the fields in this entity is of type multiselect and contains the list of all countries. I'm using the ui-components for my admin form. Since ...
11
votes
4answers
13k 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 ...
11
votes
0answers
489 views

Magento 2: Observer add product to cart?

I've read some other post about adding products to cart, but nothing seems to fit. I've an observer for checkout_cart_update_items_before that adds another product in same qty if specific product is ...
10
votes
5answers
29k views

Magento 2.2.2 : Allowed memory size of 792723456 bytes exhausted (tried to allocate 184320 bytes)

I am working in magento 2.2.2 and when I save product It will display this error. Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 184320 bytes) in /var/www/html/...
10
votes
4answers
5k views

Add rule to rules.js Magento2

How to add new rule to rules.js? I have created extra-rules.js define( [ 'jquery', 'Magento_Ui/js/lib/validation/validator' ], function ($, validator) { "use strict"; return ...
10
votes
2answers
14k views

Magento 2: How to get current language of store?

I'm trying to show a custom block for each store view / language. Therefore I want to create switch statement like: $lang = // Get language code or store view code here; switch ($lang) { case '...
10
votes
2answers
3k views

How to solve indexer status “suspended” (n in backlog)

One of the indexers that are configured to be updated on schedule is locked in the state "suspended" and does not get updated anymore. Output of bin/magento indexer:status +-------------------------...
10
votes
2answers
4k 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-...
9
votes
5answers
25k views

Magento 2 - Get Subcategories of Specific Parent Category

What I'd like to do is grab all of the child categories of a specific parent category. I'm assuming the best way to do this is by using the parent's ID and of those child categories that are returned, ...
9
votes
5answers
11k views

Magento 2.3.0 “A technical problem with the server created an error.” When uploading the logo image

I'm using Magento 2.3.0, with php 7.2 version, on a ubuntu os. Everything looks working fine, but when I try to go into Magento backend, Content - Design/Configuration - Header, and I try to upload ...
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
9
votes
6answers
14k views

Magento 2 : How can I get the sitemap in magento 2?

How we create the sitemap page in Magento 2 like same we have in Magento 1? http://example.com/catalog/seo_sitemap/
9
votes
3answers
27k views

order confirmation email not send in magento 2

I Installed magento 2 on my vps server and configured store email like this but order confitmation email will not send to the customers what should I do , should I setup cron as some link ...
9
votes
1answer
2k views

Magento 2 Error in browser console Expected to start loader but did not find one in the dom

I have developed site in Magento 2.2.0 and created custom product listing page. I have used add to cart functionality using ajax but in console giving error:- "VM1386:5 Expected to start loader ...
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 ...
8
votes
3answers
1k views

Magento2 which command Run and when to Run

Kindly Clear Difference Between php bin/magento cache:flush and cache:clean and when they need to Run . which tasks Output to need cache:flush or clean ** and which task need these Commands => **di:...
8
votes
5answers
15k views

How to change currency format in Magento 2?

Currently the price shows like $2.999,00 I want the price to show like $2,999.00 for locale es_MX (spanish, Mexico) in product pages, anywhere else the currency format is correct. I've tried all ...
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( '...
8
votes
2answers
10k views

Magento 2 - I need to create simple custom report with date range and other column filter (filter should be outside of grid)

I need to create custom report which is just like magento default reports. I go through the Internet I found this https://github.com/degdigital/magento2-customreports but In this report data is ...
8
votes
4answers
3k views

How to update customer address using custom Api in magento2?

I have created custom API to update customer address using customer id or address id. Below code I used to implement it. [Vendor]/[Module]/etc/webapi.xml <route url="/V1/address/createUpdate" ...
8
votes
2answers
561 views

Magento 2 Show timepicker using UiComponent

I want to show Timepicker in Ui Component Form. I could able to add the time field by using below code but not able to save value. Can anybody help on it. <field name="start_time"> &...
8
votes
1answer
509 views

Restricting customers to max of (some number) purchases for a certain product in Magento

Is there any good modules out there that can handle this? Or would this be a custom event / observer that needs to be written? Here's an image on a non magento site that shows specifically what i'm ...
7
votes
3answers
2k views

Magento 2, how to change the the word `IN STOCK` in product description?

Using Magento 2.2, Front-end, Product-Calalog. I want to rename the word IN STOCK to other word.
7
votes
2answers
1k views

Different product layout based on product

What I have tried so far As the title describes. How can one implement different layouts per product based on a value on that product (in this case a custom EAV on the Product entity) At first I ...
7
votes
1answer
4k views

How to display Yes/No values in admin grid (Magento2)?

I have created a InStock column in admin grid and table. In table, Instock column values are 0 (or) 1 based on productstock. In admin grid, the Instock column values are dispalyed 0 (or)1 . But i ...
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
1k views

Magento 2 .2 - How to add Static Product Prefix to Product Url?

I would like to add a Product Prefix (Static Path) to product URLs. Something like www.test.com/product-prefix/product1.html So all products url of the website follows the same structure - www.test....
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....
7
votes
1answer
3k views

Dotmailer connector API endpoint cannot be empty

An error has happened during application run. See exception log for details. [2018-01-12 02:00:11] main.CRITICAL: Dotmailer connector API endpoint cannot be empty. {"exception":"[object] (Magento\\...
7
votes
1answer
166 views

Magento 2 - Cache warmer for multiple server

I have integrated a cache warmer module. Using cronjob it runs and creates cache for all the pages, and it's working properly. I have multiple servers (Let's say 2 servers), until now there is no ...
7
votes
4answers
2k views

Magento 2 : Dynamic PDF and image attachement with order email

I need to attach PDF and images with order email. I have dynamic PDF and image path which is stored in quote_item table. I have debugged code to attach image/PDF to order email. <preference for="...
7
votes
1answer
1k views

Run static tests for a specific module

I am running php bin/magento dev:tests:run static to check my code quality but it takes a really long time. Is there a way I can run them for one module and/or one theme?
7
votes
1answer
218 views

Magento 2, cannot use all option attributes when creating new configuration product

Using Magento 2.2, Back-end, Catalog-Product. I cannot use all product attributes for a new configuration product. Why can't I use all attributes in Stores -> Configuration? New Product Catalog-...
7
votes
3answers
966 views

Magento 2 Install error: “There is no such engine:”

I tried to install Magento 2.2 EE on my local with MySQL 5.7.21 and PHP 7. On the command "bin/magento setup:install" it starts to populate the database until a point when it crashes with the ...
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, ...
6
votes
1answer
6k 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/...
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
2answers
318 views

Magento 2 : Remove Delete Image checkbox from image type system configuration

How can i remove 'Delete Image' options from image uploder in system configuration <field id="image_path" translate="label" type="image" sortOrder="1" showInDefault="1" showInWebsite="1" ...
6
votes
1answer
11k views

Magento 2.2 is not working in PHP 7.2.0

I am working on Magento 2.2. Recently I updated my PHP version to 7.2.0, then i am facing the Warning like this: My file.php is : <?php /* ==New BSD License== Copyright (c) 2012, Colin ...
6
votes
3answers
7k views

To remove product review tab in product page in magento 2

I need to remove review tab in product page.Please suggest a solution catalog_product_view.xml in my custom module <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
6
votes
3answers
997 views

Magento 2.2.5 : Cant go to execute() in Controller

I'm doing a simple CRUD custom module after this module C:\xampp\htdocs\magento\vendor\magento\module-cms\Controller\Adminhtml\Page\Save.php and I have a controller to save/create/add the "students" ...
6
votes
3answers
11k views

Magento 2: setdata() is not saving the values into the database

Controller file Post.php <?php namespace QaisarSatti\HelloWorld\Controller\Index; class Post extends \Magento\Framework\App\Action\Action { protected $_objectManager; protected $hello;...
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
1answer
780 views

Magento 2 Ui Component Difference between <setting> & <argument> node

I am developing one custom module in Magento 2.2.2 where I have referenced some internet blog and Magento core extension like cms-page or cms-block. In their grid_listing.xml files wrote code ...
6
votes
1answer
482 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
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 ...

1 2 3 4 5 50