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
4
votes
0answers
28 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
160 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
99 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
43 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
56 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
43 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
9 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
23 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
25 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
104 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
18 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
70 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
122 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
17 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
52 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
42 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
30 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
39 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 ...
3
votes
0answers
35 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
21 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
25 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
18 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
55 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
44 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
29 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
19 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
83 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', $...
1
vote
2answers
30 views

Can I access changed parameters in an after/around plugin?

I want to access a parameter of a method in an after plugin. The value of the parameter has been changed inside the original method, and I want to access the modified value. Example: class ...
0
votes
0answers
16 views

Magento 2.2 option products of bundle are considered as simple product in pagination My Order

With reference to the question Magento 2 option products of bundle are not showing in my orders magento core I have removed the following line to get Bundle products option list my order grid. ...
0
votes
1answer
108 views

Redirecting to setup page problem

I'm trying to access my already existing website that was clone from our repository. Now upon access it keeps on redirecting me to the Setup page. I'm not sure what happen but I already some suggested ...
0
votes
0answers
18 views

Magento2 symfony/finder not found and unable to update

I have a plugin I am trying to install and when I run the composer install on the command line I get a error that says Updating symfony/finder (v3.4.22 => v3.4.28): Update failed (Could ...
1
vote
2answers
42 views

A status of 500 error occurs in Magento 2.2 production mode

Yesterday, I switched from developer mode to production mode. After changing the mode, I used the following command:. # /usr/local/php71/bin/php bin/magento deploy:mode:set production --skip-...
1
vote
2answers
65 views

Base image is blank

i hope someone can help me. Base image is not showing when I choose the product, but small and thumbnail works fine.This happened after I imported products again but with the Default attribute (I ...
0
votes
0answers
21 views

magecatalogrule database tables automatic copies

I have a Magento/2.2 (Community) which is creating every about 30 minutes a copy of magecatalogrule_* database tables. In the last hour: 09:36 magecatalogrule_group_websitebda17fbb 09:36 ...
0
votes
1answer
29 views

How to remove side bar of best seller in my account page of Magento 2

I want to remove sidebar of best seller in My account page of magento 2
0
votes
0answers
26 views

Magento 2 | how to use html_entity_decode

The use of html_entity_decode(); is forbidden What can I use instead of it?
0
votes
1answer
28 views

Extend custom button and trigger mage.catalogAddToCart

I created a custom button. What I want is for it to trigger the Add to cart function. Aside from the default add to cart button I want a new add to cart button that will do the same thing. How can I ...
1
vote
0answers
24 views

How to add label on all lines of street fields in backend customer address field and turn then required?

how to add label in the backend admin grid that is sales->order-> Create new order from the backend and add the street label and also remove the required field for the postal code
0
votes
1answer
31 views

Magento 2 | event before checkout#payment

is there an event which gets fired before you get to checkout#payment? Thanks!
0
votes
1answer
29 views

Magento 2 | is it possible to set block class by referencing a block?

I'm currently rewriting a layout file: <referenceBlock name="checkout.cart.totals> <!-- some stuff --> </referenceBlock> Is it possible to set the block class here? Thanks in ...
0
votes
0answers
44 views

Issue with creating shipment in Magento 2.2.8

I have suddenly started getting the following error on some (not all) orders when i try and create a shipment (either via the api or web interface): Shipment with requested ID 33033 doesn't ...
0
votes
0answers
125 views

Magento 2 - css and js error

Im using magent 2.2.8 and i got constant error with css and js: [2019-06-08 01:35:18] main.CRITICAL: Unable to resolve the source file for 'frontend/Magento/luma/hr_HR/Ves_ImageSlider/css/styles....
0
votes
1answer
37 views

Minicart is empty after Magento migration from 1.7.0.2 to 2.2.7

I used Magento Data migration tool to migrate Magento 1.7.0.2 to 2.2.7. I'm trying to migrate Data and Settings. config.xml: <?xml version="1.0" encoding="UTF-8"?> <!-- /** * Copyright ©...
0
votes
0answers
17 views

How to get option from child product(simple) in magento 2

I am working in magento 2.2.5. I need to get all option from child sku. For example : I have sku MH02-L-Purple I need to get that selected option from this sku. Result should be : Color: ...
2
votes
1answer
32 views

Magento 2 - Share customers but not cart between multiple websites or stores

We have a Magento 2.2.8 multi-store setup with 3 websites. One has 2 stores which allows us to share customers between them. However I don't want to share carts between the stores (different ...
1
vote
2answers
33 views

validate-product.js being loaded twice

I added the validate-product.js in my custom module. But when I refresh the page it's loading 2 instance of the validate-product.js. The first one is the js file from my custom module the second one ...
0
votes
1answer
36 views

Pause add to cart function after ajax

I'm generating a filename via AJAX Jquery. Now I need this filename to be saved. My current process is to call a controller that will do the image saving and it will return a filename/filepath back. ...
0
votes
0answers
37 views

How to sort Export options lists in Magento 2

I have to sort Export options in Magento 2 UI admin report grid. I have to keep Excel option in first then CSV option and remove the Excel XML option. <?xml version="1.0" encoding="UTF-8"?> <...
0
votes
2answers
88 views

How to patch Magento 2 Information Leakage scan result?

I scanned the Magento 2 site from the official magento scanner and here's the result. Any ideas on how and what specific patch to apply for this one? Thanks!
0
votes
0answers
17 views

Magento2 SAVE A CUSTOM TAB IN CUSTOMER ADMIN EDIT

I want to create a new tab under "Customers > Edit" grid in the Magento2 admin panel. I followed these tutorials and it worked well but I don't know how to save the new fields which I created. https://...