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

add node package in magento 2

How to add Node packages to your Magento 2 site. how to implement in require-config.js using knockout js. I have already applied the commands below file. /var/www/html/project/app/code/vendor/module/...
mohit vamja's user avatar
0 votes
0 answers
16 views

filtering by multiselect attribute displaying values in static block

When filtering by text attribute type the module block and phtml template retrieve values by attribute code, however its not not returning values on MultiSelect ive tried the following: // Build a ...
Chris's user avatar
  • 1
0 votes
0 answers
18 views

Database connectivity issue in Mule4.2.0

We are facing a MySQL database connectivity issue in Mulesoft, the mule has two types of database transactions. one is to the mule’s server( Self ) database and the other one is to the remote server ...
R J's user avatar
  • 5
0 votes
1 answer
43 views

Magento\SwatchesGraphQl\Model\Resolver\Product\Options\DataProvider\SwatchDataProvider does not exist

Magento\SwatchesGraphQl\Model\Resolver\Product\Options\DataProvider\SwatchDataProvider does not exist the error while i using php bin/magento s:d:c
Alan Biju's user avatar
0 votes
1 answer
62 views

when creating database showing error The default website isn't defined. Set the website and try again

sudo php bin/magento setup:install --base-url=http://oxygen.local --db-host=localhost --db-name=oxygen –db-user=root --db-password=Root@123 --admin-firstname=admin --admin-lastname=web --admin-email=...
Alan Biju's user avatar
0 votes
0 answers
29 views

Caching/Indexing Deadlock Issue

The highlighted index tables that associate the Amasty label to products don't appear to updating
Nabeel Ahmed's user avatar
0 votes
2 answers
64 views

magento creating order programmatically using Cron Jobs

I want to create an order programmatically using Cron jobs, the codes run perfectly but when creating the order i got 'Error: Type Error occurred when creating object: Magento\InventoryIndexer\Model\...
Adex's user avatar
  • 25
0 votes
0 answers
39 views

Magento 2: how to validate after shipping address change

During checkout I need to validate the shipping address and the current cart's contents. After the customer has entered or changed the shipping address a validation should start. Depending on a ...
omsta's user avatar
  • 698
0 votes
0 answers
14 views

How to upgrade from magento 2 CE to Magento 2 EE?

I hope you're doing well. I'm currently working on a Magento 2 CE based project, and I've run into a challenge. Specifically, for upgrading from magento 2 CE to Magento 2 EE. Has anyone suggestion or ...
Mohd Shakeel's user avatar
0 votes
1 answer
45 views

Customer custom attributes do not save data to customer_entity table

I'm creating a rest API and I need to add a custom columns to the customer_entity table and save the value in that fields within API request. Сreated new attributes in the customer_entity table using ...
David's user avatar
  • 21
0 votes
0 answers
15 views

Magento 2 504 Time Out Gateway

I have a Magento site, running on the Apache. Sometimes it gives us the 504 Time Out Gateway. Steps I performed till now : increased the time out related in the php.ini What will be the reason, If ...
Rana Zain's user avatar
  • 642
0 votes
2 answers
96 views

In Magento 2, Getting an issue with the toggle button where the status does not change when editing the admin grid form

I'm using toggle button in my admin form and saved successfully but when I am editing admin grid then toggle button status not changed according to status (true or false) Update: I have write the ...
raghav's user avatar
  • 38
0 votes
1 answer
35 views

Magento 2 custom validation rule in UI component form field with Ajax

I have created a custom validation rule in my admin ui form using the below link https://webkul.com/blog/add-custom-validation-rule-in-ui-component-form-field/ If I use a direct condition then it is ...
Jancy Abraham's user avatar
0 votes
2 answers
19 views

Magento2: Unable to transfer/move the CSV file from var/report to another server

I'm unable to move the generated csv file from my var/report folder to another sftp server. Please help me.
venkata prasad's user avatar
0 votes
1 answer
60 views

Magento 2.4.6 Localhost Install Windows 11

I am having issues installing Magento2 on my local machine. I have been following this tutorial but I run into the same issue where my localhost/magento2/pub/ page doesn't display content. I have been ...
Kage Dev's user avatar
0 votes
1 answer
51 views

Custom theme only updates if I run bin/magento setup:upgrade

Newbie so apologies if I get some of the terminology wrong. I've recently started working with Magento using Mark Shust's docker version and getting along ok. However, my custom theme that inherits ...
CResults's user avatar
  • 105
1 vote
0 answers
19 views

Magento 2 ON PLP get the simple Product ID after the upate the variation in my custom widget

I have created a custom widget for all image rendering of the product image hover on the Product list page (category page). It works fine but for the configurable product, we have updated the swatch ...
Prince Kumar's user avatar
0 votes
0 answers
27 views

Using Range in addAttributeToFilter for a drop down attribute does not work as expected

I am trying to filter my product collection using Range for a drop down attribute. Attribute name - btu_input_exact Here is my code to fetch product collection $productCollection = $collectionFactory-&...
Rajeev Singh's user avatar
0 votes
1 answer
31 views

unable to update custom attributes to product using rest API

I have created the custom attribute through rest API and it is also reflected in magento admin, after which when I tried to update the product with the attribute code.it won't worked. Below is my ...
manikandan.p's user avatar
0 votes
1 answer
30 views

Update custom attributes to product using rest

$data = [ "product" => [ "sku"=> $productsku, // "attribute_set_id"=> 4, //"attribute_set_id" => $mage_attr_set_id, ...
manikandan.p's user avatar
0 votes
2 answers
58 views

Magento2: How we can reduce the unused CSS & JS?

During performance optimization, I am unable to make improvements related to the unused JS & CSS. I wanted to know if anyone has solutions/steps to reduce the unused CSS & JS in Magento2, ...
Deepak MageDivine's user avatar
0 votes
1 answer
30 views

Automating Price Updates in Magento After Migrating from WordPress

Hello Magento Community, We're in the process of migrating our online store from WordPress to Magento and facing a unique challenge. Our business model involves highly volatile prices, which require ...
SEO Deutschland Experte's user avatar
0 votes
1 answer
26 views

Magento2: We have unassigned an attribute from the attribute set but it is still showing on the frontend

I have different Attribute Set Name they are tv,laptop and watch I have unassigned Ram in attribute in watch and Tv and assigned attribute in Laptop but it showing Ram in Watch(attribute) and Tv and ...
Alan Biju's user avatar
0 votes
0 answers
39 views

Magento custom payment method used make payment through cryptocurrency

I have created a custom payment method. but I want this payment method connected crypto wallet for example web3wallet, metamask, and trustwallet. and I want to add a new "wallet connect" ...
mohit vamja's user avatar
0 votes
0 answers
37 views

Customer Login not working into iframe for magento 2.4

I am working on magento website http://20.204.34.13/ i want to load this site into iframe. Site is loading but customer login is not working. Does anyone can suggest solution for this. Below is ...
Santosh Yadav's user avatar
0 votes
1 answer
22 views

Magento 2 Category field data scope issues

Good Afternoon, I am looking at a data scoping issue around category content fields for Magento 2 (2.4.5-p2). I have a list of fields that we typically fill in (please see below for category content ...
Baber's user avatar
  • 190
1 vote
1 answer
36 views

Magento2: Filtering the catalog by attribute does not accurately display configurable products

Catalog filtering by attribute not shows accurately products who are configurable, when one variant of this products have value matched to filter value, in the catalog are showing all variants of this ...
RatajX's user avatar
  • 11
0 votes
1 answer
55 views

Magento2: General error: 1010 Error dropping database (can't rmdir '.\[project]', errno: 41 "Directory not empty")

I'm getting an database issue during Magento uninstallation. Here is the error: General error: 1010 Error dropping database (can't rmdir '.[project]', errno: 41 "Directory not empty" Here is ...
Deepak MageDivine's user avatar
0 votes
2 answers
56 views

I'm getting empty array without using session object. How we can get cart data without using session object

I'm getting empty array without using session object. How we can get cart data without using session object. Here is the screenshot: Here is the code: $cartItems = $this->cart->...
Alan Biju's user avatar
0 votes
0 answers
32 views

Broken reference: the 'product.reviews' element cannot be added as child to 'product_tabs', because the latter doesn't exist

Broken reference: the 'product.reviews' element cannot be added as child to 'product_tabs', because the latter doesn't exist
Alan Biju's user avatar
0 votes
1 answer
36 views

How i use product designer for product image for frontend in magento 2

I want use image editor for product image
Inam Niazi's user avatar
0 votes
0 answers
18 views

Indexing Optimisation: Do Simple products need to be categorised?

Magento 2.4.6 We're having issues with our indexing and are looking to optimise. We use Configurable products with Simple products as the variations. There are approx 200k simple products across ...
myshadowself's user avatar
0 votes
2 answers
98 views

I'm getting an strange issue in magento2.4.6

I'm using Magento 2.4.6 and the complete setup was working fine without any issue. The next morning, the Magento commands stopped working and threw the error below. In Mysql.php line 109: SQLSTATE[...
Deepak MageDivine's user avatar
0 votes
1 answer
38 views

Magento2 | Reduce JS files to optimize site performance

I am trying to figure out how I can exclude some js files that Magento2 loads and makes it so heavy however without compromising the functionality of the site. On my site with Magento2 I have a lot of ...
Jackom's user avatar
  • 473
0 votes
2 answers
68 views

"Area code is not set" when trying to send emails

I am trying to send emails programmatically on Magento 2.4.4-p5 using the TransportBuilder, but I get an exception: Area code is not set, even if I set it under the setTemplateOptions method. This is ...
iupaem's user avatar
  • 41
1 vote
1 answer
43 views

Import Product With Pipe Sign as configurable_variations

I have an Product Attribute with following values : https://prnt.sc/u8JrDsg_noG0 now when I am trying to import with that : https://prnt.sc/jyArfXbh5Ezs It gives me error : https://prnt.sc/...
Jantar Mantar's user avatar
0 votes
0 answers
31 views

Every api request session id is changing

my backend is magento 2 with graphql and in front-side we are using next js so my problem is for on every request in api response set-cookie header gives different PHP session id but i have to ...
magento dev's user avatar
0 votes
2 answers
49 views

Magento2: Invalid template file Magento_Review::anchor.phtml

I have a live Magento 2 website working fine I needed to make a test version of my server that running Magento I did copy the same files and database and everything working fine except product page I ...
Ibrahim's user avatar
  • 13
0 votes
2 answers
57 views

Changing logo in admin theme

I am trying to simple change the logo shown on the admin login page. After creating the following files i have run magento setup:upgrade magento setup:static-content:deploy -f magento setup:di:compile ...
raza19's user avatar
  • 23
0 votes
1 answer
35 views

XHR Request recognized as a redirect

Our store is experiencing issues with adding products to the cart. We use the QuickCartPro extension, and this always worked, but we migrated to a different server, and it broke down. We can't add ...
Wouter Pleijsier's user avatar
0 votes
0 answers
56 views

Show all the Products in product filters magento 2.4.6

I create an attribute name [show_category] with yes/no values if it's set to yes then the product show on the category page but if it's select no, then product not shown on category page. I create a ...
Ranvir Singh's user avatar
0 votes
1 answer
35 views

How to automatically add comment to comment history on order status change?

I've noticed that when an order goes from Pending to Processing there is no entry created in sales_order_status_history. This is a change from Magento 1, which kept a history entry for every status ...
Votrobeck's user avatar
-1 votes
2 answers
36 views

Instagram feed extension for M2

Hello and thank you in advance. Which instagram feed extension works best for an M2 store. Pls suggest if you are using any.
Siri's user avatar
  • 115
0 votes
0 answers
12 views

How to Simplify Quantity Selection for Configurable Products in Magento 2?

Hello Magento Community, I'm facing a challenge with Magento 2's configurable products. My store sells products B2B in different quantity lengths, and I use configurable products to offer various ...
Ben's user avatar
  • 141
0 votes
0 answers
13 views

Why I am getting error while using n98-magrun2 command "PHP Fatal error: Uncaught TypeError: Magento\ApplicationPerformanceMonitor\Plugin\Applicatio"

I am getting the below error while running the command n98-magerun2 list: PHP Fatal error: Uncaught TypeError: Magento\ApplicationPerformanceMonitor\Plugin\ApplicationPerformanceMonitor::aroundLaunch(...
Abhinav's user avatar
  • 33
0 votes
0 answers
29 views

How to add custom settings to Elasticsearch index from Magento 2.4.6

Need to add custom analyzer to Magento product index settings in Elasticsearch, but how to make this setting permanent? If I modify settings directly in Elasticsearch, Magento overwrites it with the ...
player's user avatar
  • 31
1 vote
2 answers
102 views

Magento2: The env.php file keeps automatically changing

The file env.php is changing automatically and randomly. Environment: Cluster server Deployer Magento 2.4.6-p3 Redis, varnish and cloudflare php 8.1 Here is the actual the env.php 'session' => [...
Mohammed Alrefai's user avatar
1 vote
1 answer
52 views

Magento 2 extension submission to the marketplace was failed

"command": "composerConfigRepository0", "output": [ "Finished with the '0' exit code." ...
Radhu's user avatar
  • 169
0 votes
0 answers
34 views

Grunt task for the tailwind in magento 2 frontend

We are working on the custom theme with the tailwindCSS. Normal Magento flow is taking a long time to reflect the changes on the browser. My question is there any configuration or way to use Grunt to ...
Naveen Raj Kumar's user avatar
0 votes
2 answers
35 views

How to add custom file from var/log to newrelic

I need to see some logs that I saved in /var/debug.log on NewRelic logs. Can anyone help me with this?
Rannye Rodrigues's user avatar