Skip to main content
The 2024 Developer Survey results are live! See the results

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

Magento CSP - design inline scripts

I have update my store to Magento version 2.4.6-p6 Aaaand there is an issue with newly added restricted CSP policy on checkout page. I have a bunch inline scripts that are added via admin panel (...
Macas's user avatar
  • 487
0 votes
0 answers
21 views

Security update available for Adobe Commerce - APSB24-40 popup for Magento 2.3.x

Recently, for all Magento projects, one popup suggests applying a security update patch. I received the same popup for even Magento 2.3.x websites. However, I couldn't find any patch for it. Can ...
Magento TridhyaTech's user avatar
0 votes
0 answers
7 views

How to make oauth request using guzzlehttp

I am trying to connect two magento2 instances through REST API. I have already created Endpoints. I am using GuzzleHttp\Client to make request. How to implement Oauth Using guzzlehttp. Any other ...
Haarish Infant Raj's user avatar
0 votes
2 answers
18 views

Magento 2: Nginx Rewrite Rule for Updated Media Base URL

I recently updated my media base URL to {{unsecure_base_url}}media/version1234567/. While attempting to create a rewrite rule in Nginx, I've encountered some difficulties. For a single URL, I used the ...
Partab Saifuddin Zakir's user avatar
0 votes
1 answer
10 views

Theme - requires a dependency "magento/framework" cannot be found

I've begun working on a theme for Magento 2. I'm new to this so go easy. I've been following along with the documentation Create a Storefront Theme | Commerce Frontend Development and I want to add an ...
Oliver's user avatar
  • 101
0 votes
0 answers
12 views

Group Products are not sorted correctly according to their grouped price

I have a grouped product in magento 2 that is not sorted correctly in my category view. Due to the fact that a group product does not have its own price magento apparently takes the min_price (which ...
plantcode's user avatar
0 votes
0 answers
11 views

Magento 2 - Access to XMLHttpRequest - /adminhtml/Magento/spectrum/en_US/js-translation.json has been blocked

Currently we are using magento 2.4.6-p6, we are recently noticing below issue in the console, while opening the cms blocks / cms pages from admin. Access to XMLHttpRequest at 'https://website.com/...
Mani's user avatar
  • 393
0 votes
0 answers
11 views

I can't download magento sample data , i use 2.4.6 and php 8.1.2

My command line is still like it for a hour :))
ducanh's user avatar
  • 15
0 votes
0 answers
15 views

How to Override the swatch-renderer.js in Magento 2 Custom Theme?

I am trying to override the swatch-renderer.js file in my custom Magento 2 theme. I have created the required directories and the custom JavaScript file but it doesn't seem to work. Here is what I ...
Ankush Lodhi's user avatar
0 votes
0 answers
4 views

Magento, Saved data not in DB after throw new LocalizedException

save some records to DB and after throw LocalizedException, the saved data does not show in the table. auto increment ID is assigned $data = [ 'sku' => $f_sku, 'user' => $adminUsername, // ...
kanishka maduranga's user avatar
0 votes
0 answers
17 views
+100

M2.3.7 Checkout Error: Exception message: Failed address validation: "Parent Order Id" is required

While using Paypal Standard Checkout, I am able to process through all the steps, until the very last place order call, inwhich I get the error code; Failed address validation: "Parent Order Id&...
ne0nlight's user avatar
  • 109
0 votes
0 answers
14 views

Customize Native Checkout Address Field

I want to customize the native checkout page, Display the email field after the Phone Number Add label between the shipping address form.(For e.g Contact information, Shipping Information) ...
Sunny Rahevar's user avatar
0 votes
0 answers
17 views

I want to upload file via file uploader in admin panel ui component and it does not work on magento 2.4.7 but it works in magento 2.4.6

The resource from “http://site.local/static/adminhtml/Magento/backend/en_US/jquery/file-uploader.js” was blocked due to MIME type (“text/plain”) mismatch (X-Content-Type-Options: nosniff)
Khubaib Shadeed's user avatar
0 votes
1 answer
18 views

How to create an order with Configurable Product with Multiple options(same parent with different option)

I'am trying to create an order with Rest API in magento2 , Here i have a configurable product with id 100 and have some child product with different attribute value, here is the payload what i have ...
amith lal's user avatar
  • 790
0 votes
2 answers
37 views

COD for specific city

I want to enable COD only for specific city, is it possible ? I saw many articles but it's for Magento 1 not 2 Looking forward for your kind assist.
Dun7ill's user avatar
  • 83
0 votes
0 answers
10 views

Ghost stock in magento 2

im working on magento 2.4.7 and been experimenting on the MSI features. i have a very straightforward simple product that has a 1 saleable quantity even though the sources are all 0. i tried to check ...
mendz's user avatar
  • 143
0 votes
0 answers
7 views

price-box.js file not loaded in some pages

I noticed that there is a problem in my site, price-box.js file didn't load in some categories ! Could you please tell me why it's not load in all category pages ?
Dun7ill's user avatar
  • 83
0 votes
0 answers
5 views

How to parse or convert array to Magento classes in custom renderer webapi

I'm trying to implement a Renderer for the Webapp, an addition to the existing 'application/json' and 'application/xml' renderers. Implementation of the RendererInterface: class CustomRender ...
memen's user avatar
  • 1
0 votes
0 answers
11 views

Modify price-utils.js by mixin

I'm trying to modify price-utils.js to add function that change price numbers to English. I've created price-utils-mixin.js in Vendor\Theme\web\js: define([ 'jquery', 'underscore' ], ...
Dun7ill's user avatar
  • 83
0 votes
0 answers
16 views

Show VAT Number on Shipping Page Magento 2

I want to show VAT Number on Magento 2 Shipping Page only & that too when particular checkbox is checked. Can someone help me in developing this. Basically, what I want - There will be custom ...
Rashi Goyal's user avatar
0 votes
1 answer
19 views

Custom customer multiselect attribute with options in database

I need to create an extension that will store options of multiselect customer attribute in the database, and I can add through database new options. There are many answers of how to create multiselect ...
Herecomes's user avatar
0 votes
0 answers
30 views

How to add csp validation for admin cms content which have script

I have multiple js code which i am loading on checkout using admin cms block content like // Change Text of Label in Create Account Page const el = document.querySelector('.element'); el....
Suraj Prajapat's user avatar
0 votes
1 answer
45 views

Update to 2.4.7 give Symfony error

Trying to update site from 2.4.6-p6 to 2.4.7 or 2.4.7-p1 :composer.phar require magento/product-community-edition=2.4.7 --no-update :composer.phar update Get the following err: *"Your ...
Bob Davey's user avatar
0 votes
0 answers
21 views

Magento variable plugin is not defined magento 2

when we click on insert variable button that time magentovariableplugin is not defined got this error so we added adminhtml_system_config_edit.xml and issue is resolved but system configuration layout ...
shreya's user avatar
  • 1
0 votes
2 answers
33 views

Magento 2.4.5-p5 - Need to display out of stock products at last on category page

I am using Magento 2.4.5-p5, Out-of-stock products should be displayed at the bottom of category page. I also tried sorting the products. I set the sort order for products in the category within the ...
Ishu Kakria's user avatar
0 votes
0 answers
17 views

Magento 2: How to add two index for the same column in DB with db_schema.xml

I have a column name in my db_schema.xml, I want it to have the unique property and also fulltext, when I add these two fields it returns an error that said Index Name already exists, this is because ...
Roberto's user avatar
0 votes
0 answers
18 views

Magento 2 : Special price From and To Date Calendar not Showing

I am using 2.4.6-p6, when I try to set the From and To date inside the special price form the calendar is not showing. However, I have other custom product attributes of type calendar, and working ...
ishaq's user avatar
  • 195
0 votes
0 answers
8 views

Magento 2 : Website Become Slow after Updating Tax Configuration

We currently have a stable website on magento 2.4.6 version with Elasticsearch and Redis-server. Websites is very responsive and fast, until we update tax configuration. When we change default tax ...
FAZAN's user avatar
  • 1
0 votes
1 answer
32 views

Which ui component file is responsible for tier pricing in magento2

I need to find the file which is responsible for displaying tier prices for prodcuts in the admin panel
Santhana Vignesh's user avatar
0 votes
0 answers
18 views

Email config error

I install module from https://github.com/magepal/magento2-gmail-smtp-app, I config stmp.gmail then username using my email for sure, password is my app password like a key, then i click test but is ...
ducanh's user avatar
  • 15
0 votes
0 answers
23 views

How to add custom content to products endpoint?

In magento 2.4.6 I have a custom module that adds some configuration in the admin panel. I also have a Helper/Data.php with methods to collect the value of each field of this configuration. On the ...
Noty's user avatar
  • 76
0 votes
1 answer
11 views

How to keep track of this of the parent component when calling a parent function inside a foreach loop in the template in knockout?

I have a cart-items-mixin.js define(['Magento_Catalog/js/price-utils', 'Magento_Checkout/js/model/quote', 'ko',], function(priceUtils, quote, ko) { 'use strict'; return function(CartItems) { ...
mullayo's user avatar
  • 23
0 votes
0 answers
15 views

Tax Calculation Rounding issue in Admin order section. Could anyone please help?

We are facing a tax calculation rounding issue in my Magento Website (Version 2.4.4). We have tried many times but are unable to fix it. Could anyone please help? We have attached the screenshots for ...
Shiv Om Mishra's user avatar
0 votes
0 answers
17 views

How can I convert this script that compatible with Hyva thme in Magento 2?

I need to convert this given script that compatible with hyva theme require( [ 'Magento_Checkout/js/model/cart/cache', 'Magento_Checkout/js/model/cart/totals-processor/default', ...
Jay Parmar's user avatar
0 votes
0 answers
81 views

Issue in Showing stock filter in layered Navigation Magento2

I followed below links to Display Stock filter in the layered navigation. https://magecomp.com/blog/add-stock-filter-on-category-layered-navigation-magento-2/ Magento2: How do I add a filter for "...
Jafar Pinjar's user avatar
  • 1,949
0 votes
2 answers
27 views

Magento 2 How to Get Bundle product options lables with value in custom email templates

how do I get bundle product options labels with value in my custom email templates? My custom email template code is here.. <?php /** * Copyright © Magento, Inc. All rights reserved. * See ...
Keval Chauhan's user avatar
0 votes
1 answer
30 views

Update / create FPT using API

Is it possible to update / create FPT (fixed product tax) for a Magento 2 product using the REST API? I have not been able to find anything about it. Current way to administrate in bulk is either ...
Andreas's user avatar
  • 323
0 votes
0 answers
26 views

How to fix image preview into admin product form Customizable Options

How to add admin product form Customizable Options need to upload and show the image.But image upload successfully after saving the product form but not display the image on customizable option. Is ...
vicky's user avatar
  • 1
0 votes
1 answer
58 views

Prices numbers in English numbers

I'm working on Magento 2 V2.4.6 and I'm facing a problem with prices numbers, in the other store view like Arabic ( the numbers changed to Arabic numbers while I need it to still in English numbers ). ...
Dun7ill's user avatar
  • 83
1 vote
1 answer
31 views

Title: How to Create Website-Specific Customer Attributes in Adobe Commerce (Magento 2)?

I am working on a Magento 2 project where I need to create customer attributes that have different values for different websites. By default, Magento 2 customer attributes are scoped globally, but I ...
Sanjib Chowdhury's user avatar
0 votes
2 answers
45 views

Where is the file with all customers details (last log-in date)

Where is the folder that contains the information of registered customers? I need to extract the 'last login date" with e-mail/name/id Thanks!
Flavio's user avatar
  • 1
1 vote
1 answer
45 views

str_replace(): Argument #3 ($subject) must be of type array|string, float given error after magento upgrade from 2.3.7 to 2.4.7

I have upgraded magento from 2.3.7 to 2.4.7. And one of the graphql query gives below error str_replace(): Argument #3 ($subject) must be of type array|string, float given at /vendor/magento/module-...
NotEqual's user avatar
0 votes
1 answer
39 views

Is it possible to programmatically disable customer group pricing?

I have some code that programmatically creates an order by building a quote object and then calling: $this->cartManagementInterface->placeOrder($quote->getId()); For these specific orders I'm ...
Timothy Fisher's user avatar
0 votes
1 answer
22 views

Magento 2: Custom emails display Admin URL instead of Store URL in the logo link

Email header logo link uses <a class="logo" href="{{store url=""}}"> Display www.xyz.com/admin instead of www.xyz.com/us I am using same email header in all email ...
Arun Sharma's user avatar
  • 1,327
1 vote
1 answer
43 views

Best Practices for Retaining and Managing Subscription-Based Third-Party Extensions After Subscription Cancellation

We have a third-party extension for our Magento store that we purchased on a subscription basis. We've decided not to continue with the subscription, so we cancelled it. However, we want to continue ...
Zahirabbas's user avatar
  • 2,083
0 votes
0 answers
29 views

After disabling msi modules products disapper from category page

I disabled the MSI module on my Magento store version 2.4.2-p2, and everything seemed fine. However, upon testing the website, I discovered that products were no longer appearing on my category pages. ...
Ashwani rana's user avatar
0 votes
2 answers
56 views

Magento 2 - Add Simple Products to Configurable Product, only virtual products appear

I have created a configurable product and it is always mandatory to create a product, Magento creates them as a virtual product, and then the option to add products manually appears, when I click on ...
Diego Castro's user avatar
0 votes
1 answer
23 views

How to migrate a Magento 2 single store to a Magento 2 multi store

What is the best method to migrate all data (Orders, Customers, Catalog, Attributes) from a single Magento 2 store instance to a new Magento 2 Multi store instance? What is the process? or extension ...
AlfredoGM's user avatar
0 votes
0 answers
10 views

M2E Pro eBay product not visible after refund

a customer of mine has a problem with his Magento2 store and the connected eBay account. He created multiple products under a specific category and sold them over the M2E Pro extension at eBay. After ...
Daniel Mint's user avatar
0 votes
0 answers
42 views

Magento 2 coupon code shows 1 Times used in admin but it is not showing in any orders

We are currently using Magento version 2.4.5-p1. We've encountered an issue with the Magento cart price rule with coupon codes. The problem is as follows: 1 - In the Magento admin panel -> Cart ...
sumeet bajaj's user avatar
  • 1,316

1
2 3 4 5
959