Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

1,214 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
0answers
360 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 ...
9
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-...
5
votes
0answers
37 views

Magento2 : Reduce time of Product Update API Using REST

I have created an API to update Product Price, Product Cost, and Tier prices. The issue is the API response timing in around 7 to 8 secs every time for a single product update. How can I reduce this? ...
5
votes
0answers
105 views

Module version in composer.json

I'm running the static tests on one of my modules and on magento version 2.3 it reports an inconsistency: Version must not be specified in the root and package composer JSON files in Git Failed ...
5
votes
2answers
1k views

Slow transaction on /customer/section/load Magento v2.2.5 CE

I was recently seeing slow response times on our Magento 2.2.5 CE installation, so we installed NewRelic to monitor some site metrics. One thing that instantly stood out to me was the /customer/...
5
votes
1answer
131 views

This order no longer exists for all sales orders > 1 month

i just realized that i cannot open any SO which is created more than 1 month ago, i'm getting error This order no longer exists : respective records exist in tables sales_order and ...
5
votes
0answers
365 views

How to ignore(remove) <update handle=“name” added in other layout

module-sales/view/frontend/layout/sales_order_view.xml has following code: <update handle="sales_order_info_links"/> Is there any pretty way to remove such updates? p.s. I know about ...
5
votes
1answer
1k views

Magento 2.2.1 Checkout page broken and Js fail to load error

I have installed Magento 2.2.1 and set up my custom theme but checkout page looks broken and consoles showing errors: Not sure how to resolve this issue. Need help how can this be resolved. How ...
5
votes
1answer
683 views

Pass data to child template in cart-items of checkout page

My site is a market place site where vendors(sellers can sell their product). Now i want to customize the to group items in cart by each vendor like this: http://prntscr.com/hmsam6 ...
4
votes
0answers
28 views

Where, why and how are we using Data Providers in Magento 2

Explain how to use Data Provider, situations and requirements. Tips and advices will be a plus.
4
votes
0answers
105 views

How to limit the search index fields in Magento?

We are using elastic search 6.x and facing search index limit exceeded error. As per this doc https://support.magento.com/hc/en-us/articles/360003290654-Exception-on-category-page-with-...
4
votes
1answer
239 views

PayPal All-In-One Payment Solution - Clone to multiple options in checkout process

TLDR; Clone "PayPal All-In-One Payment Solution" payment method to have THREE different payment options in “Payment Method” section of the checkout process. Magento 2 comes with "PayPal All-In-One ...
4
votes
0answers
304 views

How to display and save extension attributes on Magento 2 Admin create order page

I have created extension attributes to order for rest API services. Also, I'm able to display the attributes on the order grid. How can I display the same attributes on admin create order form and ...
4
votes
0answers
79 views

Apply unique images by attribute to each sku magento 2 programmatically

In magento2 - How can I perform this task through a script? I already relate the configurations to the product with this segment $attributeModel = $this->objectManager->create('Magento\...
4
votes
0answers
149 views

Magento2 - Removing exist item during update items from cart :

Magento2 - I am doing some customisation work on cart page. I want to add product multiple times with same configuration during update items. Add to cart is working good but existing items get removed ...
4
votes
2answers
373 views

Magento2 Delta Migration Issue

I have already migrated from Magento1 but after completed migration, I've added some more products on Magento1 site & also some customers have been added. So I want to include those products,...
4
votes
0answers
398 views

Magento 2 First Name is a required field Error While Placing Order

When I try to place an order after the customer registration/Login. Magento 2.2.5 shows "First Name is a required Field Error". A Sample error message is attached. This is the response I am getting:
4
votes
0answers
250 views

Magento 2 : Display Loader While Ajax call on Column row action?

Grid xml column: <column name="actions" class="My\Test\Ui\Component\Listing\Columns\Feeds\AdvancedActions> <argument name="data" xsi:type="array> ...
4
votes
0answers
37 views

How can I create a key value input type for a product attribute?

I'm trying to get a table on a product page that exists of 2 columns. I want to use this to display technical details about that product. The first column would have a value like: 'volume' and then ...
4
votes
0answers
162 views

Problem with block override in Magento 2

Note: Before marking the question as duplicate or off-topic, please read the question carefully. Scenario: I have to show custom column in the admin grid of a custom extension. So I used override ...
4
votes
1answer
2k views

Magento 2 check which catalog rule is applied to cart product

I have created 3 catalog rules for category. Shoes Category: 5% Off , Catalog Rule Name: Shoes Offer Toys Category: 10% Off, Catalog Rule Name: Toys Offer Fashion Accessories: 8% Off, Catalog ...
4
votes
6answers
2k views

setup:static-content:deploy NOT UPDATE

I'm using Magento 2.2.2 & Redis, I have others language store in my Magento. I edited the app/fronted/(theme) .phtml file and then ran php bin/magento setup:static-content:deploy or php bin/...
4
votes
1answer
1k views

Pop-up modal on clicking 'Add to Cart' button!

In Magento-2.2, when we click 'Add to Cart' button, we need to show the following message as a pop-up modal: "Product is added to cart!" I know how to create modal outside of Magento with css. ...
4
votes
0answers
48 views

REİNDEX SYMFONY ERROR SCREENSHOT

Magento facing indindex issue, please check with below url - CommandNotFoundException ERROR My Screenshot KALİ: https://image.ibb.co/gu6fWb/Screenshot_from_2017_12_29_03_05_41.png HELP THANX GUYS
4
votes
1answer
439 views

Strange product names in analytics

For some reason my product names looks really strange in Google analytics, when fetching data from my Magento2 installation. For instance GEAR\u0020H\u00E5ndmixer\u0020Olivia\u00201.0\u0020Rosa when ...
4
votes
2answers
483 views

Magento 2.2.1- How to fix ColorPicker issue in admin configuration?

I have used custom color picker in my extension and I remove it but got this error. I checked following questions but not working anymore in Magento 2.2.1. Magento 2.1.1 - How to add color picker in ...
4
votes
1answer
2k views

Magento 2.2 - Breadcrumbs issue

Currently i've got products in a category sub of default for example: Root -> Sub cat -> product I've noticed that on the product page itself the breadcrumbs are working fine for some products and ...
4
votes
1answer
195 views

Magento2: Cant change store in product listing and product detail page

I have successfully created multistore with different languages with URLs like: http://localhost/magento22/english/ http://localhost/magento22/french/ I can change store only in homepage. When I go ...
4
votes
1answer
134 views

Add and edit words to Magento 2 language dictionary

In Magento2 - I have installed language pack from MagePlaza. Most of the words got translated, I need to edit the untranslated words. I edit in this file app/i18n/mageplaza/da_DK.csv and deployed ...
4
votes
3answers
617 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, ...
3
votes
1answer
39 views

Magento 2: No data migration tool matching version

My Magento version is 2.2.9. No matching data migration tool exists. What should I do? Should I install Magento version 2.2.7?
3
votes
1answer
36 views

After enabling the SSL Magento gives 404 error to internal pages and to css and js

I am having a very irritating issue after i enabled the SSL in my website. I changed the Base URL (Secure) from http to https and I set "Use Secure URLs on Storefront" to YES. Then I regenerated ...
3
votes
0answers
70 views

How to reinstall module without any downtime or trigger InstallSchema.php on already installed module?

I am trying to reinstall a module on Magento ver. 2.2.8 to trigger the InstallSchema.php of a module without any downtime. My question: Is there a way of reinstalling the module or at least running ...
3
votes
0answers
30 views

Email not sending from admin in magento2

If I can place an order from the frontend, then the order email was sent successfully. But in the admin side, (Invoice, shipment, notify, send email) Email is not sending in live. But both side ...
3
votes
0answers
33 views

Magento2: Shipment issue in admin order

I trying to create a shipment with track id for the order. but it displays 404 error in chrome browser after enable bundling option in production mode. How to solve the issue. Thanks. And the ...
3
votes
1answer
450 views

Magento 2: Uncaught TypeError: Cannot read property 'items' of null for restricted permission user

Note: This is not a duplicate of any similar error I have found a strange bug in Magento 2. It shows the following error in the browser's console for only restricted admin user (the user which has ...
3
votes
0answers
20 views

Is it possible to set default checked for selected Product Categories?

In magento2 - For some specific requirements, I want to have some of the categories for the products selected by default, How I can achieve this?
3
votes
2answers
301 views

Run Magento 2 inside a Docker Container

Is there a way to run my existing magento 2 project inside a docker container? I have an existing project that is run inside a vagrant but I'm encountering a lot of issue in the vagrant and we decided ...
3
votes
0answers
78 views

Magento 2 ExportButton component Product grid not working

I have added ExportButton on admin product grid and when i click on export it shows error Exception #0 (Magento\Framework\Exception\LocalizedException): A joined field with this alias is already ...
3
votes
0answers
191 views

Magento 2 How can I add State and Country attribute for customer in Admin?

How can I achieve State and Country field functionality in Admin under customer Account Information? I have referred this link to create in front-end https://magecomp.com/blog/create-country-...
3
votes
0answers
45 views

Magento 2 - product details tab title as an clickable link url to another page

How to make the product details tab title is clickable link, and grab the SKU from the current product page to the link? For example, I created a custom product tab called "Download", and when ...
3
votes
1answer
134 views

Any Observer or plugin event for specific module disable?

I want to perform some action when my custom module gets disable. Is there any observer event or plugin event that being fired when i disable my module? Any help would be appreciated. Thank you,
3
votes
1answer
603 views

How to disable “Cron Job” logging into system.log file in Magento 2

My logs are being flooded with cron jobs updates. How can I disable this? [2019-02-27 06:28:02] main.INFO: Cron Job outdated_authentication_failures_cleanup is run [] [] [2019-02-27 06:28:02] main....
3
votes
0answers
116 views

Import products not escaping forward slash in category

I'm trying to import products into v2.2.7 but apparently this has been a problem since 2016 and has not been resolved until v2.3.x. When importing to magento, some categories are like Socks/types a /...
3
votes
0answers
444 views

magento 2 custom email template image/logo not displayed

I am custom template for Magento 2 Created two new email template in admin backend order confirmation email template Shipment notification email template Both are sharing same header and footer ...
3
votes
1answer
297 views

How to return search API response from controller in magento 2?

I have an API(ukvehicledata) for search using registration id. I want to integrate with magento 2.2 I am getting response in controller as JSON format. I have converted it into an array. Now I ...
3
votes
0answers
452 views

Filter Condition Callback in custom admin grid using layout XML file

Note: I am using layout XML file to create custom admin grid, not UI components. I am working on a custom module where I have created a custom grid using layout XML file. Below is the sample code of ...
3
votes
0answers
107 views

Apply Cart Price Rule (Coupon) on empty cart

Is it possible to apply a Cart Price Rule using a Coupon to a customers cart when the cart is empty? The reason is the following: We’d like to apply a discount code (cart price rule) for customers ...
3
votes
1answer
1k views

How to change City field to a dropdown in Checkout step Magento 2

I tried multiple solutions found in here, but none seem to fit, the closest one was this one Magento 2 : How to change UI field(s) dynamically, here is my implementation of it: My\Module\view\...
3
votes
1answer
91 views

How to change the current password optional

How do I change the current optional password in edit account section in Magento 2 as customer is already logged in, hence I don't want customer to put the current password again for the store. How ...