Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

I want to change order of billing address on checkout page in magento 2

please help me to solve this, It's very urgent
0
votes
1answer
22 views

Add script in magento2

I want to measure add and remove products from the cart using tag manager Enhanced Ecommerce. I refered https://developers.google.com/tag-manager/enhanced-ecommerce#cart. How to add this script. ...
2
votes
1answer
22 views

An exception was printed during migration, but I don't know what it means

An exception was printed to the console during migration. Please tell me what you mean. My migration procedure is as follows. 1.Installed Magento version 2.2.6. 2.The application and database were ...
1
vote
1answer
64 views

Error 'Mismatch of data types…' printed during data migration to Magento 2

The following error was output during data migration to Magento 2. If you receive such an error, which file would you like to edit? Also, please tell me how to write. Mismatch of data types. Source ...
2
votes
1answer
26 views

How to secure Magento 2.x guest API

I realized that it is possible to register customers through API without authentication. https://devdocs.magento.com/guides/v2.2/rest/anonymous-api-security.html Just make a POST call to https://...
1
vote
0answers
31 views

About Problems Migrating Data From Magento 1.9.2.1 to Magento 2.2 .6

Magento 1.9.2.1 to Magento 2.2.6 encountered an error with EAV during the data migration process. The error is as follows. Notice: Undefined offset: 151 in /var/www/html/tertiary/vendor/magento/data-...
1
vote
1answer
90 views

Adding extension attribute to customer rest API giving Fatal error

I'm trying to add custom extension_attribute to customer API (REST) in Magento 2. The logic is working for single record API V1/customers/{{CUSTOEMR_ID}} But it is not working for search API V1/...
0
votes
1answer
40 views

Magento 2 Remove Estimate Shipping costs and Tax on cart page based on condition

I want to show/hide "Estimate Shipping costs and Tax" based on customer group. I just do not write to css that hide block as it is bad practice. Is there any way we can disable component based on ...
0
votes
0answers
31 views

Magento2: Coupon code removing issue after merging quote

I have created a custom column 'discounted_total' in quote_address table for discount calculation. use Magento\Quote\Model\Quote\Address\Total\AbstractTotal; use Magento\SalesRule\Model\CouponFactory;...
0
votes
0answers
24 views

Composer Error When try to Update or Upgrade Magento 2.2

I have in my system installed Centos 7 and php-fpm with some version of PHP 7, when I try to use composer update I get this message I would like to know how to fix that problem
0
votes
1answer
26 views

How to edit order programmatically in magento2?

I want to edit order programmatically in magento2. How to do this. Thanks.
0
votes
1answer
58 views

How do I use email variables in phtml in Magento 2.2.x

I need to get the value of an email variable in a phtml file so I can test the value. In transactional emails I would use, as an exmaple <td>"Delivery Date" : {{var deliveryDate}}</td> ...
0
votes
0answers
16 views

Magento2 : get stock qty after edit order?

In edit the order, the previous order will be canceled state and then create a new order. How to get the stock qty for an item when canceling the order before placing a new order. How to get it. ...
0
votes
1answer
21 views

Change wording on post checkout account offer

I need to change the wording on the post checkout page where it offers the user a chance to create an acount and it says "You can track your order status by creating an account." because they wont be ...
1
vote
2answers
48 views

Magento2: redirection problem from observer or Logging Out from two application at same time from observer

I am trying to logout from two applications I have a logout observer, where I am trying to logout from external application and also from Magento. Here Problem is when I am logged out from the ...
0
votes
2answers
74 views

Magento 2 How to get disable/enable child categories?

I am working with display all categories on a custom page, either it is enabled or disabled. When I try to get child categories with "getChildrenCategories()", but it is returning only enabled child ...
1
vote
1answer
116 views

Magento 2 generates thousands of temp table queries on product update

I have a Magento 2.2.5 store with ~20k products and ~250 categories arranged in a tree of maximum 2 sub categories. One of the top categories has 5k products and when I try to remove a product from ...
1
vote
3answers
215 views

magento 2.2.7 configurable products don't show up shipment address in checkout

when configure product's child product purchase at time shipping address missing in checkout my database side catalog_product_entity table 1.when i run reindex command then 2-3 days working ...
0
votes
0answers
17 views

After upgrading magento from v2.1.16 6o v 2.2.5 getting error in static content deployement

After successfully upgrade Magento from 2.1.16 to 2.2.5 when deploying the static content it throwing the below error, further debug to check file is present in the vendor folder. Check Below Error ...
0
votes
1answer
26 views

Set Order Of Imported Product Images Using CSV Magento 2.2

Does anyone know if there is a way to set the order of the images being imported in the additional_images column when running a CSV import? It's worth noting that 3 of the 5 product images already ...
0
votes
1answer
16 views

Magento2: How to display most view product collection in home page?

I need to display product collection in home page in magento2. Thanks.
2
votes
2answers
49 views

Magento cloud hosted M2 EE site compromised and got malware attack

Today i noticed in my client's magento 2 cloud hosted enterprise edition site is compromised. In footer hacker added some link along with following url: <script src="http://write-cdn.com/...
0
votes
0answers
17 views

Magento 2 grid filter(active filter) lost on page reload

I am using Webkul Marketplace ext. and they have issue on active filters. after filtering whenever reloading the page or visiting other page and backing on the filter page then filter get losses and ...
0
votes
1answer
58 views

Convert third party extension shipping delivery date transactional variable format from YYYY/MM/DD to DD/MM/YYYY in Magento 2

This question isn't about how to change the Magento data/time format. I use a third-party shipping platform that stores delivery date as part of the order and the delivery date is order specific. It ...
1
vote
1answer
31 views

Magento2: How to get the old qty of product?

How to get the available qty of the product before saving the product with new qty in magento2. How to do that. Thanks.
0
votes
2answers
79 views

Magento 2 remove version number impact

I noticed if we type /magento_version along with site url then it displays our magento version. So anyone with bad intention can check my version and exploit it. to prevent this I can disable the ...
0
votes
1answer
32 views

Magento2 Products on Category after deployment

I recently did a release on my magento2 instance on production. Everything looked good for a day, then enabled some configuration and styling went away from all product pages. So I reverted that and ...
0
votes
0answers
11 views

Paypal Express (recurring payment) Second IPN(ORDER STATUS) is recieved after 3:30 PM LA time. Why?

When a recurring payment is done using PayPal the recurring profile created IPN is received in an instant but the second IPN is received after 3:30 PM afterward only. The first IPN received is having ...
0
votes
0answers
14 views

How to extend Magento Catalog Image Resize Console command?

In Magento 2.2, there is one command for product image to resize in different sizes. php bin/magento catalog:image:resize This command will read all image dimensions defined in the theme XML(view....
0
votes
0answers
13 views

Magento2 less modification command

Might this is basic query. I am using "Pedona magento theme" for my website, now I need very small modification in style.less /app/design/frontend/pedona/pedona_default/web/css/style.less do have to ...
1
vote
0answers
29 views

Get out of stock product collection in magento2

I want to get the wishlist collection for the customer. $this->wishlist->create()->loadByCustomerId($this->session->create()->getCustomerId(), true)->getItemCollection(); How to ...
0
votes
0answers
31 views

Add suffix to price in Minicart

We have a client that wants to add a suffix to price in mini-cart which depends on a value of custom product attribute (named pack_type). I have already done that for Product and Cart pages by ...
0
votes
0answers
19 views

How to close product image popup? When I click outside of popup content in magento 2

How to close product image popup? When I click outside of popup content in magento 2
0
votes
1answer
24 views

Magento2: How to display out of stock product in wishlist

How to display out of stock products only in the wishlist. How to do that. Thanks.
2
votes
1answer
31 views

same row content repeat in the whole page grid while navigate pagination

The problem : When you apply filter or pagination, then removing filter, same row content being repeat in the whole page grid. Here is the file where I am making mistakes? <?xml version="1.0" ...
0
votes
1answer
41 views

Magento 2 Configurable product additional plus price showing - unsure where price is coming from

Got a strange scenario where getting plus prices showing in configurable dropdown. These are simples associated to a configurable product. Not seeing anywhere where these plus prices are defined. ...
0
votes
1answer
108 views

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails

when i update my any product from magento admin back end below error come SQL STATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (db ...
0
votes
0answers
41 views

Frontend not working after magento upgrade

I have upgrade magento version from 2.1.14 to 2.2.9. Admin panel is working properly but frontend not working. Showing this error: 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\...
0
votes
1answer
116 views

Magento 2.2.9 Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) magento setup:upgade command

I received the error when I try to run on the live site. ( I was able to upgrade to 2.2.9 for the test site, which was cloned from the live site). after i did composer require magento/product-...
0
votes
1answer
61 views

Nicer Magento 2 code

How do I improve this code? I use it in ListProduct.php to get the base price in another currency for products in list.phtml. How can I do this without objectManager? Why should I not use ...
1
vote
0answers
62 views

upgrade issue from 2.1.14 to 2.2 :: magento2

I have upgrade magento version from 2.1.14 to 2.2.0. First time when i run run php bin/magento setup:upgrade command it gives this error: Module 'Magento_TaxImportExport': Module '...
0
votes
1answer
39 views

How to get product rating using object manager in magento 2

i want to get products rating using object manager i tried below mention code but its not working for me please guide me $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
1
vote
3answers
49 views

Magento 2.2.8 cannot find custom email template : Template file 'back_in_stock.html' is not found

I'm creating an extension which sends email from command console and / or cron. https://github.com/DominicWatts/BackInStock/tree/develop In https://github.com/DominicWatts/BackInStock/blob/develop/...
0
votes
1answer
36 views

Magento 2 admin catalog save button not working

yesterday I have imported some products in my store, today when I was trying to do some changes in product edit functionality is not working. Even the Save button is not clickable I checked logs no ...
2
votes
1answer
79 views

Magento 2 Error while running Cronjob : Integrity constraint violation

I have 2 cronjobs that serve data from suppliers to a Magento store (Magento 2.2 (Community)). This has been running for a few weeks without any issue, but this morning I got a whole list of error ...
3
votes
1answer
39 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 ...
0
votes
0answers
12 views

Magento 2.2.5 how to validate custom field in customer registration form with jquery and modals

I've create my own module and db table to add new custom field to customer registration form. The field is "company code". When submit, it should look into company codes table, check if code already ...
0
votes
0answers
13 views

Magento 2.2.7 - attribute is being save in default template when I don't want it there

I am sure this is a simple question but it seems for the last week I have not been able to find it out I am using Magento 2.2.7 and when I used the color attribute then made an attribute set. I move ...
3
votes
2answers
99 views

How to remove simple product from cart by observer programmatically in magento 2.2?

I'm facing problem, I have added total 5 items in cart where 3 items are different colors of same configurable product and other 2 is simple products. When i try to remove simple product from cart by ...
0
votes
1answer
47 views

Modify Product Title Display

I want to prepend a text before the product name is displayed. I've created a file product-title.phtml in my local template and referenced this in catalog_product_view.xml like so: <...