Questions tagged [magento2]

General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'Magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

Error 404 backend when using Varnish

I have installed magento 2.4.3-p1 on Ubuntu 20.04 with Varnish 6, Lets encrypt SSL and nginx. Everything was working until i installed and enabled varnish and edited nginx to listen on port 8080. I am ...
0
votes
0answers
22 views

Upgrade Issues Magento 2.4.3

I upgraded magneto 2.4.3p-1 after i place the order am getting an error Error: Cannot instantiate interface Magento\ReCaptchaUi\Model\UiConfigResolverInterface in /public_html/vendor/magento/framework/...
0
votes
1answer
37 views

Emoji is saving as (???????) in the database Magento 2

I added the Emojo library including JS and CSS files. Then it starts to display on the frontend. When I send the Emoji character via ajax. I am getting Emoji in the param request so while saving the ...
0
votes
1answer
19 views

Adding custom pop up in Magento Admin page

Is that possible to create something like form and selection box in this popup? right now I'm using this code to add custom button in my Plugin class, but I don't know how to add the customizable ...
0
votes
0answers
27 views

Magento 2.2.7 to 2.3.6 Issue

I am trying to upgrade Magento 2.2.7 to 2.3.6. After composer Update and checking php bin/magento -V it is showing magento CLI 2.3.6 I am using PHP 7.3 MySQL 5.7 When I try to run php bin/magento s:up ...
0
votes
0answers
23 views

Magento 2 Cookie not able to clear from JS

I am unable to clear the cookie on my Magento site. I am setting the cookie as below which is done successfully use Magento\Framework\Stdlib\Cookie\CookieMetadataFactory; use Magento\Framework\Stdlib\...
0
votes
1answer
36 views

Magento 2: Different servers shows different TTFB for same project

I have the same project copy on two different servers and both the server shows different TTFB. On one server TTFB is 25ms & on another server it is 3s. Are there any server variables that slow ...
0
votes
0answers
18 views

When i run catalog:images:resize it taked to much of disk space Magento 2.4.3

We had imported the product to our M2 store after that some product images are shown in the frontend so we checked for a solution and ran the catalog:images:resize command some images are shown in the ...
0
votes
0answers
21 views

How i can change email validation magento 2

When customer go to create account (phat : /customer/account/create/) the email validation fail in this case daniel@example.cm, how i can change this validation to improve this ?.
0
votes
0answers
12 views

Database Migration - MySQL to MongoDb

Does anyone tried to replicate magento mysql to mongodb. I know its wierd question. however, its nice to have this option also on my own perspective. What you think guys.
0
votes
0answers
22 views

Currency switcher shows different currency in random pages - Caching related issue

I am running magento 2.4.3 and I am having as default currency EUR in my website and as allowed currencies, EUR and USD only. Visiting the site homepage, EUR shows to be the default currency but when ...
0
votes
0answers
8 views

Removing "require-dev" section from composer.json

Is this a sane thing to do on Production site? "require-dev": { "allure-framework/allure-phpunit": "~1.2.0", "friendsofphp/php-cs-fixer": "~2....
0
votes
0answers
9 views

Magento2 UPS Surcharges Not Being Returned

I am experiencing an issue with the UPS module for Magento2 (2.3). Shipping rates are being calculated but surcharges are not being calculated or applied. I have reached out to UPS and their response ...
0
votes
0answers
36 views

How to move language switcher outside of settings tab on mobile view Magento 2

I trying to move the language switcher on mobile devices to be in the main website menu instead of the settings tab (screenshot below): I found some instructions on how to do that from the layout.xml ...
0
votes
1answer
17 views

I have migrated my Magento 1.9 to Magento 2.4 but Display Actual Price in Magneto 2 backend is not showing?

I have migrated my Magento 1.9 to Magento 2.4 but Display Actual Price in Magneto 2 backend is not showing ? check in ss here is no option for Display Actual Price. Any one suggest me why this is ...
0
votes
1answer
18 views

Magento2: Critical Issue: Emails are not sending

Emails are not sending to any users. Please see the attached screenshot. Any one can help me in this Magento version 2.3.7
2
votes
1answer
27 views

Cannot get custom category attribute value on the category page issue

I made this code to create the custom attribute: $eavSetup = $this->eavSetupFactory->create(['setup' => $this->moduleDataSetup]); $eavSetup->addAttribute( Category::ENTITY, '...
0
votes
1answer
37 views

Magento 2 : Marketplace issue combine swatch-renderer js for 2.3 and 2.4

I have two different modules for 2.3 and 2.4 which is using mixin js, I want both these modules to be compatible in one to submit in the marketplace map: { '*': { 'mymodule/...
0
votes
0answers
13 views

Autofill shipping address using email by ajax but after click on submit button showing error this is a required filled

I have applied ajax on fill email address. After enter email address ajax is running and taking address and fill like below $('input[name="firstname"]').val(obj.addressData['firstname']) ...
1
vote
1answer
20 views

Magento JS Widget not able to observe submit event on Reorder widget

I am working on Reorder product widget of Magento located as vendor/magento/module-sales/view/frontend/templates/reorder/sidebar.phtml It contains the list of products which are recently ordered and ...
0
votes
0answers
19 views

PHP Fatal error: Uncaught Error: Call to undefined method Magento\Framework\Model\ResourceModel\Db\VersionControl\Snapshot::clear()

Have recently attempted to update to 2.3.7-p2 and am getting below error on reindex: PHP Fatal error: Uncaught Error: Call to undefined method Magento\Framework\Model\ResourceModel\Db\VersionControl\...
0
votes
1answer
15 views

How to call Block in product detailed page?

i had created custom block in content -> block -> xyz (block name) now i wan to call this block in product detailed page. How can i call this block in product detailed page?
0
votes
0answers
21 views

Magento2 using graphql filter products that have special price in it

Magento2 How to filter products that have special price using GraphQL? I want to get the collection of products in Response of product query in GraphQL that have special price. How can I achieve this?
0
votes
2answers
25 views

Search through magento admin panel to see which script are loaded where

I am using magento2.3.5-p2 Community Edition I am having a problem on finding the location of certain code, I have tried templatehints, search using grep and find all contents in file but to no avail ...
0
votes
2answers
23 views

URI is not valid and cannot be converted into a string when trying to load website

Preconditions (*) PHP 7.4.27 composer 2.1.4 Magento version 2.4.2-p2 enterprise Elasticsearch 7.16.2 Redis Cache 5.0.14 Grunt 1.0.4 Steps to reproduce (*) Install a fresh installation of Magento ...
0
votes
0answers
14 views

Website Switch in magento 2.4.3

I am trying to achieve website switch for my site but i am getting error , i followed some code but getting error here is my module structure app/code/Rgswitch/switcher/etc/frontend/di.xml <?xml ...
0
votes
1answer
20 views

Magento2 product distance sort and filter

I need a custom extension for Magento2 - sort and filter product distance with map. Its extension for m1 i needed to m2 I try converter code m1 to m2 but - but lack of knowledge ( Please help anybody, ...
0
votes
1answer
15 views

Set Default Value for Country and State in cart page

as per my requirement, the state and country in the cart page should be a default of US and Washington. I found a configuration for the default of country but I wasn't able to find any for the state. ...
0
votes
1answer
19 views

New Order Error: Saving order XXX failed: Cannot add or update a child row: a foreign key constraint fails

I am a newbie Magento 2. I have set up a Magento site run on Ubuntu 20.04. Everything is Ok. The site works normally until a nice day. It showed the error as below and cannot allow creating new orders ...
0
votes
1answer
52 views

afterExecute() must be an instance of Magento\Framework\App\Response\Http in plugin Magento 2.4 upgrade

I have a plugin in my module that was working in Magento 2.3, but after upgrade to 2.4 i am getting the error TypeError: Argument 2 passed to ..\Plugin\Controller\Checkout\Sidebar\RemoveItemPlugin::...
0
votes
1answer
16 views

How to filter admin grid collection based on certain condition in Ui component xml file New method

I have a grid which is replicated from the sales_order_grid. I want to show only the processing orders in the grid.So what can be done to filter that?
0
votes
3answers
32 views

magento 2.3.4 update

I have a webshop magento 2.3.4 https://www.agoshop.at and want ask if it make sense to update the magento shop to 2.4 When it make sense can somebody help me how I can do this update? kindly regards ...
0
votes
1answer
15 views

Magento 2 Product grid collection filtering on programmatic Qty column values

I am programatically updating the qty column values for configurable products. Sadly, the grid filter for this column doesn't work with new values. The underlying catalog product collection joins with ...
0
votes
1answer
58 views

Add Magento search on Home Page banner

I want to add a search box on the home page banner like this I added this banner via page-builder. Any way-out to add search box like this? Please guide Rashi
0
votes
0answers
12 views

How to deal with the problem that the same user pays on different tabs in Magento

Are there any suggestions on how to handle the scenario of duplicate payment in Magento? if a user initiates a payment on the first tab but does not pay the shopping cart, and then open a duplicate ...
0
votes
1answer
14 views

Is there is a way to provide edit order option while the order is in Processing in Magento 2.4?

Is there is a way to add the edit order option like in pending order in Magento 2.4? Like this currently the order status is pending but i want when the order status is processing still need to add ...
0
votes
1answer
18 views

Add a block to knockout template but not using checkout config provider

I have a knockout html in my theme app\design\frontend\Vendor\themeName\Magento_Checkout\web\template\minicart content.html <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING....
0
votes
1answer
21 views

Why getValue() function calls so many times in product list page Magento 2

in my di.xml <preference for="Magento\Catalog\Pricing\Price\FinalPrice" type="vendor\module\TestPricing\Price\FinalPrice" /> why getValue() function calls so many time? and ...
0
votes
1answer
22 views

show to company name in customer register form magento2 and edit form get the data

I need to show to the company name in the customer registration form magento2 and I want to add in the name.phtml file and get the data into the form
1
vote
1answer
37 views

How can i add $5 Handling fee if free shipping method is selected?

I need to add $5 Handling Fee if Free Shipping method is selected.
0
votes
1answer
17 views

use webp pictures for products

I use a magento2 webshop https://www.agoshop.at and I will use webp pictures for my products. I have convert a jpg to webp format and try to upload this webp picture to a product but the filetyp will ...
0
votes
2answers
18 views

Change magento cloud project repository

we need to change the repo that a magento cloud project uses. Like if we were migrating from GitHub to BitBucket. How could we do that?
1
vote
1answer
50 views

ERROR: We couldn't change indexer(s)' mode because of an error

I'm facing this error when trying to change indexer mode from 'UPDATE ON SAVE' to 'SCHEDULED' Edit: We have already checked the logs, and seems to be nothing there.
0
votes
0answers
10 views

When do you decide to add a custom order state in the Magento's default order states cycle?

BNPL (Buy Now Pay Later) COD (Cash on Delivery) BACKSTORY: I want to add two new payment methods to my website called “BNPL COD (Pay in 2 Installments)” and “BNPL COD (Pay in 3 Installments)” and I ...
0
votes
1answer
28 views

Add pagination in custom module by ajax call

I have developed Custom module in which data retrieving from db perfectly, but i want to show first ten data(10 rows) at first page and at second page display next ten data and so on by Ajax call.
0
votes
0answers
17 views

when i click on color swatch in list page then same image not shown at product page in magento 2

when I click on color swatch in list page then same image not shown at product page in magento 2. after click on swatch image changed at list page but click on this image then open the product page ...
0
votes
1answer
34 views

Magento 2: Select first dropdown option on change

I'm new in Magento 2 frontend development (and in development in general) and I am really lost at it, it's being hard to get arround some concepts, so I would like to ask for help in some specific ...
0
votes
2answers
34 views

The connection timed out after 3 sec while awaiting incoming data from bluk import apis

I'm getting following error during use of bulk async import apis. The connection timed out after 3 sec while awaiting incoming data I've followed the magento dev docs for using for bulk import (Api) *...
0
votes
1answer
18 views

Best way to call JS widget only on specific page

I have created a Javascript widget which does some function based on product add/remove cart action. I would like to include the JS only on product pages viz: Category and Product detail page.I know a ...
0
votes
0answers
20 views

Magento2 : Language translator not clickable

On my website sometimes language translator button (data-trigger="store-language-dropdown") is not clickable in chrome/IE. If I reload the page or clear cache then it is working. Why it ...

1
3 4
5
6 7
899