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
1answer
11 views

Setup Issue on New Installation Magento 2.3.3 in ubuntyu

nvironment Ubuntu 18.04.3 LTS Apache/2.4.29 (Ubuntu) PHP 7.3.13 mysql Ver 8.0.19 I installed all the source file for Magento 2.3.3 using composer command. Composer command ended with no issue ...
0
votes
0answers
9 views

Filter Related product account current product category in Admin grid

I want to filter related product collections by the current product category. I mean I want to show only current product category products in the related product grid in the admin side. Is there any ...
0
votes
2answers
25 views

Change qty script

I use a script to change the qty in the product view page and in the shopping cart page but I have a problem. when I decrease the qty instead the latest value to be 0 is -1. How I can stop the ...
0
votes
0answers
19 views

Magento 2 - Disable Quantity for particular products on Multishipping checkout

I want to disable the qty box for particular products which are free on multishipping checkout.
0
votes
0answers
10 views

Magento 2: How to get updated minicart products ids after delete or add items

I am getting product ids of the mini cart from the getCartParam function in Minicart.js But I am not able to get product ids when we delete or add the items in the mini cart. Basically need product ...
1
vote
1answer
18 views

difference between the Block and UI_Component to Make grid and Form at admin side?

What is the Difference way to use of Block and ui_components to Make the Admin side grid and form and fields and elements in the form, can someone explain, which is better way to choose and Why ?
0
votes
0answers
11 views

Magento2 display Guest Customer Order Under his My Account > My Orders after Guest Created an account

A customer placed order #000030382. He then created an account separately, via the top nav Account Creation icon, with the same email address as the order email address. I can see his account record ...
0
votes
0answers
26 views

Magento Category page not showing product list

I am new on magento. Please help me with this issue. I moved my magento site from one system to another system. And after that this URL localhost/magento/men/tops-men/hoodies-and-sweatshirts-men.html ...
0
votes
1answer
23 views

Magento 2 How to Render Child blocks in controller

I want to remove the 'Proceed to Checkout' button when the qty reaches a specified limit. For that I add a condition check in this page module-checkout\view\frontend\templates\onepage\link.phtml On ...
0
votes
0answers
6 views

Magento2 Apply All Catalog Rules via CLI

In Magento 1, there was a need to Magento run "Apply Catalog Price Rules" via a script on periodic basis to make sure all Catalog Rules have been applied to appropriate products for ...
1
vote
0answers
16 views

Magento ERR_EMPTY_RESPONSE

I have Magento working in a cPanel, but I need to migrate in to Docker. I kept the same version of PHP (7.1.33) and also MySQL (5.7). Installed the extensions: mysqli, pdo_mysql, mcrypt, intl, xsl, gd,...
0
votes
0answers
25 views

How to get the custom EAV value loaded for the Customer Address table in admin?

I have a data patch which installs the custom customer attribute (of type "text"). It is EAV attribute, I specify 'is_used_in_grid' => 1 and life's good: in the admin I navigate to Admin -...
1
vote
1answer
24 views

How to add store selector multi select field in admin form without using ui component?

I am trying to get store selector in admin form. I created this form without using ui component. I tried the below code but it didn't worked and I got the below error. The expected input field is: ...
1
vote
1answer
29 views

Warning: Illegal offset type in isset or empty Magento 2.4

I'm creating basic Module call CustomApplication also I've create a table call vendor_application. When I try to submit my form I get this error Warning. Illegal offset type in isset or empty in C:\...
0
votes
0answers
19 views

Product images not changing on swatches click on product listing pages

I am trying to change configurable product images on clicking swatches for product listing pages. But it is not working. It is working fine for product details page. Product detail page It is working ...
0
votes
2answers
20 views

Removing a custom module doesn't remove it from the database

I created a customer EAV attribute to collect the users postcode on registration. I realized Magento already has this feature, so I removed the module. The problem is the module does not seem to be ...
0
votes
1answer
10 views

Magento 2 Order View Exception occurred during order load

My Order detail page is not showing up its giving "Exception occurred during order load" when i checked in logs i got Exception occurred during CURL call Connection timed out after 30001 ...
0
votes
1answer
192 views

Add row number in admin custom table Magento 2

I've made a new module. Here, I've override the AbstractFieldArray class. <?php namespace myVendor\myModule\Block\System\Form\Field; use Magento\Config\Block\System\Config\Form\Field\...
0
votes
0answers
9 views

Magento 2 - Add link using cms block in PWA venia theme

I am trying to add link using cms block in pwa venia theme. But issue is when I click on link it reloads the whole page, which does not happen when I add link using js file. Does any have any idea how ...
0
votes
0answers
12 views

Checkout billing and shipping address checkbox uncheck sometimes

I am facing a very weird issue, when I add the product to the cart and then from the mini cart, if I click to Proceed to Checkout from there and when it lands on the checkout page. I can see the "...
0
votes
0answers
10 views

Magento2: issue with create credit memo

When I try create credit memo I get this issue: 1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): You can not refund shipping if there is no shipping amount. Exception #...
0
votes
0answers
17 views

Magento 2 Exception occurred during order load

i am using magento2.3 and facing this issue when i want to order detail page. I checked my exception.log there is curl issue is [2021-05-04 07:50:14] main.CRITICAL: Connection timed out after 30001 ...
0
votes
0answers
20 views

Magento 2.3.6 All emails stopped working even though Magento says it's being sent successfully

I'm running Magento 2.3.6 with PHP version 7.3 and recently my Magento emails have all stopped working. I'm able to run a PHP script from the server to send emails through the mail function and they'...
0
votes
0answers
15 views

Requisition Lists- How to enable and share out-of-box in Magento 2 Cloud

Had a question on requisition List. Some users are able to see the requisition list and for some it is hidden. I am aware there is an "enable" configuration for Requisition List at Website ...
0
votes
0answers
18 views

How to make search results show by name

I am trying to get it so that once a user types in name of product the results will show in order by product name. I have already done Store > Configuration > Catalog > Product List sort by |...
1
vote
0answers
15 views

How to Change/Modify Content of Slider in Magento 2 PWA

I have setup venia theme in Magento 2.3 instance. But, now I want to change and add some content in product slider. I want to also know that from where these content load and display. How can I change ...
0
votes
0answers
18 views

magento cannot load static files JS & CSS

I just fresh installed the Magento2. I don't know why my page cannot load the CSS and JS files. I did check the files, they are all in the pub/static folder. I did check the version, it is correct. ...
0
votes
1answer
18 views

Magento 2 how to redirect to checkout on ajax submit?

I'm trying to redirect a form to checkout after clicking ajax submit request. I'm able to reach the controller, but I can't redirect to checkout. Here is my code: public function execute(){ $...
2
votes
0answers
30 views

how to edit the cart page? checkout_cart_index magento 2

How to edit a cart page? checkout_car_index. Every time I edit the layout, the value next to the freight and the discount value as well. It seems that it is not possible to move on that page correctly....
0
votes
0answers
12 views

How can I migrate sales data from m2 to m2 store

I have a active store in magento 2.3.5 version. And also have store exist in magento 2.4.2 instance. Now I want to migrate sales data from 2.3.5 to 2.4.2. How can I achieve this in magento 2? Can ...
2
votes
1answer
27 views

Magento 2 compilation error

ERROR - Incompatible argument type: Required type: \Magento\Directory\Model\CountryFactory. Actual type: array; File: Magento2/app/code/Vendor/Module/Model/Api/Nvp.php Original file - /Magento2/...
0
votes
0answers
14 views

Expected to start loader but did not find one in the dom : loader.js:210 in magento 2 product page

i have see issue in my browser console : Expected to start loader but did not find one in the dom : loader.js:210 in product page. if (window.console && !ctx.parents('[data-role="loader&...
1
vote
1answer
17 views

Update magento from 2.3.1 to 2.4.2 - sql error - on getting the products

So after updating magento from 2.3.1 to 2.4.2, went almost flawless, until i saw this error on the category page, "0":"SQLSTATE[42S22]: Column not found: 1054 Unknown column '...
0
votes
1answer
10 views

Want to add new checkout step with custom form

Please help. Want to add new checkout step with custom form
0
votes
0answers
10 views

Magento 2: Modal form submit not working with KO

Modal popup from submit not working after KO binding for input magento 2 I have working on form submit using popup to send email from homepage to checkout for that I have created popup which was ...
1
vote
1answer
43 views

How to override order of custom tabs in Magento 2.4.2

With the code below, I am trying to reorder the product tabs to make FEATURES tab appear first. This doesn't take any effect even after running content deploy command. <page layout="1column&...
0
votes
1answer
30 views

Magento 2 cannot Disable 3rd party plugin

Im trying to disable Amasty\Gdpr\Block\AccountLinkPlugin from my vendor folder. Amasty frontend/di.xml <type name="Magento\Customer\Block\Account\Navigation"> <plugin name="...
0
votes
0answers
7 views

Magento2 - checkout remove dropdown from billing address and show as shipping address block

I have requirement to change the billing address design of dropdown to blocks as shipping address design in magento2.3 Actual: Expected: The all billing address should show in blocks as shipping.
0
votes
1answer
20 views

Change product attribute type in magento 2

Hope everything is well at all of your end. I am changing type of product attribute. But I am bit confuse after changing type of attribute, it will assigned to all products the same or not. Please ...
1
vote
0answers
29 views

Unable to change the catalog_category_view.xml layout to 1 column in Magento2

I would like to change the catalog_category_view.xml layout from 2columns-left to 1 column in the custom theme followed below steps. Here is the file in the custom theme: app/design/frontend/...
0
votes
1answer
38 views

Error: Call to a member function setPageSize() on null

I want to override admin side product grid collection, When Override then it's showing below error Error: Call to a member function setPageSize() on null in /var/www/html/2.4.1/vendor/magento/...
1
vote
1answer
24 views

The product's required option(s) weren't entered. Make sure the options are entered and try again

I am getting the standard error when the product requires options to be selected before adding to the quote/cart. However, it seems the error is displaying multiple times to match the number of ...
0
votes
3answers
35 views

What mean this function in magento 2

I saw a function declared like this below. <?php public function getFirstName():string { return $this->firstName(); } why this :string is used and when I should use this.
0
votes
1answer
24 views

Get specific columns from Left Join

I am trying to join two tables like below $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $collection = $objectManager->get('Advance\Module\Model\Method') ->...
0
votes
1answer
24 views

How to get attribute from dropdown

<?php $_product = $block->getProduct(); ?> <?= __("<br />Czas wysyłki zwykle w ") ?> <?php $_productNameStripped = $block->stripTags($_product->...
0
votes
0answers
18 views

On using Magento 2 REST API with custom option getting Please specify product\'s required option(s)

I have working on Magento 2.2 version with REST API on creating a customisation option with a checkbox which is not required. When i select that checkbox and add to cart that product everything works ...
0
votes
2answers
54 views

How to add filter to a already working custom sales order grid column module?

I have the following from another post, and now I'm looking for a way to make these 4 extra columns filterable. Thank you, \app\code\Vendor\SalesOrderGrid\Ui\Component\Listing\Column\Address.php &...
0
votes
3answers
42 views

How to get Customer default shipping address in Magento 2

I want to get Customer default shipping address in Magento 2.
0
votes
1answer
33 views

How to alter the customer checkout/login popup or process in Magento 2.4.1?

I am needing to alter the way the checkout process works on a Magento 2 site because the site offers quotes only and therefore I do not want any mention of the term "Checkout" in the ...
2
votes
1answer
23 views

How to get country of origin of the store from configuration

I need to programmatically get the country, zip code and state of the store that is at: Stores->Configuration->SALES->Shipping Settings->Origin