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

Can we Add .pug files to magento 2.4 instead of blocks?

Can we Add .pug files to magento 2.4 instead of blocks ? I've tried and it didn't work.
0
votes
0answers
2 views

Magento 2 Unable to process binding "afterRender: function(){return renderReCaptcha() } Checkout Page

I get an error on the http://example.com/checkout/#shipping page. Please Help me.
0
votes
0answers
4 views

Magento2 How can we add bundle option price in product options in Order REST API

I need to add the bundle option price to the list of bundle options data. I need to add this in the Orders REST API After options_qty in the below screenshot
0
votes
1answer
7 views

Configurable Product - Simple Product Stock Level

I have a selection of configurable products, mainly all color-related. I want to be able to add custom code in the cart showing the stock levels on each child. The example below has 2 parts added to ...
0
votes
0answers
12 views

Exclude Product from cart rules if product have catalog rule discount

I have overridden the below function for business logic(Want to exclude a product from cart rule which has catalog rule applied on the product) and it's working fine on the cart page vendor/magento/...
0
votes
1answer
6 views

How to make column sorting false using UI component

make column sorting false using UI component in magento2
0
votes
0answers
4 views

How to get price swatch attribute configuration product magento2?

I want to show the amount configured in the product added in the product attribute swatch . Thanks for any answers. Best regards
0
votes
0answers
6 views

Running composer require --update-with-dependecies second time updates some additional modules

I have an installer module that actually installs its child modules when we hit the composer require command. When I try to update the module to its latest using "composer require --update-with-...
0
votes
0answers
9 views

Add New Sales Rule Action Logic

I need to add logic to a new action that I have added to the dropdown of a sales rule. Essentially I need to change the Buy X get Y Free rule so that it works differently. So I have added a new action ...
0
votes
0answers
6 views

How to hide uI component grid on frontend if there is no data

How to hide uI component grid on frontend if there is no data using block Thanks in advance
0
votes
2answers
32 views

Failed to load the component. : M2

phtml file: <?php $mycollection = $block->getMyCollection(); ?> <?php if ($mycollection) : ?> <div id="my-component" data-bind="scope:'myComponent'"> ...
0
votes
2answers
17 views

Blank Admin page after install with no errors messages or redirect

I am attempting to install a Magento 2.4.1 solution that it's already in production. I've previously installed other Magento solutions that were similar and had no issues. In this case, the install ...
0
votes
0answers
10 views

Restrict the review status change functionality using plugin if review is already approved

how can we stop the execution using plugin based on the condition. I am using aroundExecute plugin method. <?php namespace Custom\Reviews\Plugin\Controller\Adminhtml\Product; use Magento\Framework\...
1
vote
0answers
15 views

How to restriction the review status update when review is already approved

I want to add conditions for review. If the review is already approved then restrict the functionality to stop the change the status of the review. <?php namespace Custom\Reviews\Plugin\Controller\...
1
vote
0answers
27 views

Magento 2 : Update product position in category using mysql (magento 2)

I am working on module to Update product position in category using mysql (magento 2). As i will directly using 1000+ sku at a time. I have to implement using mysql. is their any way it can be done in ...
0
votes
0answers
4 views

Magento 2 Page Builder Image Layout Line Hight Set Zero

I've just upgrade Magento 2.4.3 with Page Builder powerful tool kit, my question is how do we plus multiple images without a blank space between each image? From <html/code> I can plus to do ...
0
votes
1answer
13 views

my new multiple store(2nd store) does not display the them and page content

I made the 2nd store and 2 store views in it, but when I connect the page with a new store and try to open the page, there are no themes or content shown on the page! something wrong or miss! and I ...
0
votes
0answers
14 views

After Successful Installation Magento2 -AdminURL Not Found on the server

Kindly suggest me what could be the reason, that AdminURL is not loading on the server. magento2 installation was successful. however I am unable to login to AdminURL (The requested URL was not found ...
0
votes
1answer
16 views

add product url to the product name in sales/order/view page

File: app/code/Anshu/OrderItemLink/view/adminhtml/layout/sales_order_view.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:...
0
votes
0answers
14 views

Magento 2 huge TTFB on checkout update scripts

I am working on a new Magento 2 website. Everything is fine on our test server, but now that we want to move it to the main server, the checkout update scripts are too slow. It takes around 10 seconds ...
0
votes
1answer
23 views

Magento 2 : Can We Add Data From Custom Module to Core Database?

If I want to insert form data in to the "customer_entity" table How can we achieve that? I have mentioned all fields in the form as "create an account", and rather than creating a ...
0
votes
2answers
20 views

Do a action before insert products by endpoint magento 2

I wanna make a verification before inserting products on my Magento 2.3 in the default endpoint. Here is a sample: I post a product on rest/default/V1/products endpoint, but I want to check if this ...
0
votes
0answers
8 views

Disabling X-Magento-Vary for customer groups Varnish cache

We have no differing content on our web pages for logged in and not logged in customers. With the exception of a small drop down menu showing log out/my account. Would disabling X-Magento-Vary cookie ...
0
votes
0answers
5 views

How to translate "Insert Link" on tinymce4 magento 2 frontend

i want to translate something on popup insert link using tinymce4 I tried this way and created a textarea, WYSIWYG Editor working fine, but i don't know how to translate in "Insert Link" ...
0
votes
0answers
14 views

Magento 2 How to set url key for default store view

Magento 2.3.5 version How to set URL key for default store view? Example - All store view URL-key - xyz-test which is correct Default Store View URL-key - abc-test it is not correct I want to set the ...
0
votes
1answer
4 views

Where to see what products were ordered from a quote in database when Paypal Express order not shown up in backend

A client has received a payment email from Paypal last night which was a legitimate order via his Magento 2 website with Paypal Express but the order does not appear in the backend. Checking logs ...
0
votes
0answers
13 views

Magento 2 Redis L2 cache preload suffix :hash or :version

Reading the Magento 2 documentation is a little bit confusing. Should I use the suffix :hash or :version? If you visit https://devdocs.magento.com/guides/v2.4/config-guide/redis/redis-pg-cache.html#...
0
votes
1answer
24 views

i am getting this error when try this command [php bin/magento setup:upgrade]

SQLSTATE[42S02]: Base table or view not found: 1932 Table 'magento2.catalog_product_index_eav_replica' doesn't exist in engine, query was: SHOW INDEXES FROM catalog product index eav replica WHERE Non ...
0
votes
0answers
18 views

open mini cart on add of a product in magento 2 pwa

I am new to pwa. How do I open a mini cart after a product is added to the basket successfully in Magento 2 PWA?
0
votes
3answers
33 views

Magento 2 : Create mysql query

Is there any way we can create following query SELECT `e`.sku,`ccp`.category_id,`ccp`.product_id,`ccp`.position FROM `catalog_product_entity` AS `e` INNER JOIN `catalog_category_product` AS `ccp` ON ...
0
votes
0answers
17 views

How To Add Product Tab For Specific Product Type In Your Custom Module Magento 2.4?

I create my custom product type name "rental" that create successfully now I need to add a custom tab in that specific product type I create catalog_product_rental.xml but the /run/user/1005/...
0
votes
1answer
13 views

what is the use of qty_invoiced column in sales_order_item table?

I want to know that what is the use qty_invoiced column in the sales_order_item table in Magento 2.
-1
votes
0answers
25 views

i want a hyperlink as a productname in admin/sales/order/view page and when i click on the hyperlink it navigate to product details in the frontend

when I click on the product name in the admin/sales/order/view page it navigates to the order details page on the frontend this is our client requirement.
0
votes
0answers
40 views

How to bind a custom configuration value in a html template

I'm working on a module that adds a note to explain the shipping method that the customer selects in checkout. For example, when a customer selects 'Warehouse Pickup', a note will display explaining ...
0
votes
1answer
19 views

Please enter a valid credit card type number

we have Magento 2.25 and recently it stopped accepting credit cards. We were originally using authorize.net and when a user enters a credit card number it comes back with an error that says "...
0
votes
1answer
21 views

how to join sales_order_address table with sales collection factory

If I already have the function (last 30 minutes order cron job)below to get sales_order_grid table data, how can I join table to get sales_order_address table and get country_id, city and postal_code? ...
0
votes
0answers
8 views

Newly added column in sales order table not showing in grid

I had added a new column in sales_order table using UpgradeSchema. The column was successfully added and also I was able to save value in it. Now what I want is to show this column in Sales Order Grid....
0
votes
1answer
21 views

How to display admin grid columns on condition basis

Here, I am using layout xml file to render block grid columns, but facing issue to render specific column on condition basis, here I want to show/hide column on basis of user role but not able to do ...
0
votes
0answers
15 views

Autoselect parent categories when selecting a category for a product in Magento 2 Admin

In the Magento backend admin, we can select a category for a specific product by going into the product page and "Categories" section. Is there a way to automatically select parent ...
0
votes
0answers
14 views

Executing direct query in Magento 2 issue

this is my code: $connection = $this->resourceConnection->getConnection(); $connection->query("SET @@group_concat_max_len = 1000000"); I have a query using a group concat. The ...
0
votes
2answers
18 views

Magento 2.3 New Products are Not Display in their respective category pages

Our new products are no longer showing on their respective category pages on the frontend. I have checked lots of items on the admin: General->Status = Enabled General->Visibility = Catalog,...
0
votes
0answers
10 views

magento bulk table mq Rule processing: 99

In my magento_bulk table have many job not be process,other action is work normal but only Rule processing is nerver be process.
0
votes
1answer
14 views

How to show loader icon in custom div magento 2

how to show non stop loader icon in custom div when page is starting work <div id="loader-example"> <h3>Block</h3> Lorem ipsum dolor sit amet, consectetur ...
0
votes
2answers
21 views

Magento 2 : escapeHtml & escapeHtmlAttr

what is the difference between the escapeHtml & escapeHtmlAttr I can see there in magento 2.4 escapeHtml is replaced to escapeHtmlAttr in many phtml files. I can seee no difference in output. <...
0
votes
0answers
20 views

Selecting Payment method on checkout page (shipping step) is slow

I have an issue where selecting a payment method on the checkout page is slow. When the payment method radio button is clicked select-payment-method.js is executed. I have measured the time for ...
0
votes
0answers
14 views

How to override Magento 2 graphql resolver with custom plugin

Im trying to override the resolver by using a plugin in Magento 2 to change text. vendor/magento/module-quote/Model/CouponManagement.php - I need to change this class ApplyCouponToCart implements ...
0
votes
1answer
17 views

Magento 2 How can i make the default menu into mega menu by customising topmenu.php

As a new Magento developer. Every day I face new problems the problem I faced today is creating my own mega menu and I find it very difficult. As I can use the extension but I don't like the idea of ...
0
votes
0answers
9 views

Magento 2 update inventory programmatically using cron

I want to update the product inventory. Get inventory from another platform using cron once got inventory need to update in Magento but what is the best way to update some time I will get more than ...
0
votes
0answers
9 views

How to put Cart Items List on the Right Sidebar?

Friends, I am using Magento 2. How to put Cart Items List on the Right sidebar of all page (except Homepage)?
0
votes
0answers
11 views

after moving minicart to another area the qty field unfocuses

I am using <move element="minicart" destination="catalog.topnav" after="logo"/> to move the minicart but for some odd reason when I select the qty field it ...

1
2 3 4 5
890