Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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

Vulnerability Risk: Sequential numbering pattern of Address ID

How can I prevent an attacker from exploiting the sequential numbering pattern of address IDs in my application, which allows them to delete addresses belonging to other users and potentially lead to ...
ANNT's user avatar
  • 1
0 votes
0 answers
8 views

where I update the magento2 to the 2.4.6-p5 the page is show empty where I click the url

The browers open a blank page when I click a url,but it work where I refresh the page! can somebody tell me what happen? My website work well on 2.4.3 the issue appear when I update it to the 2.4.6-p5
cc l's user avatar
  • 1
0 votes
1 answer
18 views

How to get admin controller url to js without using phtml file?

I have created new mass action for product grid, So whenever someone click on that mass action, custom admin controller url should be pass to js
Mark's user avatar
  • 63
0 votes
1 answer
8 views

I am facing these error from the database. I am not clear about which Parameter value needs to be update from the parameter group

We are using Magento Community version 2.4.2 it is hosted on AWS having EC2/RDS. Currently we are facing these errors which is eventually exhausting the RDS sessions. Need assistance regarding which ...
Abdul Rafay's user avatar
0 votes
1 answer
13 views

Magento 2.4: Save item option value in cart and retrieve it in order success

I have created a button for each product in the cart. Now I want to get the uploaded file URLs of each product from the cart and retrieve it in an email on order success. My controller: <?php ...
mechanic's user avatar
  • 440
0 votes
1 answer
31 views

magento2.4.7 wysiwyg media images not showing on fronted

I've just upgraded magento from 2.4.0 to 2.4.7, but now when I upload image into media gallery so, image not showing on frontend but working fine on backend. https://i.imgur.com/MM3wSxc.png https://i....
Keval Chauhan's user avatar
0 votes
0 answers
13 views

Hide Individual payment methods Place Order buttons from magento 2 checkout page

I don't want to show place order button two times i.e. common place order button and under each payment method. So I just want to hide the place order button of individual payment methods and keep the ...
shankar boss's user avatar
  • 1,453
1 vote
0 answers
20 views

Magento 2 and TDD good practices to implement tests

here is my concern, when it comes to testing in Magento 2, I find documentation is quite obselete or very difficult to understand. If PhpUnit offers ways to test a simple method...I feel like as soon ...
Claims's user avatar
  • 1,219
0 votes
0 answers
10 views

Can we add neq condition in Magento 2 Live search graphql search filters?

Can we add neq condition in Magento 2 Live search graphql search filters? I need to add a condition so, a specific attribute value products will not show in categories and search collections.
Ankur Verma's user avatar
0 votes
0 answers
12 views

Magento 2 Get order collection using mysql query group by sku

i am trying to get order collection group by sku using sql query. this query is working in my local system but not in my live site. it returns - Uncaught TypeError: Cannot read properties of undefined ...
MageComp Project Team's user avatar
0 votes
1 answer
15 views

Production mode - js load issues after upgrade to 2.4.7

I recently did upgrade my magento from 2.4.4 to 2.4.7 While running frontend in production mode, there are lots of issues regarding js file load. Example: The resource from “https://magento.local/...
Przmak's user avatar
  • 1
0 votes
0 answers
4 views

Magento RDS too many connections

Hi, I am facing some abnormal condition. Even though the server specs are very high and CPU usage is only 2.5%. Suddenly there is a lock on inventory table some times on order grid and then for every ...
Abdul Rafay's user avatar
0 votes
1 answer
12 views

Magento 2 custom checkout input field based on custom component

I am trying to add new select field that will have certain values when city is changed. To do that I need my custom js component because it does the adding/removing options from select. Below is my ...
Milos Stambolija's user avatar
0 votes
0 answers
6 views

Magento 2 Bundle Products: Don’t take into consideration special price (discount) of a bundle items (child products)

I created a bundle product using dynamic price. This means Magento will calculate the bundle product price based on the price of each bundle item (child product) the customer selects. Let say we have: ...
TheAgent's user avatar
0 votes
0 answers
11 views

How to get icecat data in multiple languages

Magento 2.4.6 I am using https://packagist.org/packages/icecat/magento2-extension to get data from icecat. Unfortunately, I am only getting data in one language (german) ... is there a way to get data ...
user4095519's user avatar
0 votes
1 answer
22 views

my product images on search page disappear

I'm facing an issue with product images on the search page. Some images are disappearing on the search result page as shown below. I am working with a custom theme called "codazon". Does ...
Danyxa's user avatar
  • 1
0 votes
0 answers
9 views

Cloudflare's full html edge cache with Magento cookies bypass

We are trying to setup magento edge cache with cloudflare including html. The url route of bypassing cache on urls alone e.g. /customer, /admin, etc doesn't really work bcoz e.g. when a customer logs ...
raza19's user avatar
  • 23
0 votes
0 answers
12 views

Images attached to page builder vanish on save but the data is saved on my table (the problem is on arabic_image_one)

<?php namespace magento\test\Controller\Adminhtml\Index; use Magento\Backend\App\Action\Context; use Magento\Framework\Api\DataObjectHelper; use Magento\Framework\App\RequestInterface; use Magento\...
Alan Biju's user avatar
0 votes
1 answer
23 views

multi shipping order place using rest api in magento 2.4

I would like to know which APIs we need to use and the parameters required to place multiple orders as a guest customer. Thank you in advance for your assistance.
Kushal Dani's user avatar
  • 2,114
0 votes
1 answer
39 views

Magento2 | Change subject email of new order if condition is true

I created an observer that changes the email subject when I place a new order: This is the ChangeOrderEmailSubject.php file: <?php namespace Sales\OrderCust\Observer; use Magento\Framework\Event\...
Jackom's user avatar
  • 493
1 vote
0 answers
25 views

when i want to update the quantity in the cart page in magento 2 its not updated Magento ver. 2.4.3-p1

I have used this code to print the data in the cart parameter echo "<pre>"; $cartData = $this->getRequest()->getParam('cart'); print_r($cartData); the ...
Mateen Ahmed's user avatar
0 votes
1 answer
19 views

product.info.options.wrapper cacheable false

<block class="Magento\Catalog\Block\Product\View" name="product.info.options.wrapper" as="product_options_wrapper" template="Magento_Catalog::product/view/options/...
usman's user avatar
  • 440
1 vote
0 answers
19 views

how to get dependency graphs - problems in generated code

I am trying to look at dependency graphs by setting MAGE_PROFILER=2, as explained here. When I do, I get an error like Fatal error: Declaration of Magento\Framework\Interception\Config\CacheManager\...
Michael Wolf's user avatar
0 votes
2 answers
35 views

How to remove parent theme handle from child theme programmatically?

Parent theme (theme design directory path) app/design/frontend/Jigar/basetheme/Magento_Customer/layout/customer_account_create.xml Here is the sample code : <?xml version="1.0"?> <!...
Jigar Karangiya's user avatar
0 votes
0 answers
22 views

Show Related products in the popup modal

I am using this code to show the modal when product add to cart define([ 'jquery', 'mage/translate', 'underscore', 'Magento_Catalog/js/product/view/product-ids-resolver', '...
Rana Zain's user avatar
  • 658
3 votes
3 answers
141 views

Magento 2.4.7: Page Builder was rendering for 5 seconds without releasing locks

I am facing issue with my pagebuilder on server. I am using apache server for my Magento (2.4.7) instance. When I first open the category edit page on incognito mode, I open the pagebuilder, add my ...
Jaimin Sutariya's user avatar
1 vote
1 answer
21 views

Magento 2.4.7 3rd party scrpit is not working on checkout page

Error Screenshot: https://prnt.sc/evsXGmA4rOdW <?php $googlehelper = $this->helper('Module\Extension\Helper\Data'); $isenabled = $googlehelper->isEnabled(); if($isenabled) : ...
Magecomp Product Team's user avatar
0 votes
2 answers
29 views

Magento2 | Recover order increment id from Observer of an Reorder

For the reorder function, I added an Observer in my custom module that allows me to extract the quote_id. Actually my real goal is to get the increment id of the order I am reordering for. Currently ...
Jackom's user avatar
  • 493
0 votes
0 answers
8 views

PWA Scandi cart and checkout page is not showing

I have installed the Scandi PWA on the Magento 2.4.6 Community. Its working fine but it doesn't go to the cart and checkout page it gives me this error in the logs. previous exception] [object] (...
Rana Zain's user avatar
  • 658
0 votes
1 answer
24 views

Magento admin ui grid not loading

I am trying to create an admin grid module which loads custom data. I have created the small module to test the feature. However, the grid is not loading. Below is the code. Controller: app/code/Itm/...
Dexter's user avatar
  • 3,613
1 vote
0 answers
11 views

Magento 2 Product Details page is being timed out

in our magento store everything was fine. But recently we are facing product details page is being timed out. CPU Usage is also getting high if we open that product details page. It is only happening ...
Amiyo Ghosh's user avatar
0 votes
2 answers
57 views

Magento 2 Map APIs Issue

I have deleted Array.from=$A from the legacy-build.min.js, google maps work Agien but other issue is dived, how can I solve this issue? can any one help please?
Ahmed Yahya's user avatar
0 votes
1 answer
22 views

The "oauth/consumer/enable_integration_as_bearer" path doesn't exist

I am trying to reset API but when I going to the path Stores > Configuration > Services > OAuth > Consumer Settings > Allow OAuth Access Tokens to be used as standalone Bearer tokens I ...
Haider Mohammed's user avatar
0 votes
0 answers
12 views

Magento 2 - Change value Quote item when I add to cart via Reorder button

I am trying to change a custom value each time I add to the cart via the “reorder” button. Right now I am trying to do this in the file “Magento\Sales\Model\Reorder\Reorder.php” but without success. ...
Jackom's user avatar
  • 493
0 votes
0 answers
10 views

Need Help with Adobe Marketplace

I'm currently exploring the Adobe Marketplace and I have a few questions. I hope someone here can help me out. How do I list my products on the Adobe Marketplace? I'm a developer and I've created some ...
Scriptzol's user avatar
0 votes
2 answers
57 views

switcherConfig not working with tab layout but works with collapsible

I am trying to add a switcherConfig on one of my ui component field. Its a simple show/hide rule based on value of one field. This code Works: <?xml version="1.0" ?> <form xmlns:xsi=...
Jaimin Sutariya's user avatar
0 votes
2 answers
25 views

How to add bootstrap and angular in magento2.4.5

I'm a new Magento developer. I have a question, can I integrate bootstrap5 or tailwind css into my module without affecting the class of other modules and can I integrate angular into magento and how? ...
Abu Shino's user avatar
0 votes
1 answer
18 views

magento246: getting wrong permission for category?

I have set category permission to deny for non-logged-in users and in the database values are saved accordingly. but when I search product on front end it shows the wrong permission. \Magento\...
Afzal Arshad's user avatar
1 vote
1 answer
60 views

Custom Success or Error message in the popup in Magento 2.4

I am creating the functionality for showing error or success messages in the custom popup box after order placement in Magento 2.4. Any reference or help is appreciated.
Mitul Vadalia's user avatar
0 votes
2 answers
44 views

Adding if condition in checkout_index_index.xml

I want to add an if statement inside checkout_index_index.xml. The reason for these is to hide some of the element like discount code. I know this is possible with JS file but I don't want to use the ...
Avesh Bond's user avatar
0 votes
1 answer
31 views

Can we configure webhooks in Magento using its REST API

I'm currently exploring the capabilities of Magento's REST API for integrating with external systems, and I'm interested in setting up webhooks to receive real-time notifications for specific events ...
Ibrar Akhtar's user avatar
0 votes
0 answers
9 views

Conenct PWA with the magento 2

I have successfully installed Magento 2.4.5 and the PWA as well. Now I am configuring the PWA with the Magento. I have changed the Backend_URL in the .env also installed the Upward module , apply ...
Rana Zain's user avatar
  • 658
0 votes
1 answer
18 views

Magento 2 product search by keyword on the backend is returning a timeout

When I try to search for a product by keyword, it times out and shows a 524 error. When I checked the debug log, it showed a warning like the one below. Did not write session for ID ...
Krishna's user avatar
  • 11
0 votes
2 answers
31 views

Magento Query on pdp page

i want to print and check query calling on pdp page how i can check that product query on product detail page?
alam's user avatar
  • 1
0 votes
1 answer
24 views

Magento 2 development agency

Good afternoon, I would like to know your opinion regarding the development services provided by Amasty and Mageplaza. They are two of the largest companies in terms of Magento extensions, and they ...
Desenvolvimento 's user avatar
0 votes
1 answer
24 views

Magento246:Product is still visilble for non-logged in customers after setting category permission to logged in user only?

I created a test category called Test added a test product and set category permission to Logged in user only. so the category and product shouldn't be visible to non-logged-in customers. but when I ...
Afzal Arshad's user avatar
1 vote
0 answers
33 views

Magento 2 : Error of cookieMessagesObservable is not defined

I have updated the Magento to 2.4.7 recently and updated it to the staging server. I am getting the error that cookieMessagesObservable is not defined in the console and due to this Minicart is not ...
Aman Mamdani's user avatar
0 votes
1 answer
33 views

Issue while exclude products in category listing

I need to exclude specific attribute products in the category and search collection. I have created beforePrepareProductCollection from the 'Magento\Catalog\Model\Layer' Class. It is working fine. But ...
Ankur Verma's user avatar
0 votes
1 answer
21 views

Magento PWA vs Scandi PWA vs Vue Storefront

I want to use the PWA on magento 2 for creating custom work. Please suggest me which is best which one I should use and also tell me about the resources where I can take help.
Rana Zain's user avatar
  • 658
2 votes
2 answers
136 views

Widget not inserting or saving when the word 'type' is used anywhere in the text after a quotation mark

For a little context, we have recently made the decision to disable page builder and move towards a component-driven content entry approach utilising widgets. We have a "Generic Text" widget,...
Matthew Dewhurst's user avatar

1
2 3 4 5
957