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
0answers
8 views

Magento 2.3.4 Tax Calculation Depends on order of products ? Is it error?

I noticed the weird behavior of tax calculation in Magento 2.3.4. My Tax Calculation Method Based On is set to Total. My tax rate is 23%. I make 2 same orders(same products) but with a different ...
0
votes
0answers
14 views

How to drag-drop custom admin grid listing row in magento 2

How to drag-drop custom admin grid listing row in Magento 2? But I don't know how to implement them, can anyone show me a working example or nudge me in the right direction?
0
votes
1answer
11 views

Adding an XML array in the user session

I'm getting some data from an API. I want to save those data in my user session so that the API isn't called each time the page is reached. First time: load API, save in session After, load session ...
0
votes
0answers
14 views

Display same orders in orders history when you change the language

Good morning people, I am using the Venia concept and I found a problem, if you go to the order history with the default language that is English, Its gonna show you some orders. If you change ...
0
votes
2answers
16 views

adding new column in admin/sales/order/ view page

I tried this code but it is giving a column at the end of the table, I want this column at the starting of the table (product image) file : app\code\Product\image\view\adminhtml\layout\...
0
votes
0answers
12 views

Magento 2: Apply shipping rate to quote

I want to apply the matrix rate shipping method which has multiple rates based on quantity in the cart. I tried the following code but it is not working $shippingAddress->setCollectShippingRates(...
0
votes
2answers
31 views

Issue: Magento import limited to 100 records

It's been two weeks since I'm facing Registry key "movement_data" already exists error while importing a CSV file greater than 100 records. My Entity type is Products and, import behavior is ...
0
votes
0answers
6 views

Extent core js file in M2

JS File: Magento_Checkkout/js/model/resource-url-manager /** * @param {Object} quote * @return {*} */ getUrlForCartTotals: function (quote) { ...
0
votes
0answers
8 views

how to call layout handle="sales_email_order_items" in phtml?

The layout handle used in Email template is : {{layout handle="sales_email_order_items" order=$order area="frontend"}} But we want to add it in phtml file, so I put it like : echo ...
0
votes
1answer
26 views

Add Custom Button with Functionality to Order Detail - Magento 2.4

I am trying to add a custom button to the admin order detail page. With the code below the button shows up correctly. However, when clicked the page loads to a 404 page. I can't seem to find a route ...
0
votes
0answers
12 views

Removing Sample Data giving some error

I am trying to remove the sample data I tried this command php bin/magento sampledata:remove It is giving some error and I am clue less what went wrong or where I should debug. Please help
0
votes
0answers
25 views

Magento 2 Translating a Single Phrase Multiple Ways Depending on Module/Context

I have a situation where I need to translate a phrase differently depending on the location it is being used. For example, the word "Email" that shows up in both the Magento_Catalog module ...
0
votes
2answers
40 views

Offline payment empty observer

Im trying to do an offline payment where my customer wants to "payonbill". All works fine and i added this snippet: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
0
votes
0answers
12 views

Shipping method rates list order from owebia

here is my issue This is the Magento template that prints the shipping methods. All my shipping methods are printed properly, but not sorted in the order that I want. Looks like they are sorted by ...
0
votes
2answers
19 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
1answer
18 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
8 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
2answers
18 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
1answer
19 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
7 views

How to make column sorting false using UI component

make column sorting false using UI component in magento2
0
votes
0answers
6 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
8 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
11 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
8 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
64 views
+50

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
20 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
1answer
12 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
18 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
29 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
7 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
0answers
19 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
2answers
25 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
24 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
25 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
9 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
5 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
17 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
26 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
36 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
18 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
14 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
26 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
43 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
23 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
39 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....