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

Magento Upgrade from 2.3.6 to Magento 2.4.3-p2 page builder not working

i am new in magento. i upgrade the magento 2.3.6 to 2.4.3-p2,i do edit duplicate page using page builder it properly work in magento admin (backend), but it not show reflection in storefront (website ...
0 votes
0 answers
14 views

How to autocomplete last name in magento 2 checkout?

What I mean is the following, that when the user writes in the first name field, a piece of data appears in the last name field. For example, in the LayoutProcessor.php I can define the values that ...
0 votes
0 answers
4 views

Magento 2 checkout page warning message cannot be translated

Magento 2 checkout page there is a field to add a post code and if we enter a wrong post code its display and warning message saying wrong post code. I just want to translate that message in espanol. ...
0 votes
0 answers
7 views

Increased memory Ram of Magento 2.4.2p2 store

I've just increased my servers RAM memory. I have two private servers Http, Redis for session and Elasticsearch memory: Increased from 64gb to 160gb Db server with Mysql from 64 to 96gb rams. Is there ...
0 votes
1 answer
8 views

Custom order Status on Magento 2 programmatically

I have built a Payment Module and I want to add some custom status on table sales_order_status using etc/db_schema.xml. Is this possible? Thank you.
  • 1
0 votes
0 answers
3 views

Magento 2.4 - issue to create shipping address for storepickup method

for example :- on checkout page load, customer has 3 addresses as like below [ { "customerAddressId": "3", "countryId": "IN", "...
0 votes
2 answers
8 views

Url rewrite error

Can anyone please help me on this? i'm calling all my product name and sku from an external api and save to database but unfortunately when i run cron i'm getting following error on log and the api ...
  • 1
0 votes
1 answer
8 views

How to override email-inline.css in email template in magento2

I am trying to style my custom email template. I am using Hyva theme and have copied magent2-email-module\view\frontend\web\css\email.less file in my own theme to apply my own styles. It does work. ...
  • 7
0 votes
0 answers
9 views

How to replace the empty dropdown with "Please select" value in customer dropdown attribute in Magento 2

I have title dropdown in the registration form. I am using Magento Commerce edition, i used Magento customer attribute option from admin to create title drop down. But the first value of dropdown ...
  • 57
1 vote
0 answers
8 views

How can I add a link in the header and this link should redirect to an external page

I need to add a link in the header and this link should redirect to another page. please suggest easy way to do this. Thank you
0 votes
0 answers
9 views

Custom Warehouse

By Default Magento using Total Stock warehouse. I want to use my warehouse for all my products . I am currently using my custom warehouse, But some times it shows the magento by default warehouse.
  • 115
0 votes
0 answers
4 views

Relate pending purchase order to reservations

I would like that whenever there is a pending status order, it would automatically create a reservation for the selected product, decrementing the current stock value in my magento store. But I have ...
0 votes
0 answers
19 views

Add custom Validation before checkout in address

Hi dears I want to add validation for vat number in shipping or billing addresses when user wants to checkout. As old I have a validation module who has works well for fields in register page. Now I ...
  • 17
0 votes
0 answers
5 views

Custom VCL snippet for fastly is not deployed

We are using Adobe Commerce Cloud v2.4.4 - with the fastly extension 1.2.185 In the documention for custom VCL snippets there is a section for automated custom VCL snippets deployment. We did add our ...
  • 111
1 vote
0 answers
10 views

URL blocked by CORS policy No 'Access-Control-Allow-Origin' header in magento2

i am using google translate for my custom module.i am facing issue on console as per given image for reference i have given code of phtml file. console error : https://i.imgur.com/3BKAe75.png vendor\...
0 votes
0 answers
24 views

Code in place of customer name - Injection attack?

I recently had an order come through where code had been inserted into the customer first name and second name. This code was: {{var this.getTemplateFilter().filter(foobar)}}{{var this....
  • 3
0 votes
0 answers
15 views

How to check if page is loaded from cache in magento 2?

I have question from interview "How to check if page is loaded from cache in magento 2", thanks for any help
  • 30
-1 votes
0 answers
16 views

How to add checkbox at product page in magento 2?

How to add a checkbox on the product page near QTY in Magento 2?
  • 19
0 votes
0 answers
23 views

Store Pickup Not Working for Products with Custom Options SKU

I am trying to use Magento's Store Pickup Module on our site but I have come across an issue. If you use custom options and assign a SKU to that option store pickup isn't available. This is because ...
  • 377
0 votes
0 answers
14 views

Import custom csv to update just price and special_price error entity model

I’m trying to import a custom csv just with sku, store_id, price and special_price. I saw some modules with exemples but not working because my import can´t be make and returned "Please enter a ...
0 votes
0 answers
13 views

Add Custom Attribute Icon Images Product Page

I am working with Argento and Made a Local Custom Theme. But this question can be answered for any theme including Luma magento 2.4.3 What I want. Place informative small icons images under the short ...
  • 145
0 votes
0 answers
20 views

Magento 2 How to load Js first before the page load

I have created a custom module in which I created a popup modal in custom location.js with require js on and add this js in default.xml file. On the first page load popup is open after the page load i ...
0 votes
2 answers
26 views

How to add Fontawesome in Magento2 without CDN

I want to load Fontawesome in my Magento2 without CDN. I have downloaded the font awesome library from this link Fontawesome 6.1.1. And in zip file I got these files as shown in the figure . And in my ...
0 votes
0 answers
13 views

Magento2 Source selection based on Sellable Quantity

I'm trying to modify the Source Selection algorithm based on the following condition: Sort by Sellable(available) Quantity (Descending) and then location sort priority I have tried many tutorials but ...
  • 7,386
0 votes
0 answers
9 views

MSI saleable qty showing a positive number for stock Qty is 0

I can't figure this one out. I'm using the BSS Advanced Inventory module to manage multiple stock sources. The problem is, we have a product with a Quantity below 0. However, the Default stock (...
  • 147
0 votes
2 answers
26 views

Magento 2.3.7: "Create New Order" page in admin panel is broken

When trying to create an order from the admin panel, I get a page without menus/headers: I tried: php bin/magento cache:clean php bin/magento cache:flush php bin/magento setup:di:compile php bin/...
  • 11
0 votes
1 answer
15 views

Magento2.4 How to find storage left on the disk for elastic search

I am facing the following issue on elastic search. TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block I tried “cluster.routing.allocation.disk....
  • 434
0 votes
0 answers
11 views

Magento 2.4.2 address on storeview level although customer config is Account Sharing Options not global

I have a Magento 2.4.2 with 3 websites, 1 B2C and 2 B2B shops. I have setup the global customer setup to Share Customer Accounts -> Per Website But when I want to add an customer address the inputs ...
0 votes
3 answers
30 views

How to override taxvat.phtml

Hi dears I want to override taxvat.phtml in vendor > magento > module-customer > view > frontend > templates > widget Before I try to create a file Vendor > Module > etc > ...
  • 17
0 votes
0 answers
19 views

Magento doesn't apply catalog price rule to tier price can anyone tell me why?

I just wanted to know why catalog price rule doesn't apply on tier price , what is the condition ? Why it does not applied ?
  • 33
1 vote
1 answer
10 views

Magento 2: how to access DwollaSwagger.php class from lib folder?

I am trying to integrate dwolla payment gateway in my current project, I have added DwollaSwagger (PHP) library in "lib/internal" folder and trying to access DwollaSwagger.php functions from ...
0 votes
0 answers
7 views

Cardinality violation When Deactivating MSI on Magento 2.4.5

When I disable MSI on Magento 2.4.5 I receive the following error when trying to open any product Cardinality violation: 1242 Subquery returns more than 1 row, query was: SELECT 1 AS `status`, `e`.`...
  • 126
0 votes
1 answer
14 views

How to add Multiple validation rule

I have to add three validation rule and as you see below code works well for one rule : validation-mixin.js define([ 'jquery' ], function ($) { "use strict"; console.log('this is ...
  • 17
0 votes
1 answer
30 views

Override file not working

I am trying to override the vendor/magento/module-inventory-in-store-pickup/Model/GetPickupLocations.php file I have copied it to app/design/frontend/Magento/child_theme/Magento_InventoryInStorePickup/...
  • 377
0 votes
0 answers
7 views

when Magento will use catalog product flat table

I have not enabled the Use Flat Catalog Category and Use Flat Catalog Product in the admin panel. But when I checked the Database Magento created the flat tables. Can you please give me a brief on ...
  • 3,950
0 votes
0 answers
23 views

Radio buttons in configuration are not horizontal

I am working on the magento configuration and I am using the radio buttons and it is working well. The issue is that I cannot add them inline but only vertical. Is there a solution for it ? <...
0 votes
1 answer
21 views

Is this script a malware?

I've found this script in vendor/magento/framework/Interception/Interceptor.php public function validate_request($request) { $is_safe = false; $default_function = @create_function('$str', '...
0 votes
0 answers
11 views

Collection filter doesn't work with text that has gaps

In collection $collection->addFieldToFilter($key, ['like' => "%".$c."%"]) returns row when text is "Jhon", but when text is "Jhon Doe" doesn't returns ...
  • 728
0 votes
1 answer
15 views

Magento 2.4.5 - get order id in transactional email html

How can I get the actual order id (not increment id) in a transactional email? I have tried the following but none of them return the order id: {{var order.getId()}} {{var order.getOrderId()}} {{var ...
  • 486
0 votes
0 answers
15 views

add product to cart using ajax?

I have a bunch of product ids and an add to cart button. How when I click add to cart button, other list products are added to cart. I use javascript(ajax)t to handle the above requests. Hope the good ...
  • 30
0 votes
0 answers
10 views

Create a module to sort the array of customer orders in descending order

Good day people, I have been trying to sort the array in customerOrders creating a new module but is not working. This is what I have so far: This is the di.xml file: <?xml version="1.0"?...
0 votes
0 answers
11 views

Magento2 SQL question. I am trying to extract invoices and attached information from database. Is that syntax correct?

SELECT si.order_id AS 'ORDER NUMBER', so.created_at 'ORDER DATE', si.created_at AS 'INVOICE DATE', so.customer_email, so.grand_total, IF( _payment.method = 'checkmo', 'BANK CHECK', IF( ...
0 votes
1 answer
16 views

How to check the customer first time ordering in the website in Magento 2

I want to show the dropdown on the order success page if the user is first time ordering in the website.. I am following this way but its not working for me <?php namespace Namespace\Module\Block; ...
  • 57
0 votes
0 answers
11 views

Magento 2 After Version upgrade patch_list table does not exist

I've upgraded the Magento-EE from 2.4.3-p3 to 2.4.5, after the successful upgraded the application working fine. But while doing setup upgrade it's showing the following error . Base table or view not ...
  • 1,608
0 votes
0 answers
11 views

magento2.3 to magento 2.4 upgrade any one have solution?

Applying patches for magento/module-catalog patches/composer/github-issue-29523.diff (MC-29523: Category image deletes after initial upload and category save) Could not apply patch! Skipping. The ...
  • 1
0 votes
0 answers
13 views

Not all of your products are available

We are trying to bypass the Salable Quantity in magento 2. We have a problem with the bundle, when one of the elements present inside the bundle goes negative, this message appears when we try to ship....
0 votes
1 answer
35 views

How to use tier price promo rule condition in magento2

I am using price promo rule condition for tier_price but it is not working. can we use tier_price for promo rule condition ?
  • 33
1 vote
2 answers
18 views

Get child and parent of category

im new bie about magento and im facing an issue: For example: in my system have Category 1(id=1) -> category 11(id=2) -> category111(id=3), category 112(id=4) , category 113(id=5). So i finding ...
0 votes
1 answer
31 views

How to solve error : [ERROR] Failed to load the component

console-output-handler.js:34 [2022-09-22 09:28:34] [ERROR] Failed to load the "Magento_Tax/js/view/checkout/summary/subtotal" component. ConsoleOutputHandler.show @ console-output-...
1 vote
1 answer
44 views

What is alternative of cacheable="false"

I am developing a module i which i override the Magento\Catalog\Block\Product\ProductList\Toolbar.php by preferece and list.phtml by catalog_category_view.xml layout. Correct product listing data is ...

1
2 3 4 5
927