Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

1,189 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11
votes
0answers
493 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
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
43 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
427 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, ...
5
votes
0answers
116 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
2k 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
220 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
311 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
0answers
401 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
792 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
1answer
70 views

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

How to create simple example of React JS Module?
4
votes
1answer
122 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
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
151 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
367 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
443 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
1answer
177 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
912 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....
4
votes
0answers
96 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
223 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
502 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
471 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
118 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
38 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
183 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
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
487 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
541 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
203 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
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
4answers
740 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
0answers
51 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
88 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
74 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
37 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
46 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
308 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
83 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
681 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
652 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
110 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
307 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
72 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
132 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 /...

1 2 3 4 5 24