Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
23
votes
2answers
22k 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
4k 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 ...
16
votes
1answer
956 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 ...
15
votes
6answers
53k 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/...
14
votes
4answers
6k 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
4answers
9k 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 +-------------------------...
13
votes
1answer
2k 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 ...
12
votes
2answers
23k 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 '...
11
votes
5answers
23k 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
1answer
2k 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
39k 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, ...
10
votes
4answers
7k 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
7answers
18k 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/
10
votes
4answers
6k 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
6answers
11k 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
3answers
7k 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( '...
9
votes
3answers
39k 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
5answers
9k 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 ...
9
votes
6answers
16k 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 ...
9
votes
1answer
1k 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 ...
9
votes
2answers
2k 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....
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
6answers
21k 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 ...
8
votes
6answers
21k 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
4answers
4k 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
2k 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
1answer
8k 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 ...
8
votes
3answers
3k 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.
8
votes
2answers
12k 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
5k 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
1answer
3k views

Magento 2 Add text in checkout page via XML

I'm trying to add custom text in checkout page via XML. I have my custom checkout_index_index.xml file with this inside: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="...
8
votes
2answers
1k 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
4k views

Magento 2 Authorize payment command

I'm having trouble understanding how an "Authorize" command is executed in a payment method. Magento 2 uses Javascript components for payment methods and a "Place order" click initiates the whole ...
8
votes
1answer
2k 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?
8
votes
2answers
2k views

Add a custom attribute to company in magento 2.2.2 for B2B

I am using B2B extensions and I want to add custom attributes to company entity, As a text field and create 6-digit number randomly for that i'm using $customcompanyattribute = mt_rand(100000, ...
8
votes
1answer
739 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
1answer
8k views

How to make auto select first child product of configurable product in magento2?

I am trying to make auto select first child product from the configurable product in product detail page. Is this possible?
7
votes
3answers
11k 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:...
7
votes
2answers
3k 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
5k views

LiveReload configuration via Grunt

Edit : about the possible duplicate ! I would like to mention that this answer does not answer my question, if someone sees that it is the same thing, I invite him to answer me instead of saying that ...
7
votes
2answers
10k views

How to create new product slider in home page in Magento 2

I want to create a new product slider in home page of my website without using external extension.
7
votes
1answer
3k 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
5answers
4k 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
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
489 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
1answer
3k views

Automatically send invoice email after order has been paid in Magento 2.2.3

I am trying to trigger the customer invoice mail after an order has been paid and the invoice has been created. The payment gateways are PayPal Plus (iways) and Amazon Pay. If I understood correctly, ...
7
votes
1answer
261 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
1answer
1k views

How to replace \Magento\Catalog\Block\Product\Context since it's deprecated?

In a custom module we extend \Magento\Catalog\Block\Product\ListProduct, so we need \Magento\Catalog\Block\Product\Context in our constructor. But as I can see, it has now been marked as deprecated ...
7
votes
5answers
1k views

Search Engine Robots Section Can't Be Changed (Grayed Out)

I have a fresh install of Magento 2.2. This is a test site, so we need to hide it from search engines. I found the Search Engine Robots section under - Content - Design - Configuration - Our theme, ...
7
votes
3answers
2k 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 ...

1
2 3 4 5
49