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
15 views

Magento 2 : Error Message Debug how not to abbreviate / truncate paths with

Not sure if this is Magento 2 or a general PHP question but I will have stack traces and sometimes those stack traces will abbreviate the full path of the class or filename with ... but I want to see ...
0
votes
1answer
52 views

Magento 2 : Remove Mandatory Validation for Customer Fields eg. firstname, lastname

I want to remove the mandatory validation for customer fields eg. firstname, lastname (both for frontend and admin). I tried using UpgradeData to change the value of is_required field to 0 in the ...
0
votes
0answers
24 views

Magento 2: Hide Billing Address Based on Payment Method Selection

How can I hide the billing address so that the billing address is only visible while the credit card is selected as payment method in Magento 2?
0
votes
1answer
32 views

Magento 2 : Override the Shipping Method Managment Model

I need to override the shippingmethodmagament.php file which is in the model file in the magento this path vendor\magento\module-quote\Model\ShippingMethodManagement.php but the interfaces is applied ...
0
votes
2answers
15 views

Magento 2 : Page Layout is not Updating as Expected for catalog_category_view.xml

I am trying to change the layout of my catalog_category_view.xml from 2columns-left to 1column, however the change is not reflecting on the FE. I cleared all available caches. Did I made a mistake? ...
0
votes
1answer
18 views

Magento 2 : Cron hanging - can't debug

Running into an issue on Magento 2.4.3. Where cron jobs appear to be running correctly but when I run the below I keep seeing cron jobs hanging stuck for an hour, days or more, I have to manually kill ...
0
votes
0answers
15 views

Magento 2 + Docker setup - frontend throws error: SSL_ERROR_RX_RECORD_TOO_LONG

Dockerfile: FROM php:7.4-fpm # Install Composer COPY --from=composer /usr/bin/composer /usr/bin/composer # Increase composer momory limit RUN cd /usr/local/etc/php/conf.d/ && \ echo '...
0
votes
0answers
30 views

Magento 2 : php 7.4 not work for install 2.4.3

I want to install Magento 2.4.3 on my subdomain I set the subdomain php version to 7.4 But this error is shown Magento supports PHP 7.3.0 or later. Please read Magento System Requirements.
0
votes
2answers
16 views

How to run ajax in certain time interval in Magento2

I have added ajax to show a text which is fetched from my scope config(The value is given in the store->configuration). In my controller I am getting the value using scope config and used echo in ...
0
votes
0answers
34 views

Message: Unable to process binding Magento2

I have created a custom module of One Step Checkout for the site. It's working fine till Magneto 2.4.2. But in Magento 2.4.3 when I try to access the checkout page using my extension I am getting ...
0
votes
1answer
19 views

Magento 2: How to display author's name outside the admin grid

I just have learned magento 2. I have a table ecommage_blog in which there is an author_id attribute (which is the id of the customer that created that blog), so how can I display the author's name of ...
0
votes
0answers
42 views

Override Proceed to checkout button not working for all magento 2 versions

I have created a custom module and create the files like: app/code/Vendor/Module/view/frontend/layout/checkout_cart_index.xml <?xml version="1.0"?> <page xmlns:xsi="http:/...
0
votes
1answer
23 views

Is it safe to not implement HttpPostActionInterface?

Is it safe to not implement HttpPostActionInterface ? From: class NewAction extends SubscriberController implements HttpPostActionInterface To: class NewAction extends SubscriberController My goal ...
0
votes
1answer
15 views

Convert JS function magento2

I want to convert this function in magento2 phtml file <select id="myURLs" onclick="openPop();"> <option value="" disabled="" selected="" ...
2
votes
3answers
96 views
+50

Magento 2.4.3 : Type Error occurred when creating object: Magento\Search\Model\EngineResolver

I am getting this error on a page 1 exception(s): Exception #0 (Magento\Framework\Exception\RuntimeException): Type Error occurred when creating object: Magento\Search\Model\EngineResolver, Argument ...
0
votes
0answers
8 views

Uncaught TypeError: Unable to process binding "afterRender: function(){return renderReCaptcha() }" on checkout page

On the checkout page I am getting the error message Uncaught TypeError: Unable to process binding "afterRender: function(){return renderReCaptcha() }". I searched for the renderReCaptcha() ...
1
vote
0answers
11 views

magento 2 is the position of parent::costruct() relevant?

I'm looking at Magento 2 core code. When Magento needs to extend a class, it creates a class with a constructor that calls the parent construct via the parent::__construct() method, something like ...
0
votes
0answers
7 views

Layered navigation results show only products with and-and attributes, now showing or-or attributes, Magento 2

How can I do and-and filter when filtering with layered navigation? For example: When I filter attributes (size = 50, color = red), the result returns a configurable product when some of this child ...
1
vote
3answers
71 views
+50

Is there a limit for Number of Options for a Dropdown Attribute?

Is there a limit to the Number of Options for a Dropdown Attribute? Let's say I have 10000 different lists of options in an attribute. How that will affect the Magento, website load time, backend data ...
1
vote
1answer
19 views

How to know which file to make changes in Magento 2

I am new in Magento 2 and I m having very difficulty in finding which templates or blocks to make changes. I know how to override files. I had previously made changes in the theme but still, I can't ...
0
votes
0answers
9 views

how to change menu display on click in magento 2

I don't like Magento way of showing the dropdown menu on the phone screen. Is there a way to change how the menu click is displayed like https://www.jqueryscript.net/demo/Multi-level-Side-Menu-Plugin-...
0
votes
0answers
16 views

Where is Shipping Address being submitted during checkout

I am using magento2.3.5-p2 during checkout, at the Shipping Address form, when I fill in the form-shipping-address I want to get the data that I processed during submission at the server side so I can ...
0
votes
0answers
11 views

Magento 2 GraphQL on family tree

I have a tree that includes the following information: tree { id: Int parent: tree children: [tree] } How to write graphQL module that can handle the following query: { tree ( id: 4 ) { ...
0
votes
0answers
17 views

How to remove <div class="control"> or edit its form field on during shipping address checkout

I am using magento2.3.5-p2 And during checkout at the shipping address form, it appears as below as you can see the 'Full Address' field input are not in 100% width size like its above input I tried ...
0
votes
0answers
12 views

How do I integrate Magento 2 with the instagram shop?

I want to integrate Magento 2 with Instagram Shop, following a tutorial they say that I should go to System -> Magento Connect, but this option was in Magento 1, in Magento 2 it does not appear, ...
0
votes
0answers
20 views

How to edit a table built with localstorage

I have built an application that takes user input and adds the values to a table on submit. I wanted to integrate an undo button that removes the most recent item that was added from the table. Here ...
0
votes
0answers
14 views

Why does my plugin work only when I add Page Result object as a dependency?

I'm trying to add a layout update to a specific group of CMS pages. I created a plugin class that applies a layout update if a certain condition is met. The plugin works if I use the following class ...
0
votes
0answers
8 views

PWA URL is not working

After installation of PWA studio on Magento 2.4 I run the command the yarn watch and get the URL. It's visible in the attached image. But when I click on the URL it shows that the site cannot be ...
0
votes
0answers
14 views

Set country of origin

there is a task to create an attribute country of origin and fill it in in accordance with the attribute country of manufacture, for example (Germany -> DE), and the question arose where to get the ...
0
votes
0answers
13 views

Render block from outside a block

I'm receiving this kind of string {{block class="Cpy\ModuleName\Block\BlockName" name="mega-menu" template="Magento_Theme::html/mega-menu/mega-menu.phtml"}} Usually, ...
0
votes
0answers
11 views

How to Change PWA development website URL

I want to change the URL of PWA which is install on Magento 2.4. Where I can add the URL. Please Guide.
0
votes
2answers
54 views

can't send data from ajax to controller

in my case I have a controller and an Ajax data sending, but when I check the code the AJAX doesn't send anything and Magento doesn't enter to my controller, is it a problem of routing or what, this ...
1
vote
1answer
46 views

Upgrade Magento 2.3 EE to Magento 2.4.3 error

I have followed below steps switch store to maintenance mode : bin/magento maintenance:enable Run command : composer require magento/product-enterprise-edition=2.4.3 --no-update Apply updates : ...
0
votes
1answer
41 views

Magento 2.4.3 currency symbol not showing on product,cart and checkout page

I have just setup fresh Magento 2.4.3 on the VPS server and noticed that the Currency symbol not showing on my website, Any help is highly appreciated. Url - https://stagingsgwdirect.com https://prnt....
0
votes
0answers
31 views

Magento 2 Fallback to JQueryUI Compat activated. Your store is missing a dependency for a jQueryUI widget

We are using Magento 2.3.5 version and using infortis theme and here is the requirejs.config.js var config = { paths: { 'smartheader': 'Infortis_Base/js/smartheader', 'stickyheader'...
0
votes
0answers
10 views

Magento 2: Product price not refresh from old cart once customer login

situation is, The customer has added some of the product in their cart & later on when they log in again and try to checkout with that old cart then the product price does not refresh which is ...
0
votes
1answer
19 views

How To Set up Custom Cron Job in Magento 2?

Can anyone explain the methods to doing this job done? Thank you in advance.
0
votes
1answer
40 views

How to get value for Number of Lines in a Street Address that have been set in magento 2 configuration

I am using Magento 2.3.5-p2 I know that in Magento 2, the Street address configuration is not able to be changed through admin by going to Stores > Settings > Configuration > Customers > ...
0
votes
0answers
21 views

Magento 2.4. - Custom Maintenance Mode Page - Allowed IPs

I've created a custom maintenance mode page (within pub/errors directory) This works fine, but it seems when using a custom maintenance mode page, the site doesn't take into account the IPs added to ....
0
votes
0answers
8 views

Magento_B2b class still called after disabling module?

Magento 2.2.5 I disabled the Magento_B2b module by setting it to 0 in config.php. Now in this module is the \vendor\magento\module-b2b\Model\ProductMetadata.php class which has a const EDITION_NAME ...
0
votes
0answers
9 views

Redirect issue with multistore shop

I have a Magento 2 website with multistore, i got redirect issues using this tool https://www.seobility.net/en/redirectcheck/ https://www.domain.com The page does not redirect correctly. Incorrect ...
0
votes
1answer
14 views

jquery popup modal onclick closes right after opening

I have a magento2.3 based site trying to use the jquery modal function in Magento when a a href link is clicked. I have the model opening on click. However what is happening is I click the a href link ...
0
votes
1answer
46 views

Magento 2 - How to save data in to a customer data custom section

I have a form that the visitor fills in and based on that form submission (to a controller) I need to save some data in a custom section. I have my custom section working correctly but only returning ...
0
votes
1answer
17 views

How to add custom checkbox before place order in Magento 2 in Pay by credit or debit card Payment Method

How to add custom checkbox before place order button in Magento 2 in Pay by credit or debit card Payment Method (Take-payment). And the checkbox is required so if any user not checked the checkbox the ...
0
votes
1answer
24 views

Duplicate breadcrumbs in catalog_product_view.xml

I am trying to duplicate breadcrumbs in product page, as so to be able to hide and show it in different positions for mobile and desktop devices. I have tried the following but breadcrumb shows only ...
0
votes
0answers
12 views

Magento 2 data migration - customers not migrated

When I run the Magento 2 data migration tool to migrate data from Magento 1, the process does not migrate customer data. In fact, the default configuration settings seem to explicitly ignore the '...
0
votes
0answers
8 views

Magento 2: validate/limit states on onepage checkout and display error

I need to prevent customers to ship orders to Hawaii and Alaska. They can have a billing address from those states, just not shipping address allowed to those states. How can I display an error on ...
0
votes
0answers
9 views

Magento 2: Sorting mass update product attributes

Is there a way to sort mass update product attributes alphabetically?
0
votes
0answers
16 views

Magento 2 Mirasvit Search doesn't return any results

I have Magento 2.4.1 and the latest version: 2.0.39 of the mirasvit/module-search-ultimate module. Also I am using Elasticsearch 7. Issue description: The ajax request made on the search result: ...
0
votes
1answer
26 views

Magento 2 upgrade steps : 2.3.6 to 2.4.3

I am working on creating steps to upgrade Magento ver. 2.3.6 EE to Magento ver. 2.4.3 EE (latest version) Which are the steps required to upgrade the magento ?