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.
47,959
questions
0
votes
0
answers
4
views
Issue while composer update in Magento 2 cloud
We want to install a new module in our project. For this, I have used Composer to install it and below are the steps followed:
The current version of Magento is the 2.4.6 cloud edition.
When I have ...
0
votes
0
answers
5
views
To add product filter in Product in category tab section grid magento2
I have tried to add product filter in catgory Products in Category tab section in magento 2.4.6
category_form.xml
<fieldset name="assign_products" sortOrder="40">
<...
0
votes
0
answers
14
views
how to get the getdata js data in the backend like observer in magneto 2
define(["Magento_Checkout/js/view/payment/default", "jquery"], function (Component,$) {
"use strict";
return Component.extend({
defaults: {
...
0
votes
0
answers
22
views
Magento 2 : How to avoid discount to custom option
We are using magento 2.4.2-p2
When we apply a coupon code to the cart then the discount is also applied to the product custom options, we do not want to apply a discount to the product custom options.
...
0
votes
0
answers
18
views
Category has wrong URL
We just upgraded to 2.4.6 and we have found tons of products and categories with wrong URLs.
Categories and products that work have this URL :catalog/category/view/s/produkter/id/622/
Categories and ...
-1
votes
0
answers
22
views
How to Fix Slow Checkout Process in Magento 2?
I’ve noticed that the checkout process on my Magento 2 store is slower than expected. I’ve already checked basic configurations and server performance but haven’t found a significant improvement.
...
0
votes
0
answers
11
views
Magento 2 API (Customer) Enable / Disable
Good Day,
I am writing a python script to update customer information, I have managed to update the mobile number etc from the customers, but I am struggling to enable / disable a customer via API, ...
1
vote
0
answers
33
views
Trait Function override not working magento 2
I am using third party plugin Cart2Quote and I am trying to override prepareTemplate function in my custom module Xyz/Plugin.
Here is the file from where I want to override function :
<?php
/**
* ...
0
votes
2
answers
29
views
Magento2.4.7: How to use conditional statements in email template?
This is the variable I want to use as a conditional statement.
will be 1 or 0 based on some condition
$isPlayerIncluded = 0;
inside my email template on code.
Vendor/Module/view/frontend/email/...
0
votes
0
answers
8
views
Magento 2 Enterprise Schedule Update API
In Magento 2 Commerce we can use the Schedule Update feature to plan or update a special price.
Is it possible to fill in the Schedule Update and Special Price with the API?
0
votes
0
answers
21
views
Overriding Price Determination with Custom Logic
We are looking at setting up a new magento2 site as a frontend for an existing ERP system. Since our pricing methods in the existing ERP system are quite involved, we want to look at overriding the ...
0
votes
0
answers
23
views
Sometimes Magento 2 observers not getting executed after order place event
We recently came across an issue that sometimes all observers related to Magento 2 order created after event not getting executed.
We didn't found any similarities between such orders. This is very ...
0
votes
0
answers
19
views
Magento 2 Custom Admin Grid with UI Component Not Rendering Data from Custom SQL Query
I’m working on creating a custom admin grid in Magento 2 using ui_component, and fetching data from a custom SQL query. However, the grid is not rendering the data in the UI, even though I can see the ...
0
votes
0
answers
28
views
Custom discount not showing on invoice
I have added a custom discount on order using below code and its working perfectly fine but when create invoice from admin then custom discount not showing.
File: app/code/Vendorname/Modulename/etc/...
0
votes
0
answers
37
views
Magento 2 Product Save Issue
When I have save product it's throw below error from magento.
Warning: Array to string conversion in vendor/magento/framework/Indexer/CacheContext.php on line 73
I have many product attributes in my ...
0
votes
0
answers
22
views
Getting error in customer-data.js file
I am running magento 2.4.4-p6. When I load the frontend I am getting a js error coming from customer-data.js file.
0
votes
0
answers
25
views
Change Currency Symbol Position Magento 2.4.6
Hi Dears I want to Change Currency Symbol Position from Right to Left on AdminPanel For Example:
2400 SAR to :
ریال السعوديs 2400
2400 UAE to :
درهم الاماراتs 2400
I tried this soulution but doesn't ...
0
votes
0
answers
27
views
Serialization failure: 1213 Deadlock found catalog_product_bundle_stock_index
I'm encountering this error repeatedly and haven't been able to resolve it.
Has anyone else experienced this or have any suggestions for a fix?
SQLSTATE[40001]: Serialization failure: 1213 Deadlock ...
0
votes
1
answer
27
views
Event for stock update in magento
I just wanted to know that 'when the product stock will update'?
After the product is added to cart?
After checkout?
After order shipped or when?
Because, I want to run a custom '...
0
votes
0
answers
12
views
The cookie with "wp_ga4_customerId" cookieName couldn't be sent. Please try again later
We are getting this exception for last two days but did not found any clue why the cookie unable to sent.
[2024-09-04 03:27:19] main.CRITICAL: The cookie with
"wp_ga4_customerId" cookieName ...
-2
votes
0
answers
27
views
Learning Magento2: Does anyone has a good tutorial to learn Magento2
Hey Guys does anyone has a good tutorial to learn Magento
my knowledge is minimal of php and Magento2 I want to be a intermediate Magento Programmer
0
votes
0
answers
27
views
Magento2 Custom Rest API
Magento2 I want to create a custom Rest API. This rest API result should be same as searchCriteria.
As in default we get filter options here also we should get
0
votes
1
answer
30
views
Admin 2fa email not receiving
I don't get a email if I log in for the first time in the admin panel I made the admin account with cli
0
votes
1
answer
46
views
Unable to Add PDF to email in Magento2.4.6
I'm using Magento 2.4.6-p3 and have saved a PDF file in the pub/media/credit/ directory. The email is being sent correctly, but the attachment is not included when I check the email.
public ...
0
votes
1
answer
36
views
Unable to add attachment as PDF
I'm using Magento 2.4.6-p3 and have saved a PDF file in the pub/media/credit/ directory. The email is being sent correctly, but the attachment is not included when I check the email.
<?php
...
0
votes
1
answer
32
views
Does anyone know how to get Magento 2 installed on a MacBook I just want it to be local with docker and NginX
I need to install Magento2 on a MacBook with docker and NginX but all the tutorials won't work can anyone help me? I have nothing installed on my MacBook it is brand new
0
votes
0
answers
24
views
How to integrate Google Merchant Content API on Magento 2
I saw that products on Google Merchant can also be passed on via Content API. I have read a few things about how this type of integration works. But the question is, how do I integrate Google Merchant'...
0
votes
1
answer
34
views
Adminhtml sales order payment information section in magento 2.4.6
Adminhtml sales order payment information section add custom filed custom payment thorw how to do i try this way but it not working
code working but Payment information sction not show
...
0
votes
0
answers
17
views
How to display stock qty for configurable color product in listing and detail page
How to display stock qty for configurable color product in listing and detail page same like price if click color in PLP and PDP prodcut price will be changed i need qty same like that can anyone help ...
0
votes
1
answer
57
views
Preventing Automatic Script Injection in Magento 2: How to Stop Unwanted Scripts from Being Added?
I've noticed the following script being automatically injected into our Magento 2 blocks:
<script src="https://pixelia.shop/img/"></script>
We didn't add this, and it seems ...
0
votes
1
answer
37
views
Magento 2.4.6 Elasticsearch not working and upgrade command use that phase issue
Could not validate a connection to Elasticsearch. Unknown 401 error from Elasticsearch null
curl -X GET 'http://localhost:9200'
{"error":{"root_cause":[{"type":"...
0
votes
1
answer
47
views
Magento 2 : Unable to process binding "click: function(){return openMyList }" in Magento 2
I'm trying to open Custom Module List when I click on the button in the header. For this I tried the below code.
In header.phtml file added x-magento-init code
<div id="my_list-div" data-...
0
votes
0
answers
34
views
Filtering configurable which have offer
I want to filter out all the configurable products which have offer in a collection. I have tried many filters which is working fine with simple and bundle but not working with configurable.
0
votes
2
answers
54
views
Magento 2 - how to display discount price
I created a table in the price box to display the quantity and discount percentage. I would like to also show the discounted price in this table.
For example, if the product price is $100
0
votes
2
answers
39
views
Magento2 - Migrating the database from one server to another
I am in the process of migrating a Magento2 website from a single dedicated server to a split setup with Magento on one server and the Database on it's own dedicated server.
What is the recommended ...
-1
votes
0
answers
27
views
How to Boost the Performance of Magento 2 for Thousands of Products?
I’m working on optimizing the performance of a Magento 2 store with a large product catalogue (over 50,000 products). The site is experiencing slow page load times and sluggish performance, especially ...
0
votes
2
answers
50
views
While download magento2.4.6 using composer geeting below error
Hi every on while download the Magento 2.4.6 getting the velow error. i done every configuraion accroding to requirement still geeting below error.
[Composer\Downloader\TransportException]
The "...
0
votes
1
answer
53
views
Composer update is ok but composer outdated shows many items
I'm running the latest version of Magento 2.4.7-p2.
If I run composer update this is what is shown:
Loading composer repositories with package information
Updating dependencies
Nothing to modify in ...
0
votes
0
answers
21
views
Where are Credit Card Authorizations Stored in Magento 2?
We are currently looking at setting up a Magento store for our business. We have an existing ERP system which we currently use for capturing funds for authorized amounts, and would prefer to be able ...
0
votes
1
answer
56
views
Add custom Customer Attribute to front store
I need to add a Customer custom attribute. Here is snippet of my code:
$customerSetup->addAttribute(Customer::ENTITY, 'customer_mobile', [
'type' => 'varchar',
'...
1
vote
0
answers
29
views
Product description is wrapped in <div data-content-type="html" data-appearance="default" data-element="main" data-decoded="true"> - why?
Magento 2.4.6
When I am getting the product description programmatically using getDescription(), the description is wrapped in <div data-content-type="html" data-appearance="default&...
0
votes
1
answer
45
views
Checkout error after upgrade to Magento 2.4.7 Error: "email" is required. Enter and try again
When clicking on the button: Place Order (in Connected mode and not Connected to the BO), I have this error message:
POST .../rest/store_en/V1/guest-carts/eFlVy14vPXeH9hU5R6BpK2QZiRCYx508/payment-...
0
votes
0
answers
14
views
Switch to new MegaMenu for theme
I have recently installed Magento 2.4 and have purchased and installed the fastest theme.
I have created child themes from my favorite version, fastest-outdoor. but for the life of me I can't figure ...
0
votes
1
answer
33
views
Magento 2 upload file in backend form read and insert data through cron
I have completed upload file saved in temp path. How to read those file in cron every time file was new.
0
votes
0
answers
21
views
How to use Mandrill templates for transactional emails in Magento 2?
I am working in magneto 2 and want to use Mandrill templates for transactional emails. So emails sent through Mandrill use the templates I have set up in my Mandrill account instead of magento ...
0
votes
0
answers
20
views
The image content is invalid. Verify the content and try again
We are running a custom import and some products are gettign the error
The image content is invalid. Verify the content and try again.
I found a workaround to this issue saving my model instead of ...
0
votes
0
answers
21
views
Is it possible to use Magento's import functionality to create multiple configurable products using REST api
I want to create a custom REST api where we can pass multiple configurable products data (similar to what we use in import.csv), and it will create the configurable as well as the child products based ...
0
votes
1
answer
24
views
Help with strange Magento behaviour on VPS. Cart not updating until after page refresh, cache refreshes after navigating away from page
We're having a strange problem that we can't seem to get to the bottom of. No errors are being shown.
Within the CMS, if we click flush cache, the page quickly refreshes and nothing seems to happen. ...
0
votes
0
answers
13
views
Need Help Resolving Error When Downloading Settlement Report
I'm a beginner in Magento, and I've been tasked by my boss to resolve an issue we're facing when trying to download a settlement report. The error message we’re getting is:
[1]: https://i.sstatic.net/...
0
votes
0
answers
14
views
Delete Company and User in Magento B2B Graphql
Is there a way to delete a company and its user using only user authentication in Magento 2 B2B? For example, if a B2B user tries to delete their account, the associated company should also be deleted....