Skip to main content

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

Adding a custom product attribut ti tier price template?

I am trying to modify tier_price.phtml to add a custom product attribute called "unit". No idea how to do that ... can anyone point me to the right direction? Current code: <script type=&...
user4095519's user avatar
0 votes
0 answers
19 views

Klaviyo API Retirement on June 30th

I got an email that says we will be affected by the API retiring in a week. We are running Magento 2 version 2.4.5 and Klaviyo version 3.0.11. If this chart is correct, then we need to upgrade to at ...
Scott's user avatar
  • 1
0 votes
2 answers
47 views

Facing issue in fetching child product attributes value

I have following code, In which I am fetching attribute values for child and parent products: public function setAttributeValues(array $products) { $this->values = []; foreach (...
Smit Kandiya's user avatar
0 votes
0 answers
40 views

Magento 2.4.7 multiple wysiwyg editor not working

We have create custom admin grid form and use three wysiwyg editor but not working in magento 2.4.7 but working on magento 2.4.6. please see given below Screenshot. https://prnt.sc/4c4kUe6MxUSg (in ...
MageComp Project Team's user avatar
0 votes
1 answer
26 views

Does Magento2 write to system.log and exception.log in Production Mode

I have Magento 2.4.6 website and I am in the process of migrating the website to new hosting. On the new hosting on Ubuntu, there are no logs being written on system.log and exception.log while ...
user116362's user avatar
0 votes
3 answers
55 views

How to remove default pagebuilder elements

I have made some custom content types for the Magento 2 Page Builder, and now need to remove some of the default ones (eg. everything under the Elements dropdown) to prevent them from being used. I'm ...
rich's user avatar
  • 103
0 votes
1 answer
32 views

when i open the admin panel of magento, then sales>order, then i get the following issue

Issue: Item (Magento\Framework\View\Element\UiComponent\DataProvider\Document) with the same ID "944" already exists. Exception in /var/www/html/protecta/vendor/magento/framework/Data/...
Bhim Lamichhane's user avatar
0 votes
1 answer
45 views

Magento 2: Add Wysiwyg to dynamic fields in System Configuration

I need to add a wysiwyg editor to dynamic fields on the system configuration, the issue is that the editor never render, this is the code i have so far: system.xml <group id="diagnosis" ...
Carlos A Magaña Perez's user avatar
0 votes
2 answers
41 views

TRUNCATE ui_bookmark; will delete all users?

I get the errors while customers add. err: Something went wrong with processing the default view and we have restored the filter to its original state solution: TRUNCATE ui_bookmark; ? is the right ...
hari prabhu's user avatar
0 votes
2 answers
29 views

how to add sidebar.additional in search page?

I don't know how to add the sidebar.additional in the search page, can anyone help? here's what i tried so far in catalogsearch_result_index.xml : <?xml version="1.0"?> <!-- /** * ...
media.queeries's user avatar
0 votes
1 answer
15 views

Magento2 | Get ratings for each review

I am trying to take product reviews programmatically, filter them by product and pull out the rating stars. I can get the text of the reviews (getDetail()) without any problems and in fact I see all ...
Jackom's user avatar
  • 493
0 votes
1 answer
11 views

Getting order items discount amount returns 0, but order discount returns right amount?

Magento 2.4.6 I ordered an item and applied a coupon code in checkout. I got a discount of $1.50. This amount is shown in the item on the order detail page as well as in the order totals. Now, trying ...
user4095519's user avatar
0 votes
0 answers
14 views

how to Create two packages for one product lbs in magento 2.4.5

A customer wants to order a large order, however, when the shipping weight exceeds 50lb. This is likely because the shipping would need to be separated into multiple boxes. We need the order to be ...
Admin SAB's user avatar
1 vote
0 answers
36 views

WYSYWIG editor, cannot upload images. (Expected to start loader but did not find one in the dom)

I cannot upload images with the WYSIWYG editor. When I open the image upload dialog. The folder names are not loaded correct. See image below. When I try to add an image, nothing happens. I think ...
Akif's user avatar
  • 1,551
0 votes
1 answer
54 views

Getting 401 error in advance reporting in Magento 2.4

I am getting error as in Image added below. I have followed all the steps as mentioned in devdoc. *Troubleshooting If you get a 404 “Page Not Found” message, verify that your store meets the ...
Amit Kumar's user avatar
0 votes
1 answer
45 views

Magento 2.4.6 MSI Inventory Indexing. cataloginventory_stock_status not updating

I run a multi-store install of Magento 2.4.6, recently upgraded from 2.3.7-p4 2.3.7-p4 was running with no issues using MSI, products stock_status was being correctly indexed in ...
Duncan Wardlaw's user avatar
0 votes
0 answers
30 views

When i input a wrong URL, it returns a "Default Category" page, but URL stays the same

I am working on a website and finding that when a URL is inputted wrong, it still returns a live, status 200, page, but provides a "Default Category" page. Initially, I thought it was a ...
William's user avatar
0 votes
2 answers
28 views

Adding primary key to an existing custom table algoliasearch_queue_archive

I am using Algolia extension in which algoliasearch_queue_archive is a table in which there isn't a primary key present. I tried adding primary key to the table using below db_schema.xml code <?xml ...
amitshree's user avatar
  • 7,056
0 votes
0 answers
18 views

Magento 2 : Error of continues reloading while apply and cancel of coupon code in checkout page

When trying to apply and cancel coupon code on the checkout page it continues reloading and getting an error in the console of cannot read the properties of undefined. See the attached images below of ...
Aman Mamdani's user avatar
0 votes
2 answers
114 views

Magento 2.4.4-p3 to magento version 2.4.4-p9 Upgradation

I want to upgrade magento version with cloud base project Can any one guide me for the Upgradation current version : Adobe Commerce ver. 2.4.4-p3 Upgradation in : Adobe Commerce ver. 2.4.4-p9
Charmi Patel's user avatar
  • 1,153
0 votes
1 answer
38 views

Home page styling gone after server migration and content deploy

Recently migrated M2 from one server to another. Everything was fine until I redeployed static content, at which time the home page stopped loading styles. I have tried everything under the sun: rm -...
Bluestocking's user avatar
1 vote
3 answers
622 views

Upgrading to Magento 2.4.7-p1

I have magento community 2.4.4-p2. I would like to upgrade to the latest version i think is 2.4.7-p1. I did this : composer require-commerce magento/product-community-edition 2.4.7-p1 --no-update ...
Francisco Muniz's user avatar
0 votes
1 answer
34 views

Magento change Position from delivery with price

Need change position from class="product attribute delivery_time" under class="product-info-price" I'm using the Proto Theme, can anyone help? What do I need to change here, ...
user116249's user avatar
0 votes
2 answers
31 views

Adding anything after category page URL needs to be ignored

I want to change behavior of Magento Category page URL. For example, if the category page URL is https://magento246p4-beta.com/gear/bags, I want to ensure that any additional text after "bags/&...
Tejas Vyas's user avatar
0 votes
1 answer
19 views

Does Magento 2.4.6 requires MSI modules compulsory?

We have just updated a Magento core version from 2.4.5 to 2.4.6. Earlier we had disabled MSI modules on 2.4.5 version. However, after upgrading to 2.4.6, product pages showing error where some of the ...
Deeps's user avatar
  • 784
0 votes
2 answers
75 views

Magento CSP csp_whitelist.xml but there are still violations remaining

I recently got my hands on magento_csp feature but I am not sure if I understood it correctly yet. I have created a custom modul which purpose is like a centralized summary of csp entries. app/code/...
kekw's user avatar
  • 103
0 votes
1 answer
22 views

Should I Include Magento Core Unit, Functional, and Integration Tests in My Custom Project Pipeline?

I’m currently setting up a custom project pipeline for my Magento application and have a question regarding the inclusion of Magento Core tests. Specifically, I am debating whether to include Unit, ...
Tommy J's user avatar
0 votes
2 answers
24 views

current version - none, required version - 1.0.0

1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory. The following ...
Alan Biju's user avatar
0 votes
1 answer
18 views

Magento API Date filter

Is it possible to create a Date filter to fetch orders created only in last two days using API , without hard-coded values ? Something like this: http://<magento_host>/rest/V1/orders? ...
Magento_noob's user avatar
0 votes
1 answer
42 views

Magento 2 Cutomisable Option Price Issue when switch currency

It seems you've encountered an issue with Magento 2.4.5 and lower versions when dealing with currency conversion for customizable options. Here’s a clearer description of the steps and the problem: ...
MageComp Project Team's user avatar
0 votes
0 answers
24 views

How to use Magento's built-in Cookie Restriction Mode with PWA Studio?

I'm new on PWA Studio and I'm trying to enable the Cookie Restrition Mode. I followed this documentation: https://docs.magento.com/user-guide/v2.3/stores/compliance-cookie-restriction-mode.html But it ...
Berg_Durden's user avatar
0 votes
2 answers
81 views

my custom module doesn't seem to have an affect

I've created my 1st module. The purpose is to add the customer group name to the order email template. I think that I didn't do something quite right and was hoping someone could look at my files to ...
Pete's user avatar
  • 13
0 votes
2 answers
40 views

Error in your cron job

Good morning. I have a CRON stuck because it fails to run due to this error. How can I avoid it and where should I intervene? SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or ...
Vito Lanave's user avatar
0 votes
1 answer
63 views

JQuery.Deferred exception: Unable to process binding in magento 2.4.6

I am trying to add a form after shipping methods. But I am facing JQuery.Deferred exception When I remove knockout js code like if or foreach , the template is rendered but when I add if or foreach it ...
Usama's user avatar
  • 1
0 votes
0 answers
23 views

Unable to Apply Custom Patch on Magento 2.4.5p2 Cloud

Below are the logs on the server [2024-06-12T13:47:34.472113+00:00] INFO: Verbosity level is not set [2024-06-12T13:47:34.478688+00:00] NOTICE: Applying patches [2024-06-12T13:47:35.346915+00:00] ...
usman's user avatar
  • 465
0 votes
1 answer
36 views

Get product attribute value on category page - Magento2

We want to load the product attribute value on the category page, of all attributes with a value "Yes" of label "is_featured". We create the following code in the list.phtml, but ...
JGeer's user avatar
  • 1,420
0 votes
1 answer
25 views

How to compile custom module scss file in Magento 2 using snowdog frontools

I am using snowdog frontools for compiling scss to css in my magento 2 application. I want to create a custom module for a feature for which I want to write some css code in scss format. I created one ...
Sejal Shah's user avatar
  • 2,153
0 votes
0 answers
13 views

Suddenly getting composer errors when updating extension?

Magento 2.4.6-p5 Suddenly I am getting weird error messages when updating one of my extensions. It starts with Install of ramsey/collection failed ... and goes on and on. I am using composer 2.2 and ...
user4095519's user avatar
0 votes
1 answer
22 views

magento246: How to redirect only homepage of website to another website using .htaccess?

I'm trying to redirect my homepage http://magento246.local/ to http://magento245.local/ but http://magento246.local/admin http://magento246.local/products/ and other URLs after slash should work as ...
Afzal Arshad's user avatar
0 votes
0 answers
24 views

How to login through REST API endpoint and magento web session in a single customer login flow?

I am using Magento as a headless CMS application and building my own frontend UI and backend application. The intention is to handle customer authentication, product listing and cart management ...
Ryan Pan's user avatar
0 votes
0 answers
28 views

magento 2.4.6 the requested company is not found

I am trying to edit companies using the "Edit" link at the right of the grid of companies from the admin. some companies when i try to edit it's getting an exception thrown. The requested ...
Shraddha Patel's user avatar
0 votes
0 answers
23 views

Magento 2 How to move custom product options under the custom container on Product page

I am customizing the Magento2 Blank theme, by using a custom child theme. I want the custom options,product prices add to cart section to appear in my custom container. I have created the file: app/...
Keval Chauhan's user avatar
0 votes
0 answers
28 views

Magento 2 Mass Action PDF open into new tab

I have create one custom mass action at order grid using this mass action download one custom pdf. Now, when I click on this mass action option pdf is automatically download but did not open into new ...
MageComp Project Team's user avatar
0 votes
0 answers
21 views

I am getting SQLSTATE[42S22] error after running the setup:upgrade command after importing a dump file in mysql

i have tried reindexing and toggling from schedule to realtime mode and i am still getting the error. This is what i get after php bin/magento setup:upgrade SQLSTATE[42S22]: Column not found: 1054 ...
Madhav Panicker's user avatar
0 votes
1 answer
51 views

Magento 2.4.7 When uploading a GIF image of a product, it is converted into PNG format

Product GIF image uploads in Magento 2.4.6 but not working in Magento 2.4.7 Error Screenshot: https://i.imgur.com/1qWandr.png
Magecomp Product Team's user avatar
0 votes
1 answer
39 views

How can I auto-approve quotes?

I am wanting to auto-approve quotes as customers approve them. Our company does not negotiate price, but we want the resource there for the customer. Is something like this possible?
Ryan's user avatar
  • 1
0 votes
0 answers
29 views

Get Current URL from a PHTML, inside Amasty Promo Banners Template - Magento 2

Amasty Promo Banner, template banner.phtml All solutions that i tried get not current url but this: https://magento.ddev.site/amasty_banners/banner/ajax/?_=1717758947843&banners%5B0%5D=&...
iskander's user avatar
  • 329
0 votes
0 answers
36 views

How to create a Grid Form with Ui Component Can you give me an example

How to create a Grid Form with Ui Component Can you give me an example
Alan Biju's user avatar
0 votes
2 answers
45 views

Magento2 & Elasticsearch 8.13.4 install: Could not validate a connection to Elasticsearch. Unknown 401 error from Elasticsearch null

Installing locally using php bin/magento setup:install --base-url=http://127.0.0.1/magento2/ --db-host=localhost --db-name=magento2 --admin-firstname=admin --admin-lastname=admin --admin-email=user@...
Teresa's user avatar
  • 101
0 votes
1 answer
31 views

Error while adding to cart Invalid state change requested Magento 2.4

When user try to add product in cart it giving error Invalid state change requested. This happens for few logged in customer. We using default REST API for add item to cart. The issue happens in ...
Amit Kumar's user avatar