Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
0
votes
0answers
98 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
51 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
32 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
38 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
24 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
26 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
19 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
71 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
47 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
32 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
24 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
145 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
20 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
157 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
24 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
44 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
76 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
22 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
31 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
30 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
29 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
27 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
32 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
181 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
39 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
37 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
51 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
42 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
44 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
96 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
18 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
26 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
14 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
203 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 ...
2
votes
1answer
173 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
325 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
67 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
33 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
70 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 ...
1
vote
0answers
52 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
22 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
38 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
37 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
259 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
399 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 ...