Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
4
votes
3answers
492 views

Add videos to products programatically

I know this question has been asked before: Add video to product programatically Magento 2.2.5 : Add video to product programmatically Importing product videos maybe others but I need ...
1
vote
2answers
2k views

How to remove edit and delete button from minicart?

I tried, vendor\magento\module-checkout\view\frontend\web\template\minicart\item\default.html I removed below lines <div class="product actions"> <!-- ko if: ...
0
votes
0answers
311 views

Can I delete generated folder after compilation in magento 2?

I have faced error in production mode while clicking on the custom menu in admin.in developer mode, everything works fine. Fatal error: Uncaught Error: Call to a member function setActive() on ...
0
votes
1answer
48 views

Add custom billing fields order view

I added to checkout custom fields following this guide, named 'customer_pec' and 'customer_recipientcode'. For each order I save the data in quote and in quote_address tables Now I want to add the ...
0
votes
0answers
22 views

Magento 2: How to pass default yes for general customer

Hello I have created wholesaler form in that I have created one functionality if wholesaler customer not approved then it can not be a log in for that I have created one custom attribute is_verified ...
1
vote
1answer
566 views

Remove some states from dropdown on billing step on magento 2.2

I need to remove some states/regions from checkout dropdown in the billing step, and different states/regions from shipping step on magento 2.2. i have used this How to remove Guam, Palau, and other ...
0
votes
1answer
765 views

Magento 2 sort options

I used Magento 2 add Sort By Best Sellers Option on category products litsing page and Magento 2 Sort by New Products and Most View Product for sorting options. now I want to add price (high to low) ...
0
votes
2answers
972 views

Magento 2.2- stop newsletter popup to display on all pages

I am using cleversoft novetty theme. My newsletter pop-up appears on all pages that's so irritating. I want it to display only once at homepage whenever someone visits my site. here is the coding of ...
2
votes
2answers
14 views

Use quote in csv module translation file

I'm trying to translate a module strings, and use a quote in the translated text, tried this "If the quote is approuved, simply click to ""proceed to checkout"" and follow steps online to confirm ...
1
vote
1answer
56 views

How to override tax Block In magento2

I want to override the order of "Total Excluding Tax" and "Total Including Tax" in the order confirmation email so I tried to use preference to override, but its not working. I want to override this ...
6
votes
2answers
2k views

Add Phone Number column in sales order grid

I am trying to add phone number column in my order grid. I have added new column through sales_order_grid.xml in my ui_component directory. Code is below: <?xml version="1.0" encoding="UTF-8"?>...
1
vote
1answer
100 views

How to remove interlacing from the PNG files in magento 2?

I have added a third-party extension for XML sitemap. When I generate a sitemap, I am getting "Service Unavailable The server is temporarily unable to service your request due to maintenance downtime ...
1
vote
2answers
1k views

We can't find products matching the selection

I just updated to 2.3.0 and when i try to open any category page -> instead of filters i'm getting "Compare products" and "My wishlist" + . instead of product list getting message "We can't find ...
0
votes
1answer
23 views

Magento2: How to call js function in custom file

I want to call a particular third party js function in my custom js file. XXX/YYY/view/frontend/web/js/view/payment/method-renderer/cashondelivery-method.js. define([ 'Magento_Checkout/js/...
3
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 ...
2
votes
2answers
885 views

Ui form: Edit functionality: Image Preview in magento 2

I have created Ui form. In that, I have uploaded a image which is also saved in DB and shows preview in admingrid. It shows image preview for a new action But it is failed to show image preview and ...
0
votes
0answers
17 views

Eliminating JS and CSS build processes

We're trying to eliminate the entire process on making the build of JS and CSS. What we exactly want is that we will create entire JS and CSS files manually and load them as a part of footer(No ...
1
vote
1answer
626 views

How to get MSP Recaptcha Module on custom Form?

I have a custom form inside a modal in a configurable product page which requires MSP Google ReCaptcha to be implemented. I tried to include the Recaptcha block in my layout file but it is not showing ...
0
votes
1answer
24 views

Extension Attributes is not working

I have added one field i.e. checksum alongwith coupon code on payment page. Now I want to get and set checksum field. I tried, etc/extension_attributes.xml <?xml version="1.0"?> <...
0
votes
0answers
21 views

Retrieving data from third party DB tables and adding it to transactional emails In Magento 2

I use a third party platform to manage my shipping called ShipperHQ. It allows me to offer click and collect and delivery with calendar dates and time slots. That platform creates it's own tables in ...
0
votes
1answer
39 views

Magento 2: Captcha issue on Page load

I'm using Magento 2.2.7, I enabled Captcha in Store->Configuration->Customer configuration->Captcha Enabled for create user and forgot password forms. Captcha always displaying incorrect even I used ...
0
votes
3answers
673 views

Sorting Grid Column in magento2?

I have created a ui component grid . How to sorting the admin grid <?xml version="1.0"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
1
vote
1answer
208 views

Magento 2.2.2 Javascript Bundle error

I am currently using Magento 2.2.2 and all is fine with JS bundling and minifying off. However, when I enable js bundling I get a JavaScript error. I think this is related to a require.js config file....
3
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 ...
0
votes
0answers
130 views

User Login not Working after Migration 2.2 into 2.3.1

I have Just Migration Magento 2.2 store in 2.3.1 Version but Customer User login not working after that. Give me below error. The account sign-in was incorrect or your account is disabled ...
0
votes
1answer
30 views

Error reindex catalog_product_attribute magento 2

After running reindex catalog_product_attribute, I get an error - (General error: 1114 The table 'catalog_product_index_eav_temp' is full, query was: INSERT IGNORE INTO catalog_product_index_eav_temp ...
2
votes
1answer
472 views

Magento2 in How to Remove options and price section on configurable product by custom module?

I want to Remove options and price section on the configurable product by the custom module. I have one configurable product attribute yes/no type. If select yes then remove this section if no select ...
1
vote
3answers
783 views

Magento 2 - Changing the PayPal logo on the Checkout page

I am trying to change the PayPal logo that appears on the checkout page, just before the customer is forwarded to PayPal to make a payment. Here is a screenshot: I looked everywhere and tried to ...
0
votes
2answers
487 views

How to get customer group in custom module admin page forms in magento 2?

I am creating a custom module. I want to assign Customer Group/s to one of my custom table. In my Grid.php I did customization like this Path : app\code\Myconpany\BusinessPartner\Block\Adminhtml\...
4
votes
3answers
583 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, ...
1
vote
2answers
589 views

Custom Translation in Magento 2

I cannot make translation for Magento 2. What I've been doing is: Created a custom theme Now I want to apply some german translations Made a csv in vendor/theme/i18n/de_DE.csv Tried to bin/magento ...
0
votes
0answers
15 views

Different price between PDP and cart

A client uses bundle products with discounts, which are set as a percentage of the original price. The discounted price is rounded to two decimals on the PDP and used in the total price calculation (...
1
vote
3answers
686 views

Unable to serialize value problem with Magento 2.2.6

Please teach in order to solve the problem. cd /vagrant sudo php bin/magento setup:upgrade sudo php bin/magento setup:di:compile sudo php bin/magento setup:static-content:deploy sudo php bin/magento ...
2
votes
2answers
674 views

Invalid method Magento\Eav\Model\Entity\Attribute::isAllowedForRuleCondition

I am getting an issue on Magento 2.2 when trying to create promotion rule. This error occurs sometimes and the error disappears if run Magento upgrade command. But it comes again sometime.
-1
votes
1answer
33 views

Magento 2 how to get sorted children categories?

Can I get the sorted children categories? For example, I need sorted categories by the category name in the object $subcats in below code: $subcategory = $objectManager->create('Magento\Catalog\...
8
votes
5answers
20k 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, ...
3
votes
1answer
3k views

Insert custom variable into email templates in magento 2

I'm trying to insert custom variable(company, Phone Number) into my customer email template. But it's not working for me. {{template config_path="design/email/header_template"}} <p class="...
3
votes
0answers
137 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-...
6
votes
1answer
3k 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 ...
3
votes
3answers
1k views

Area code not set: Area code must be set before starting a session when UpgradeData

I'm using magento verison 2.2.5 and i try to use Setup/UpgradeData.php to run a model function to insert data into database from an external API. but when i run php bin/magento setup:upgrade i always ...
1
vote
1answer
49 views

how to Import CSV in magento 2 and insert in database Table

Here am added import custom upload drop down to magento backend succesfully. while am importing data its not getting insert into database, its showing Please enter a correct entity model. error class ...
0
votes
0answers
18 views

Magento 2.2 .6 - An exception is printed on the administrator edit screen

An exception is output on the screen when the screen changes from the administrator list screen to the administrator edit screen. Below are the exceptions. How can I fix this problem? 1 ...
3
votes
0answers
421 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 ...
0
votes
0answers
45 views

Magento admin URL failure

I successfully changed my store domain name and I was able to access my admin URL. Now when I changed my admin URL and getting 404 error. I followed these steps: STORES → Configuration-Admin-ADVANCED-...
5
votes
3answers
975 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/...
0
votes
1answer
731 views

Magento 2.2: Order, Invoice, and Shipment do not display in admin grid

I added a product to the cart and create order. It displays properly on the front side in "My Order" tab. But, when I checked in admin side order grid, then records not updated in order grid. I have ...
0
votes
1answer
625 views

Magento 2.2 - Cannot update attribute values

I've created some custom product attributes with REST API, correctly populated them and assigned values to products. Everything works fine in dev environment whereas I got difficulties in staging ...
0
votes
1answer
123 views

Stock and Out Of Stock filter in Layered Navigation

I try to add Stock and Out Of Stock filter in the Layered Navigation. I set the configuration of the attribute "quantity_and_stock_status": In the storefront I look the filter, but if the ...
0
votes
0answers
18 views

Magento 2.2 customer attribute value not update on front-end if cache it not cleared?

I have created a new customer attribute. In a custom page, I want to show that new attribute's value. Due to the full page cache, it doesn't show the data as I update it from the backend until I ...
0
votes
1answer
2k views

No such entity with customerId

I get this error when trying to register an account : No such entity with customerId = 13818 I think it might be some old custom attribute that is the root of the problem. How can I clean the ...