Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
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', $...
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
11 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
17 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
14 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
36 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
38 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
27 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
21 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
21 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
20 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
25 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
23 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
53 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
33 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
11 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
24 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
27 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
33 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
28 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
65 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
16 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://...
0
votes
0answers
19 views

Magento 2.2 - Layered Navigation for Custom Product Collection

I am trying to use my custom product collection for layered navigation in Magento 2.3. But products list are 100% correct but "The layered navigation still displays full collection." Any solution and ...
0
votes
0answers
12 views

shopping cart price rules ( Buy X and Get Y product ) for different sku's

I have a scenario, Where i have created shopping cart rules of type, **Buy X and Get Y product Free** Currently, If I add 1 product with quantity 3 then discount is applied. My Requirement: Need ...
1
vote
1answer
57 views

Delete CMS Block programatically

I just created a CMS Block but I want to remove this programatically. So whenever I run bin/magento setup:upgrade it will delete the block first. Then after that recreate. I decided to do it this way ...
1
vote
1answer
41 views

Magento 2 blocks and templates

Following are the 4 conditions. Single block and multiple templates - I think this is possible and we use it frequently while customizing Magento. Multiple blocks and single template - Never seen ...
0
votes
1answer
40 views

Call block action using Ajax

I would like to call an Action from a custom block that I created which is extending the \Magento\Catalog\Block\Product\View class. Now the idea here is that I will be clicking on the Add to cart ...
0
votes
3answers
45 views

Upgrading from Magento 2.2.6 to Magento 2.2.8 [closed]

How long should it take for developers to upgrade from Magento 2.2.6 to Magento 2.2.8? We have been told 18 hours but that seems a bit too much.
1
vote
1answer
27 views

Magento 2 products backend, product title in list not the same as what is in product

When I load the magento backend, the product title does not reflect the title that is in the actual product. For example, the product might say, "New jewelry ring set" and but in the actual product (...
0
votes
1answer
20 views

What MySQL Collation should I use for Magento 2.2?

Looked for a Magento 2 version of this question but only found a Magento 1. There's 4 that come to mind: utf8mb4_general_ci utf8_general_ci utf8mb4_unicode_ci utf8_unicode_ci Which one should I ...
0
votes
0answers
33 views

Why would you add the modules array in app/etc/config.php to source control?

As of Magento 2.2 it's recommended to add config.php to your source control to facilitate pipeline deployment. I have some questions and issues with this. I'm hoping somebody can share their ...
0
votes
0answers
16 views

How to change color of website dynamically in Magento 2?

I have installed Marketplace extension in Magento 2 and I have overridden default luma theme. In the Marketplace system, every vendor has a different domain or subdomain of the vendor's shop, every ...
1
vote
2answers
29 views

Adding Magento_Catalog to Custom Module

I wanted to override the content of addtocart.phtml which is located in vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml Now I want to modify the content of this ...
5
votes
0answers
33 views

Magento2 : Reduce time of Product Update API Using REST

I have created an API to update Product Price, Product Cost, and Tier prices. The issue is the API response timing in around 7 to 8 secs every time for a single product update. How can I reduce this? ...
1
vote
2answers
65 views

How to Show Product thumbnail (picture) in Sales -> Orders Grid in Magento 2

I have been able to add custom attribute to the orders grid but do not know how to render sold product thumbbnail. How to show product picture on the Sales -> Orders grid? So when a product is ...
1
vote
1answer
37 views

Magento 2.2 - Fatal error: Uncaught Error: Call to undefined method Magento\Framework\App\ResourceConnection::load()

Fatal error: Uncaught Error: Call to undefined method Magento\Framework\App\ResourceConnection::load() in /var/www/html/magento2_dev/vendor/magento/framework/Model/AbstractModel.php:536 Just adding ...
0
votes
0answers
13 views

Magento 2.3.1 - Single Install - Multi Website, Store & Currency - Dashboard not showing sale amounts

I'm running a single install multi website multi currency website. For example The base website and store is US with currency set to $ Website - US | Store - US | View - XYZ US | Currency - $ ...
1
vote
1answer
20 views

How to change the Magento 2.2 Session location from Redis back to File

I use Magento 2.2. Changed session destination from file to Redis. Is there a command to save back to a file?
0
votes
0answers
17 views

Adding subcategory on bundle product on product page ( magento 2 )

is there any way to add subcategory on bundle product in magneto 2 menu and sub-menu
0
votes
1answer
17 views

Hide custom UI element in extended XML file in custom theme

This is original file in code dir of a third part module: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="...
0
votes
0answers
9 views

Add custom widget to created block in install magento

I wanted to add my custom widget to a block that I will be creating under install function. But I can't find any tutorial on this. Right now I have copied the code from here so it creates a block. But ...
1
vote
0answers
47 views

Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in ..t/src/PaygentConnect/Response/Parser.php on line 27

The Clearing module prints the exception. This module is a third-party module. Do you know where the cause lies in the source code? Please tell me. bool(false) 1 exception(s): Exception #...
3
votes
1answer
23 views

Display custom widget to specific product

I created a custom widget. Now I want it to display into the specific product page. Example I have Product 1 and Product 2. I want my custom widget to display in Product 1 but not in Product 2. How ...
1
vote
1answer
30 views

How to “reset” or reinstall Magento 2 without data loss

While working in Magento 2 somehow I have managed to either corrupt some files or permissions. I haven't been messing with xml files but jumping from development to production and back to development. ...
1
vote
0answers
25 views

I want to know how to change the value of “fotorama _ _ caption _ _ wrap” printed in Magento 2 product details

Magento 2 outputs the product title by default. I want to know how to change the title value to a custom attribute (brand) instead of hiding it. I would also like to know the detailed procedure for ...
0
votes
1answer
36 views

Magento 2 + Docker Setup [duplicate]

Anyone have an idea of how to setup docker in ubuntu 16.04 for Magento2? Also able to describe docket concept basic will be better. Thanks
0
votes
2answers
30 views

Magento 2 changing from production to developer I get error Element 'remove': This element is not expected

Magento ver. 2.2.7 Template: Techno Themevast: https://themeforest.net/item/techno-store-electronic-magento-2-theme/22239747 In developer mode everything was working. I switched to production and it ...