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
0 answers
7 views

Magento 2.4.4 - issue with setup:di:compile

I recently upgraded my site to Magento 2.4.4 with PHP 8.1 and noticed that when I try to run the command '$ php bin / magento setup: di: compile' the process stops at 1/9 with this error message : 1/...
user avatar
  • 285
0 votes
0 answers
7 views

How to add pdf in mail in Magento2.4.3?

I tried almost all solutions from the internet but nothing works in magento 2.4 and above. for pdf attachment in mail If Anyone knows how to attach pdf in mail. Please share your answer. Thanks.
user avatar
  • 29
0 votes
0 answers
5 views

Block not loaded after Login in magento 2

Block not loaded on PLP page after Login in magento 2 tried both way plugin and observer facing the same issue. Block name : category.products.list Any idea Friends I'm stuck on this point.
user avatar
  • 696
0 votes
1 answer
6 views

special price product collection working but loading speed is too slow ,I don't understand why the speed is so slow please help!

<?php namespace Product\Discount\Block; use Magento\Catalog\Api\CategoryRepositoryInterface; /* use Magento\Catalog\Api\CategoryRepositoryInterface; use Magento\Catalog\Block\Product\Context; use ...
user avatar
0 votes
0 answers
2 views

GET /favicon.ico HTTP/1.1" 404 41657 while running container

I need some help here, After building the containers successfully On hitting the host, we are getting these logs GET /favicon.ico HTTP/1.1" 404 41657 while running container Thanks
user avatar
0 votes
0 answers
6 views

Problem with showing preview in the admin panel

We upgraded our webshop to Magento 2.4.4 from Magento 2.3.7-p1, but for now, we have to use PHP 7.4. After this, I saw that preview in the admin panel doesn't show components that we added before the ...
user avatar
  • 3
0 votes
0 answers
4 views

How to get product configurable options by store ID?

My code now: $product = $repository->getById($productId, false, $storeId); $configurableOptions = $product->getTypeInstance()->getConfigurableOptions($product); Its worked but attributes ...
user avatar
-1 votes
0 answers
10 views

import page is not loaded

After making restore for running magento2 store , The import page dosn't load it's only appear a white page color only . So how can achieve to import page .
user avatar
0 votes
0 answers
13 views

im installing mahento 2.4 using xamp on windows everything goes well but a connection error with elastic search

[Progress: 671 / 1346] Installing search configuration... In SearchConfig.php line 81: Could not validate a connection to Elasticsearch. null this is my installation command: php bin/magento setup:...
user avatar
0 votes
0 answers
9 views

Customer Session Dont work adequately

i want to get customer id in model, but customer session return null in any case. Someone can help me ? I also try to get customer id in block but doest work !
user avatar
  • 3
0 votes
1 answer
15 views

Magento 2 :- Magento upgrade error 2.4.4 in php 8.1

When i run this command i got error php bin/magento maintenance:enable PHP Deprecated: Return type of phpseclib_mcrypt_filter::filter($in, $out, &$consumed, $closing) should either be ...
user avatar
0 votes
0 answers
12 views

Magento2 What is the use of Bundle Product manage Stock Yes/NO?

As per my research & understanding bundle products is totally dependent on its Simple Product (Manage stock whether it is Yes or No) then what is the meaning of Magento providing Manage Stock ...
user avatar
  • 3,426
0 votes
0 answers
10 views

No picture of items inside my share wishlist email MAGENTO 2

this is the code of my email template (share wish list) and it doesn't display image can someone help me with this problem? {{template config_path="design/email/header_template"}} {{trans "%...
user avatar
0 votes
1 answer
9 views

How to fix admin session issue to login to the admin panel?

After upgrading my Magento 2 I see this error message all the time I try to log in via the admin panel. The frontend pages are working fine. Fatal error: Uncaught TypeError: strtotime() expects ...
user avatar
0 votes
0 answers
17 views

Design pattern with examples magento2 [duplicate]

Does anyone have complete knowledge about magento design patterns with their examples if yes kindly share the reference?
user avatar
  • 23
0 votes
0 answers
18 views

How to show available data first then show the data respective to dropdown selection in Magento 2

<script type="text/javascript"> require(['jquery'], function($) { $(document).ready(function() { $("select").on('change', function() { ...
user avatar
  • 29
0 votes
1 answer
11 views

Magento 2: Enable/Disable Payment methods based on product attribute value

I want to enable/disable the COD payment method based on product attribute. I tried this: Disable Payment Method at Checkout in Magento 2 Based on Product Attribute But I am having an issue when I ...
user avatar
0 votes
0 answers
25 views

How to write php unit test for a controller ? Magento 2

I am not sure how do I write a unit test for the below controller? Any thoughts on this ? namespace Good\EnhancedProfile\Controller\Account; use Magento\Framework\App\Action\HttpGetActionInterface as ...
user avatar
0 votes
0 answers
19 views

Block not loading some times in observer magento 2

Some times load more functionality is not loading while debugging I found sometimes the block is not loaded. I tried two but not working. As I've noticed it is easy to reproduce issue after login is ...
user avatar
  • 696
0 votes
1 answer
16 views

Incorrect integer value: '' for column `project-preprod_db`.`catalog_product_entity`.`has_options` at row 1

Running a custom import script, I'm facing this error for some products (some others are perfectly being created without this issue). Error occured on B2C product import : The product that was ...
user avatar
  • 737
0 votes
0 answers
21 views

Product Collection With Duplicates (On Purpose) For Admin Grid How?

I need to load a product collection that has repeated products in it. I get this error when trying to load a product collection with repeated products: Item (Magento\Catalog\Model\Product\Interceptor) ...
user avatar
1 vote
4 answers
54 views

My website is not working, I am having this error

Warning: include(/home/occ_vikas/occasionsjo.com/var/view_preprocessed/pub/static/vendor/magento/module-theme/view/base/templates/root.phtml): failed to open stream: No such file or directory in /home/...
user avatar
0 votes
0 answers
17 views

Custom Coupon Code Validation

Using Magento 2.4. I need some help in tackling a task. In a store developed with Magento2 I need to create/extend the validation for coupon codes. This particular store relies heavily on coupon codes ...
user avatar
  • 1
0 votes
1 answer
10 views

Magento 2 PWA Studio: Issue with SSL certificate

I'm using Adobe Commerce 2.4.4 with PWA Studio and I don't have a valid SSL validation in my browser during the local development. For the documentation, it should be working fine. How could I debug ...
user avatar
1 vote
2 answers
34 views

Magento 2.4.4 API PUT products

question of interest. We are using the PUT command for updating our products, but the data in custom attributes are not cleared when not sending in the body: rest/store_view/V1/products/sku Is that ...
user avatar
0 votes
0 answers
15 views

Error in cURL request: Magento 2 error on admin panel

i need urgent help, i am getting curl request error when i go to Stores->configuration in magento admin panel. I am using magenot 2.4 Please can anyone advice what i can do to resolve this? https://...
user avatar
0 votes
0 answers
12 views

"magento/module-new-relic-reporting" not installed after upgrade

So, I did a lot of research and tried a lot of ideas to solve this but without luck. That's why I'm asking. I'm trying to upgrade magento from 2.3.3 to 2.4.4 . I stacked on a problem that "...
user avatar
0 votes
0 answers
10 views

Is there any way to upload video from ui component in magento2

I am working on a custom requirement where a user can upload video from a custom UI component but I can't find any way for that. if there any way to do this in magento2?
user avatar
  • 23
0 votes
2 answers
37 views

Magento 2 - Add column to a table by using the declarative schema

I try to add two columns to the sales_order_grid table by following the declarative schema. Attempt: <?xml version="1.0"?> <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
user avatar
  • 2,390
0 votes
0 answers
25 views

Magento2 How to optimize data of custom tab on product details page?

Magento2 I have too many tabs on product details page + some tabs has too many data. How can we optimize this? We used ajax to load data in this tabs but this is removing the success/error message.
user avatar
  • 3,426
3 votes
1 answer
40 views

How to get product collection without special price and tier price?

I'm using Magento v2.4, i want to retrieve a product collection that does not have special price (special price is not active or null) and tier price, currently i load the product collection like this:...
user avatar
  • 98
0 votes
0 answers
14 views

Magento 2.4: Display COD payment method if not applicable with text message

I have cart price rule condition that does not allow for COD payment method to be used and I want the method to be shown but not selectable, with a custom message and link. Any help would be ...
user avatar
0 votes
0 answers
16 views

Magento2 Can we reterive success message or error message if exists after product Add to cart

Magento2 reterive success message or error message if exists after product Add to cart as I need to show it after 1 ajax that I am triggering after Add to cart Triggering Ajax after add to cart is ...
user avatar
  • 3,426
0 votes
0 answers
13 views

Magento2.4: Customer Logger creation for change in admin product edits?

How to create a custom logger file for changes in admin panel product edits? Thanks in advance.
user avatar
0 votes
0 answers
25 views

Custom Collection Admin ui Grid

is it possible to use a collection with a filter for Admin Ui grid. I tried this https://webkul.com/blog/display-a-modified-collection-in-grid-using-ui_component-magento-2/ but it does not seem to ...
user avatar
0 votes
0 answers
23 views

Error while trying to load site

I wanted to add multilanguage support to a website I am creating, thus I followed a guide to do so. After completing the steps, I tried to refresh the site and got the following error 1 exception(s): ...
user avatar
0 votes
5 answers
56 views

Magento 2.4.x: How to pass custom variable from controller to phtml file?

Is there a way to pass a variable from controller to a phtml file without using registry? I tried this: Magento 2 pass data from Controller to Block and display in Template but it is not working.
user avatar
0 votes
0 answers
12 views

Magento + docker Internet not able to connect OS linux mint

Suddenly yesterday docker resist to my system to connect with internet, We are using dockergento for magento projects any one have idea or solution for that? I am using lnuxmint as OS. Any help or ...
user avatar
  • 1,443
0 votes
2 answers
18 views

How to install 2 different magento2 instance with same server and same database

I want to install 2 magento2.4.4 on my server and connect with single database .
user avatar
  • 11
0 votes
0 answers
12 views

Related : declarative schema using XML file in magento2

Basically, i have 3 files under Setup folder (installSchema.php , UpdateSchema.php , uninstall.php). now, my question is that ... i want to convert these files into XML. Also ,i followed some steps ...
user avatar
0 votes
1 answer
30 views

Moving Magento core modules from app/code to vendor?

Magento 2.4.3 I need to move the Magento core files which were installed in app/code/Magento by accident to the vendor folder so they can be updated with composer. Any advice on how to do that? Could ...
user avatar
0 votes
0 answers
18 views

DB query to delete configurable product images

I am trying to delete the images of configurable products using DB query and delete the product images from the table catalog_product_entity_media_gallery, but images in the back office were not ...
user avatar
  • 1
0 votes
0 answers
12 views

What LAMP docker image is good for installing Magento 2.4?

I have tried installing from other images but I get a message stating the php version must be 7.3 or newer.
user avatar
0 votes
0 answers
10 views

Magento 2: Convert SOAP XML Response into array

I am getting below XML as a response, how can I convert it to an array? I have tried almost all the think available in internet but always getting this error: Decoding failed: Syntax error <soap-...
user avatar
  • 1,009
0 votes
0 answers
9 views

Unable to perform start operation Export start for elasticsearch - bitnami

I am using Google cloud with my first Magento project, the website is getting an error and does not work I tracked the issue and I reached that the bitnami does not work, and I had this error message.
user avatar
0 votes
0 answers
9 views

How to check order Magento 2 order status delivered using UPS service?

How to I pull the delivered status from the UPS carrier tracking. Please advise me how to achieve in the Magento2 ?
user avatar
0 votes
1 answer
30 views

Unable to Set Custom Price or Quantity in Admin Orders

I have a Magento 2.4.3-p2 instance running on apache2. When I create an order using the admin backend, I cannot customize the prices and quantities of the products I have added to the order. The ...
user avatar
0 votes
2 answers
19 views

Shipment Created but not showing under order Information Magento 2.4.2 p-2

I added a shipment information against that particular order. after added message i will check in shipment section. no shipment found on that Tab. Last week its working fine but still not able to see.
user avatar
  • 101
0 votes
1 answer
12 views

Magento 2 contribution automated tests

I've started to contribute on Magento Open Source project on Github. I did my first commit and opened a pull request. I added/replaced some lines of code in a JS file, trying to follow all the guide ...
user avatar
0 votes
0 answers
17 views

Reorder checkout shipping address form fields

I would like to reorder the checkout form fields in following order First Name Last Name Email Phone number Custom field - opt-in and then the rest of the fields. I can reorder other fields in ...
user avatar
  • 1,973

1
2 3 4 5
911