Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

8
votes
0answers
277 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 ...
4
votes
0answers
27 views

Reduce time in API product update in Magento 2

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? ...
4
votes
0answers
46 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
0answers
139 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
77 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 ...
4
votes
0answers
68 views

Apply unique images by attribute to each sku magento 2 programmatically

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\ConfigurableProduct\...
4
votes
0answers
102 views

Removeing exist item during update items from cart : magento 2

I am doing some customization 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 during ...
4
votes
0answers
318 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
35 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 ...
3
votes
0answers
209 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
68 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
306 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
92 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
0answers
249 views

How to create API Endpoint in Magento2?

I want to create API route which can list/return products data in JSON or XML format. By creating this endpoint I will be able to fetch the all the products from Magento. Then I will access it on my ...
3
votes
0answers
384 views

Force to show the billing address form on checkout

What I want to do is to force user to fill out the billing address on step two at checkout. In my javascript file I've added a subscription: quote.billingAddress.subscribe(function (billingAddress) {...
3
votes
0answers
147 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 ...
3
votes
0answers
760 views

Magento2.2 - How to add success message after Ajax Success?

I am submitting the form by ajax. It's working properly but I have one issue with the success message. After ajax success, I have to display success message like default Magento2. How can I achieve ...
3
votes
0answers
314 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 ...
3
votes
0answers
45 views

REİNDEX SYMFONY ERROR SCREENSHOT

[![this is my problem][1]][1] CommandNotFoundException ERROR My Screenshot KALİ: https://image.ibb.co/gu6fWb/Screenshot_from_2017_12_29_03_05_41.png HELP THANX GUYS
3
votes
0answers
52 views

Magento 2.2 : uiComponent Form : show images in a field

I would like to show images in a field without having uploader button. I have images name in the DB column. How could i use a renderer for the field or any other way to do this?
3
votes
0answers
111 views

Add and edit words to Magento 2 language dictionary

I have installed language pack from MagePlaza on Magento 2 . 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 ...
3
votes
0answers
451 views

One customer with multiple customer groups Magento 2

Does anyone know how to apply multiple groups for one single customer? I have seen one result for Magento 1.8 but it doesn't work. I have changed the DB to multiselect and not static value (varchar) ...
3
votes
0answers
60 views

Mapping Magento Test Automation Framework suite to netbeans

I am unable to integrate the MTAF in netbeans. Can you please provide me some ideas ,how to map to netbeans. My MTAF folder structure: and netbeans configuration folder structure steps: open ...
3
votes
0answers
234 views

2.2 Pipeline deployment

I was reading on the new Pipeline deployment here but I don't understand how this is supposed to work in a repository. In developer mode static content is dynamic, but if the build system commits ...
3
votes
0answers
1k views

Magento 2 - Display eav attribute in customer grid (explanation & questions)

So where should I begin. In the last couple of days i've been working on showing custom attributes in the customer grid. There a couple of thing i would like to discuss since I don't really know the ...
3
votes
0answers
940 views

'No such entity' error when saving category as anchor

I have a weird issue in that when I try to save a category as an acher is fails with a 'No such entity' error. Underneath the error there is a futher error of Warning: ltrim() expects parameter 1 ...
3
votes
0answers
728 views

Getting error Invalid state change requested in Magento2.2

When I am placing order by my payment gateway I am getting error Invalid state change requested. I debug the core code and found that is error is coming from plugin used by core classes. i.e Magento\...
3
votes
0answers
514 views

Magento 2.2.0 partial Credit Memo/Refund doesn't work properly

We have to try partial credit memo for Magento 2.2.0 shop admin for below step: 1) Proceed order with default payment and Grand Total are €37.00 2) Create the Invoice. 3) Try to Credit memo with ...
2
votes
0answers
10 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. How to solve the issue. Thanks. And the shipment submit call was canceled.
2
votes
0answers
20 views

How to add the order items images to the the sales_order_item table?

I need to save the images of the ordered items in the sales_order_table when the order is placed using API.
2
votes
0answers
29 views

How to get the ordered items images in the order detail API in magento 2?

I need to get the product image in the order details API of the customer. Please help me to guide how can I achieve this. Thanks in ad
2
votes
0answers
53 views

Magento 2: Getting “regionId is a required field.” when I click button “Place Order”

I am Getting regionId is a required field. when I click button "Place Order" on the checkout page I tried this solution https://magento.stackexchange.com/a/205232/65951 and it worked but then ...
2
votes
0answers
23 views

How to add rowspan class in admin grid?

I just saw in Report > Order count page, if choosing "show by month", it will show the merged row blanks. How can I set the rowspan class by code? Thanks!
2
votes
0answers
41 views

Magento2.2 product import using Magmi

Is Magmi import is compatible with Magento2.2? Is it compatible with grouped and simple products import? Where I can find the Latest version of Magmi?
2
votes
0answers
39 views

Magento 2.2: AMP page is not working after installing varnish

I've installed 3rd party extension for AMP and it was working fine before installing varnish. After varnish, I am getting normal page and it starts fetching amp pages after opening 2-3 pages. Has ...
2
votes
0answers
31 views

Getting an error: No such entity with cartId = 17090. How to resolve it

Magento give me this error when I create order using the backend. When creting the order with frontend, it works fine. I am using multi-website functionality in my project. I have creted custom quote ...
2
votes
0answers
15 views

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

For some specific requirement, I want to have some of the categories for the product selected by default, How I can achieve this?
2
votes
0answers
47 views

Get Quote and Quote Items using Magento 2 SOAP API

I am working with Magento 2 Rest APIs ( For Abundant cart ) and having issue with Quotes, I am able to get all Quotes ( with desired filters, is_active = 1, items_count > 0 ) using API : /rest/V1/...
2
votes
0answers
42 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 ...
2
votes
0answers
40 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 ...
2
votes
0answers
99 views

Magento 2.2 Layered Navigation Category Page issue

Thank you for taking time to read this: We have customised our theme to show Category images on Category Pages – and also Category Banners. All this is controlled form the Category Settings from ...
2
votes
0answers
59 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 /...
2
votes
0answers
42 views

Using Registry and data providers

I want to use Registry class (vendor/magento/framework/Registry.php) But above file mentioned something like this It's usage should be avoid. Use service classes or data providers instead. Can ...
2
votes
0answers
15 views

Is it possible to create bundled products where Magento automatically

Is it possible to create bundled products where Magento automatically gets the pictures for the simple products and shows in the gallery under the main picture? If yes, how?
2
votes
0answers
53 views

Multiple addresses checkout setting wrong shipping rate

Multiple addresses checkout setting wrong shipping rate in the overview (review my order) page. In this particular case I am sending 3 items to one address and 1 item to another address. this image ...
2
votes
0answers
31 views

Magento 2 - how to change the product name in a configurable product

We have allot of custom products that we sell witch means we need to be able to ad those custom products to shopping carts for our customers. Right now we are solving this with a configurable product ...
2
votes
0answers
71 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($...
2
votes
0answers
74 views

How to create a parent category dropdown in admin form in magento2.2

I want to create a drop-down field in admin UI-component form in magento2.(for getting parent category/post) How to do that How to do that Thanks
2
votes
0answers
88 views

Magento 2 order update email message translation

Magento 2 order update email message text "order status" pending etc... translation doesn't work but other email message text content is translated correctly. I have translated every "order status" ...
2
votes
0answers
38 views

Magento 2 get quote item taxes

Below function is not working in M2. This works in M1. $quote=$observer->getEvent()->getQuote(); $taxes_for_items = $quote->getTaxesForItems(); Any alternate solution is available? I need ...