Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
0
votes
0answers
7 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
8 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
12 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
25 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
20 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
8 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
11 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
16 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
23 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
22 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
34 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
35 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
59 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
1answer
35 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
20 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
38 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
17 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
29 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
29 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
10 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
11 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
35 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
37 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
27 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
32 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
22 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
25 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
27 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
15 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
8 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
17 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
19 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
19 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 ...
0
votes
0answers
15 views

When is Onepage SaveOrder being triggered | Magento Plugin

I'm trying to find out where and when will this method be triggered. I also created a plugin to do a log on this. But it seems that this is not being triggered when I click the Proceed payment button. ...
3
votes
0answers
65 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 ...
1
vote
1answer
49 views

Custom modules disappeared after 2.2.9 upgrade

All custom modules have disappeared after upgrade to 2.2.9 from 2.1.9. When I run bin/magento setup:upgrade, last message is "Nothing to import." but the custom modules are not enabled and not added ...
0
votes
0answers
14 views

Magento 2 getCookie() returns wrong values in observer

I have created an observer that saves cookie data in the sales_order table on the sales_order_save_before event. I have tested that saving to the database in the custom fields works fine but I'm ...
0
votes
0answers
25 views

Getting different result $collection->getData and foreach through $collection

I am facing some weird issue in the magento2 collection. function to get item collection public function getNewItems() { if ($this->_productsCache === null) { $items = $this->...
2
votes
2answers
29 views

Captcha not show on customer registration page

CAPTCHA not show on customer register page when submit form invalid CAPTCHA error error i disable it from admin and after clearing cache enable it but nothing error gone.
3
votes
0answers
25 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 ...
1
vote
1answer
36 views

How Get Products URL's in magento 2.2

I want to get products URL's using product collection,I have tried many links from searching browser,please help me with appropriate file path this is my module catalog import export code to get URL's ...
2
votes
0answers
21 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 ...
0
votes
0answers
18 views

How to set bundle product out of stock if any associate product out of stock?

I want bundle product out of stock if that product's any child have 0 qty
0
votes
1answer
23 views

Magento 2.2.8 ignores my theme's dictionary

I'm hitting my head against a wall on this one. I've gone through not only the Magento documentation regarding custom translations in themes, but also many answered questions found via Google, and ...
0
votes
0answers
12 views

Add bundle product in Wishlist with child product which selected

I am trying to add bundle product into wishlist but there are one issues we found. When i select the child product which associated with bundle product. When we clicked on Add to wishlist, only bundle ...
0
votes
3answers
38 views

Overwrite magento_theme adminhtml ui_component xml file

I am trying to overwrite following file: vendor/magento/module-theme/view/adminhtml/ui_component/design_config_form.xml The changes work when editing the file directly in vendor dir, however, I am ...
1
vote
1answer
37 views

How to create a new price type?

I am now struggling to create a new price type on Magento 2.2.7. Below are what I have tried so far. I have created a module Foo_Bar. And then, first of all, inject the new type into the price pool: ...
0
votes
1answer
23 views

How to add alert box in admin form

I want to add the confirm box while click save button in magento2 admin form. How to do that. Thanks.
0
votes
0answers
13 views

Get Filters selected in admin sales order grid

How can I retrieve the selected filters when a sales order admin grid loads programmatically in Magento 2? For e.g., if the filter is selected as Status = Cancelled, I want to be able to access it ...
0
votes
2answers
23 views

Updating product price from code not reflect in frontend category page until I save from admin

We are updating the product prices every 10min using cron. The prices are pulled from a external API. We are using the following way to update the price, $this->updateProductAttribute('price', $...