Questions tagged [magento2.4]

Denotes questions related to the features included in Magento version 2.4.x

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Magento 2.4 special price reverting when qty updates

I have a special price set on some products in Magento 2.4. The price works fine when you put an original QTY in (on the cat page, product page, minicart or cart page) but as soon as the qty is ...
user avatar
  • 77
0 votes
1 answer
31 views

How can i remove items from the basket automatically if the customer added product is out of stock in Magento 2

scenario - the customer added products to the basket and logged out. After sometime he again logged in, now when he checked his minicart or cart i need to remove the products which are out of stock ...
user avatar
  • 33
0 votes
0 answers
73 views

Magento 2 Billing state format is invalid

Using Magento 2.4.0 Using Braintree 3D secure is enabled but when trying to place an order from checkout then it gives an error - {"error":{"message":"Billing state format ...
user avatar
  • 1,143
0 votes
0 answers
55 views

Issues with Checkout form custom fields

Magento 2.4 I have added few custom fields using layout processor plugin (codes shared below), custom fields are visible as expected, but have following two issues. I do highly appreciate if you could ...
user avatar
0 votes
1 answer
38 views

Magento 2 : How to add sub query in custom collection

Adding Join: $subquery= new \Zend_Db_Expr('(SELECT @row_number := 0)'); $resourceCollection->join(array('payment'=>'sales_order_payment'),'main_table.entity_id=parent_id',['main_table.entity_id',...
user avatar
  • 1,582
1 vote
0 answers
29 views

Quantity Increments in advanced inventory is not working for configurable products Magento 2

I tried to increment the product quantity by 10 steps on each click on the + sign by configuring it in the quantity increment from the advanced inventory of the product dashboard. Unfortunately, it is ...
user avatar
0 votes
0 answers
37 views

Magento 2.4.x Category page product list custom sort order

I add an alias to collection for priority sort product with price first. $collection->getSelect() ->columns(["IF((price_index.price && price_index.price > 0),1,0) as ...
user avatar
0 votes
0 answers
21 views

Add name to input field in the checkout

Hi I use this module EaDesgin/Magento2-City-Dropdown and I observe that the "name" for the input is missing. the value name="" is blank. How I can add the name for the city or a ...
user avatar
  • 2,066
0 votes
1 answer
61 views

Magento 2 sort by Rating not working

I have added sort by rating on the category page and Magento version 2.4.2, However, it's not working. I'm doing this using a plugin di.xml code <type name="Magento\Catalog\Block\Product\...
user avatar
  • 7,366
0 votes
1 answer
17 views

Magento 2 all product and category request is redirect to http://baseurl/20us%20search%20us%20search%20us%20search?amnoroute

I have set up my live project in a docker environment using this. https://github.com/bhaveshpp/magento-docker-server/ All thing working perfect but when I search for the product it will redirect my ...
user avatar
0 votes
0 answers
99 views

Ajax Page Reload Not working

am trying to reload the page when on ajax success, but its not working below is my code. <?php /** * @var \Pramod\Custom\Block\System\Config\Exportproduct $block */ ?> <script> ...
user avatar
  • 1,664
0 votes
1 answer
59 views

Magento 2: How to get selected shipping address from shipments page?

Is there any way we can get the Selected shipping address object from Magento 2 Shipments page? Was trying to search for it like an observer but getting solutions only when you are on checkout.
user avatar
  • 4,482
0 votes
0 answers
24 views

magento2 customer admin grid not loaded properly in Magento2.4.3p1

Magento customer admin grid not loaded properly in Magento2.4.3p1. First row only loaded. Error in console- Uncaught TypeError: Unable to process binding "text: function(){return $col.getLabel($...
user avatar
0 votes
0 answers
17 views

Magento 2 how can I retrive order_uid?

I am using Magento 2.4.2 version. for order return I found graphql here https://devdocs.magento.com/guides/v2.4/graphql/mutations/request-return.html I got 'order_item_uid' by using Customer Order ...
user avatar
0 votes
0 answers
42 views

Failed to override getProductCollection() from Magento\Catalog\Model\Layer.php

I tried to override the Magento\Catalog\Model\Layer.php to rewrite getProductCollection() method but it didn't work for me. I have tried multiple things and end up writing here as I had no clue what ...
user avatar
0 votes
0 answers
29 views

How to override an existing ui component (filterSearch)

I have the task to replace the product searching process. I manage to find out the search box was coming from vendor/magento/module-catalog-search/view/adminhtml/ui_component/product_listing.xml So I ...
user avatar
  • 772
0 votes
0 answers
28 views

Show minicart in both header and footer magento 2

I'm trying to show minicart in both header and footer. I have added a new phtml in footer layout and added below code. <?php echo $this->getLayout() ->createBlock('Magento\Checkout\...
user avatar
0 votes
1 answer
89 views

Product query is suddenly really slow, because wrong index is being selected in MySql

Issue suddenly started to occur on our live site, dev site has the same database, but just with older data and same query is running completely fine there. I've also tried dumping those three tables ...
user avatar
  • 1
0 votes
1 answer
35 views

Create Shipment By Order Increment Id

To create shipment by Rest API, I am using it and it is working fine. {base_url}/rest/V1/order/15/ship Parameter 15 is order_id. I want to create shipment by order increment id. Is there any way to do ...
user avatar
0 votes
1 answer
30 views

Create database entity field with digit(s)

I'm trying to add a price field into a custom entity I've created but the digit disapeared and it's rounded. How to keep 2 digits ? ->addColumn( '...
user avatar
  • 772
0 votes
1 answer
56 views

Category wrong url of subcategories key after save

Well i lost hope on this one, I hope somebody had similar issue I have a following category structure -xxx -a -b -f -g -h -c -d xxx is the root category The paths in the ...
user avatar
0 votes
1 answer
28 views

How do I get how many times a product has been sold from X date to Y date?

I would like to simply display how many times a product has been sold from X date to Y date. I'll manually enter the date as '2022-02-24' for example. I just need to echo that value on a .phtml page. ...
user avatar
  • 163
0 votes
0 answers
15 views

Frotnend : Multilevel categories with Drop Down Magento 2.4

I want to create Category List Drop Down in my custom page. Which includes all level categories. Clicking on each category should populate products of that category to page.
user avatar
  • 2,817
0 votes
1 answer
45 views

Magento2: Use one media folder for multiple instances of magento?

I want to ask a planning/architecture question, if any of you can offer a pice of advice or direct in the proper direction I’ll be grateful. We’re having around 40 stores and another 30 stores in pipe ...
user avatar
  • 247
0 votes
2 answers
178 views

How to disable automatic invoice generation in magento 2.4.0?

I am using custom Online Payment method (N-Genius Online) there Invoice is generating automatically. I want to stop Auto invoice generation in magento 2.4.0. Kindly help me on this. Kind regards,
user avatar
0 votes
2 answers
63 views

Why is this code slow

We have a custom module to show images from sw3 on the product page, so the main image and any gallery images. The code works but going from a list page to the PDP is very slow and when I disable this ...
user avatar
0 votes
0 answers
15 views

Keeping entered values in a UI form after reloading the UI form

I have an own UI form in the backend to enter some stuff in an own database table. The responsible Save class checks after submit the form values if they are OK and if not redirects to the UI form ...
user avatar
0 votes
0 answers
19 views

Different price for a product in same customer group

I want to set different price for a product for different customers belonging to the same customer group. As per my understanding, Magento builds price index for different customer group but I want ...
user avatar
0 votes
0 answers
24 views

magento 2.4 show custom data on admin order page information section

I'm on magento 2.4. On the admin order detail page, there is a table with order information ("order & account information" right nex to "account information" at the top of the ...
user avatar
  • 129
0 votes
0 answers
10 views

Yireo_GoogleTagManager2 GA4 configuration json?

I want to give a try to Yireo Tag Manager Have anyone knows any json to import in Tag Manager to work with GA4?
user avatar
  • 109
0 votes
0 answers
94 views

Magento 2 - How to reflect immediately product stock updates on frontend which happens when the visitor loads product details page?

I wanted to update my product qty and price details when a visitor visits a product details page. To do this I used observer event 'catalog_controller_product_init_after' in MyMagento\app\code\...
user avatar
0 votes
0 answers
35 views

magento 2.4 config.xml default value for obscure field

I've successfully created a custom section on stores > configuration via system.xml. This section has some api credentials to connect to an external service: one group is for sandbox credentials, ...
user avatar
  • 129
0 votes
3 answers
104 views

Add Custom Tab in Short description Magento 2(PDP)

I want to add a custom tab in a short description on PDP. Does anyone have any idea on how to maintain it? I want it something to look like this - Thanks, Rashi
user avatar
0 votes
0 answers
26 views

How to dynamically add the current year to a Magento email template?

I looked around but I couldn't find a straightforward answer that does not involve making changes to the pHTML files. I'm a newbie to Magento and would prefer the most straightforward method of adding ...
user avatar
0 votes
0 answers
9 views

Product custom attribute value 798B is not save as a integer in elastic search 7 magento2

How can i save product custom attribute value 798B as text in elastic search in magento2?
user avatar
0 votes
0 answers
59 views

Magento2.4.3 success/error notification not displaying throughout admin panel

I've upgraded version from 2.3.5 to 2.4.3 and I found that success/error notification messages are not showing up throughout the admin panel for ex if I flush the cache it will not give any success ...
user avatar
0 votes
0 answers
18 views

How to align header contents in Magento2?

I Am completely a newbie in magneto, here is my current header I created my own using default.xml and blocks in magento2 , I created this by extending luma theme : I want to change this header ...
user avatar
0 votes
0 answers
10 views

Magento 2 Google Auth Entering Authenticator code redirects back to Auth

I am having an issue with Google Authenticator in Magento 2. If I type in a wrong code, it prompts me with an error that the code is wrong, but if it's right, it redirects me back to the prompt to ...
user avatar
0 votes
0 answers
15 views

Magento Consuming more than 5GB of Ram on ProductRepository->get($sku)

I have a Problem with my Product Importer. For a bit of Background, we get Products by a RabbitMQ Queue and they get processed by a Model. Creating Products seems to be no Problem, but if I want to ...
user avatar
0 votes
0 answers
22 views

Custom attribute in cart for configurable products

I am trying to show custom attributes in the checkout/cart page. I have created a catalog_attributes.xml and put it in a custom module <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
user avatar
0 votes
2 answers
42 views

How to delete all custom product attributes

How can delete all custom product attributes from database and keep only system attributes in Magento 2.4
user avatar
0 votes
1 answer
28 views

isSaleable product save

Use Case From a product with quantity 0 and Out of stock status. I have an event <event name="catalog_product_save_after"> <observer name="stock_alert" instance="...
user avatar
  • 772
1 vote
0 answers
40 views

How to filter product using tier price in Magent 2.4.x

I am using Magento v2.4.3, Elasticsearch 7.13.1 with Graphql. I want to apply a price filter on tier price value. As price coming as per customer group and default filter getting applied on price ...
user avatar
0 votes
2 answers
43 views

How to override media.phtml file magento 2

I want to resize the image on PLP but doing so is adding white space. For the same I got one solution to override the media.phtml file & then set keepFrame to false. I am not able to locate the ...
user avatar
0 votes
0 answers
37 views

how to change products name(title),description, if we select any options like color,size in magento 2

how to change products name(title), description, if we select any options like color, size in Magento 2?
user avatar
  • 105
0 votes
3 answers
58 views

How to hide top Navigation link My Account when signed out but still show up when signed in?

I have been looking around on others solutions but I can't seem to find any fix with my issue. I want to hide My Account link when your signed out. But I want to show it when your signed in. I have ...
user avatar
  • 3
0 votes
0 answers
53 views

Use Select2 with Magento2.4 Component create by meta

I have created a custom product attribute of select type has 2000+ values and tried to use UI-select but it slows down my product page so I am trying to use select2 instead of UI select. Due to some ...
user avatar
  • 749
0 votes
1 answer
55 views

How do I code grouped product's children product to open fotorama gallary page when clicking on children product picture?

How do I code grouped product's children product to open fotorama gallary page when clicking on children product picture? Grouped Products Page Fotorama Gallary Page Magento_GroupedProduct\templates\...
user avatar
  • 3
0 votes
0 answers
28 views

Push changes from Staging to Live

I have a live website of Magento 2.3.5 p1 and created a staging of my live website and have updated it to 2.4.3 p1. I would like to know how can I push the update changes from my staging website to ...
user avatar
0 votes
1 answer
24 views

where can I find refunds in cash and refunds in store credit in the database?

I'm looking to compare refunds that have been paid in cash vs by store credit in the database, but I cannot find any info myself.
user avatar

1
3 4
5
6 7
25