Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
0
votes
1answer
78 views

How to edit order programmatically in magento2?

I want to edit order programmatically in magento2. How to do this. Thanks.
0
votes
1answer
120 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
17 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
25 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
54 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
204 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
433 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
292 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
23 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
39 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
24 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
82 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
54 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
77 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
50 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
214 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
35 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
15 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
36 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
14 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
33 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
38 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
29 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
78 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
38 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
96 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
441 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
54 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
412 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
65 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
85 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
86 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
201 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
53 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
220 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
111 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
13 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
14 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
258 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
255 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: <...
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.
2
votes
1answer
565 views

Magento 2 Migration Settings error

I migrate settings from Magento 1.9.3.10 to Magento 2.3, after the migration was successful when I try to reindex or flush de cache from command line I have this error: The website with id 0 that ...
0
votes
0answers
236 views

Magento2.2 sitemap genrate after some product url not showing properly

I have to used Magento2.2 and we are also install in our site this plugin olegkoval/magento2-regenerate-url-rewrites but we are truncate url_rewite table after run this command on our staging site ...
0
votes
1answer
108 views

Layout XML Error - Magento 2

I change the deploy mode to developer on Magento 2 and now I see the following error: 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block': This element is ...
0
votes
1answer
101 views

Override PaymentExtensionInterface

I'm trying to add a new field via KO in the payment method where paymentdata is collected. Right now all I see is the agreement_id as part of it's parameter. Now I added another parameter which is the ...
0
votes
0answers
144 views

New Website 301 Moved Permanently to /default url

Trying to setup a new website on existing Magento installation on Apache server on a subdomain like website2.mysite.com. Have done the following steps: 1) Created Website, Store and StoreViews in ...
0
votes
0answers
14 views

Get Place Order parent container

I'm trying to override Magento\Checkout\view\frontend\web\js\action\place-order.js which contain the code below define([ 'jquery', 'Magento_Checkout/js/model/quote', 'Magento_Checkout/js/...
2
votes
0answers
58 views

Difference between StockStateInterface and StockRegistryInterface

I was using StockStateInterface to get stock qty, it was working fine in development and staging server but was not working in production server. Then I used StockRegistryInterface to get the result ...
2
votes
1answer
47 views

Magento 2 Localization Adding Links in CSV

How to add text with link in csv file of a module. For example, "An error occurred" I want to add text with link like below for this message. "An error occurred.Please contact our customer service&...
1
vote
1answer
310 views

Magento2 Luma move category image so its full width

In my magento 2.2 based site I am trying to edit the catalog_category_view.xml to move the category image above the page-main div and after the breadcrumbs so that it will load full width (in the Luma ...

1
3 4
5
6 7
50