Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

1,124 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11
votes
1answer
894 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 ...
6
votes
1answer
466 views

Swagger available to the world wide web

On any given Magento2 website, you can navigate to https://yourmagentostore.com/swagger and access the swagger UI for API methods. One of the methods that you can test before being authenticated is ...
6
votes
0answers
444 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 ...
6
votes
1answer
2k 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
0answers
55 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
678 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 ...
5
votes
1answer
1k 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....
5
votes
0answers
126 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
1answer
378 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
376 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> ...
5
votes
1answer
933 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 ...
5
votes
2answers
704 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 ...
5
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, ...
4
votes
1answer
229 views

Magento 2 : How to create simple example of React JS Module?

How to create simple example of React JS Module?
4
votes
1answer
130 views

How to downgrade magento enterprise to community?

I want to migrate magento enterprise 2.2.7 to community 2.2.7, so anyone have steps for that. I used this link but its not sufficient. Link >> https://blog.magepsycho.com/migrate-downgrade-magento-2-...
4
votes
0answers
29 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
239 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
639 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
1answer
315 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,
4
votes
1answer
493 views

reindex does not works on magento 2

Have tried below commands provided for similar queries to resolve reindex issue but failed. php bin/magento indexer:info php bin/magento indexer:status php bin/magento indexer:reset php bin/magento ...
4
votes
1answer
608 views

Injecting and calling custom knockout component in another component

I am using 2 components for multi-select and select input fields. Multiselect component - define([ 'underscore', 'uiRegistry', 'Magento_Ui/js/form/element/multiselect', 'Magento_Ui/...
4
votes
0answers
119 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
345 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
1answer
1k 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 ...
4
votes
0answers
604 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
1answer
154 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 ...
4
votes
0answers
42 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
197 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
3k 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
1answer
2k 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
557 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
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
224 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 ...
3
votes
0answers
55 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
232 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
85 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
45 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
79 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
527 views

Magento 2 blocks and templates

Following are the 4 conditions. Single block and multiple templates - I think this is possible and we use it frequently while customizing Magento. Multiple blocks and single template - Never seen ...
3
votes
0answers
222 views

Allow Backorder for Admins only Magento 2

Does anyone know how we can setup to allow backorders to happen only for orders placed in the backend admin? So customers on the frontend store would not be able to place an order for an out of stock ...
3
votes
1answer
1k 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
21 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
1k 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
175 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
407 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
117 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
0answers
179 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
174 views

“mcrypt_module_open is deprecated” exception in cron in Magento 2.2.6 on PHP7.1 ?

The method is silenced in core still cron throws exception if debbug mode is enabled. mcrypt_module_open is deprecated // @codingStandardsIgnoreStart $this->_handle = @mcrypt_module_open($...
3
votes
0answers
431 views

Magento2 checkout gives “Cannot read property 'items' of undefined - totals.js:22”

When checking out out as a logged in user, adding my address in step one and clicking to proceed to the next step, I get the following error; Cannot read property 'items' of undefined` on line 22 ...

1
2 3 4 5
23