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

Configure two different nginx port to setup two different magento version website

I want two setup two different version of magento 2 on my local nginx machine, v2.4.2 and v2.3.7 mapped with two different domains. One version(2.4.2) is working fine on my nginx server at port 80 ...
0
votes
0answers
7 views

Magento 2 Set custom order increment id

I'm trying to change the increment id number in the request, but I'm not succeeding, I have an API that generates a single code, and I already have an observer that retrieves this value for me. now I ...
0
votes
0answers
13 views

Tax amount calculation function

Where can I find the tax amount calculation function? I find this <td class="admin__total-amount"> <?= /* @noEscape */ $block->formatPrice($block->getTotal()->getValue()...
0
votes
0answers
13 views

How to get purchased order id for a gift card?

I am using Magento 2.4.3 enterprise edition. I have purchased a gift card and used it in a few orders. Now I need to retrieve the gift card purchased order_id or increment_id using the gift card code ...
0
votes
1answer
17 views

Item (Magento\Catalog\Model\Product\Option\Value\Interceptor) with the same ID already exists Error on Admin Product Grid Load After Magneto upgrade

After upgrade from 2.3.5 to 2.4.3 when I load the admin product grid on some products the admin grid spinner keeps spinning when I inspect and check-in networks the following ajax call is failed <?...
1
vote
1answer
27 views

How to display custom text from attribute after product title on product page

How to display custom text from attribute after product title on product page Currently, I have created a custom .phtml file and displayed text before the product title: catalog_product_view.xml <...
0
votes
1answer
21 views

foreign key db_schema.xml automatic renamed to FK_ magento 2

I have this db_schema.xml <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <schema xmlns:xsi=&...
0
votes
1answer
28 views

How to speed up Magento 2 development process?

I find the development of Magento 2 technical solutions (plugins, themes, etc.) very slow. If I do some JS changes, I need to redeploy the static content each time, if I do some changes in the PHP ...
0
votes
0answers
16 views

console error:Uncaught TypeError: require.config is not a function in magento2

Uncaught TypeError: require.config is not a function at requirejs-config.js:18 at requirejs-config.js:19 at requirejs-config.js:757 (anonymous) @ requirejs-config.js:18 (anonymous) @ ...
0
votes
1answer
28 views

Magento 2: How to check the localStorage.getItem('mage-cache-storage') value is empty?

How to check if the localStorage.getItem('mage-cache-storage') is empty in Magento 2? It is returning {}. Please guide. Thanks!
0
votes
1answer
22 views

Product is not showing when I enter SKU in the URL bar (www.mysite.com/sku)

I have enabled the Amasty_ElasticSearch module, when I put SKU in the site URL, It shows an error 404 message. Like this : (www.mysite.com/sku). But I have another Site where It brings me the product ...
0
votes
0answers
17 views

How to get category name and count product when selecting manufacturer select attribute in Magento 2?

I have created a new page where I want to get the number of selected products from the same manufacturer in all categories into a list. Does anyone have any idea, how to get this data? Thanks. https://...
0
votes
0answers
19 views

Magento2 site creating multiple versions of one page

I'm running into an issue where a page is being duplicated across multiple pages. The best example I can give is: ORIGINAL URL store.com/category/product/ COPIED URLS store.com/cms/page/view/page_id/...
0
votes
0answers
10 views

Magento 2.4, How to autofill value of Page Builder/textarea instead of Page Builder(form details) initialized as blank

In admin Catalog->Category->content I would like this Form detail:Page Builder to have Layout->Row and Element->HTML Code="Default Value" at setup. <?php namespace Justins\...
0
votes
0answers
19 views

Customer sign in not working

I'm using Magento 2.3.5 and I am not able to create a new customer account on the frontend. I've been stuck on this issue for days and I'm not sure what is causing this. I'm not receiving any errors. ...
0
votes
0answers
12 views

Magento 2 Products appears only in subcategory, not in parent (with "Anchor" yes)

We have multiple stores in Magento 2.3.7. Some stores have products in some subcategories, but those products only appear in their subcategories. Not in the parent category. Although the parent ...
0
votes
3answers
23 views

setup:upgrade try to remove my theme!

Like in the title, every time when I use setup: upgrade i asked to remove themes: Processing configurations data from configuration file... The following themes will be registered: adminhtml/Magento/...
0
votes
0answers
15 views

Sign In in Magento Checkout doesn't translate

Have tried all combination: "Sign In", "Inloggen" " Sign In ", "Inloggen" "sign in","Inloggen" " sign in ", "Inloggen" ...
0
votes
1answer
19 views

Magento 2 Custom fee not updating in checkout page(Quote save)

How can I update the quote when I open the checkout page? Like this $quote->save();
0
votes
1answer
15 views

Magento 2 - Direct download external file

In Magento 2, I try to force download a pdf file from an external link (I don't have the source file). All I succeed is opening the file in the new browser tab but the direct download doesn't work. Do ...
0
votes
0answers
15 views

How to create Ui Component to manage related custom data in product edit

I am trying to create a section to manage custom data (like blog) associated with Product in Product Edit in Admin . It is similar to this function of the Magefan Blog extension: Display Post on ...
0
votes
0answers
13 views

Magento2 PWA Installation

I am getting this error when I am trying to install PWA /bin/sh: 1: /tmp/xfs-a5ee6a93/dlx-19268/.yarn/virtual/@magento-pwa-buildpack-virtual-b88d11cd56/4/home/ubuntu/.yarn/berry/cache/@magento-pwa-...
0
votes
1answer
20 views

Shipping charges not showing on Totals admin order

I am trying to create an order from the backend side. after adding all details and selecting any shipping method the price adds to the total but is not visible on the order. Any way to override the ...
0
votes
0answers
12 views

How to update discontinued items from vendor in magento2

we update stock from vendor, when a product is out of stock or discontinued, they are not getting update. the feed to qty=0 else just remove them from the feed and I cannot know which items they are ...
0
votes
1answer
9 views

missing AdapterFactory Error during sub menu open

I have facing this issue during sub menu navigation part open ,rest all website work fine. Current version :.4.2 ,apache 7.4 . you can check online, the link is https://primalsupplements.co.nz/...
0
votes
0answers
18 views

404 in admin page after domain change (NGINX)

So, I've changed the domain of my Magento website recently, but, after that, I can't access the admin page anymore. If I simply go to : mynewdomain.com/my_admin_path I get a 404 error However, I ...
0
votes
1answer
15 views

Does Magento execute a query to get the review count of each single product on the category listing page?

Let's say that your category page shows 36 products at a time and shows the rating/review count underneath each product title. Does Magento perform 36 queries to get each of the product's review ...
0
votes
0answers
13 views

Order tax rounding issue

In /vendor/magento/module-sales/view/adminhtml/templates/order/create/totals/tax.phtml <td class="admin__total-amount"> <?= /* @noEscape */ $block->formatPrice($block->...
0
votes
1answer
20 views

Issue with get product attribute value in other place than list.phtml

Currently via below code I can get in list.phtml From this I get brand name dropdown value in list.phtml correct: <div class="brand-name"> <?php $optionText = ''; ...
0
votes
0answers
16 views

How to connect magento2 to Elasticsearch in different server

I have done setup magento 2.4.2 in cloud/shared hosting, and then i have Elasticsearch in VPS with config .yml like this : transport.host: localhost transport.tcp.port: 9300 http.port: 9200 network....
0
votes
1answer
17 views

Programmatically link configurable product with simple product threw options

I have a configurable product created and also simple products. I want to add the option on the forme and poids attribute to link them. These options are properly configured, they appear in the admin ...
0
votes
0answers
18 views

Magento 2: Show Checkout Agreement (Terms & Conditions) Based on Condition?

I'm using Magento 2.4 I added new Terms & Condition, but I want to display it based on some conditions, Is there's any way you know to do it please let me know. Thanks.
0
votes
1answer
21 views

Magento2.4 translation language

app/code/Mage/New I have created a module, a view code file, and a translation language package. But my page doesn't work. code: view file app/code/Mage/New/view/frontent/templates/a.phtml: <a ...
0
votes
0answers
12 views

Call to a member function dispatch() on null in vendor/magento/framework/Model/AbstractModel.php

I want to insert some data for the first time the module is being installed. This is my folder structure Navien/Custom -- Setup/InstallData.php -- Model/ -- StateData.php -- StateMaster.php --...
0
votes
0answers
16 views

Display tax percentage on all locations

As the title says; How can I display the tax/vat percentage on all locations?? So on the cart, checkout, invoices, etc. My config is fine, the calculation is correct but it only shows a generic 'Tax' ...
0
votes
0answers
14 views

We're sorry, an error has occurred while generating this content,shows on home page in magento 2

We're sorry, an error has occurred while generating this content. This Error in home page get occures in magento 2.
0
votes
2answers
14 views

Magento2 : update query though upgradeData script

I want to update data to particular value in database. How to write script for the below query update tablename set name="Test" where id="4"
0
votes
1answer
18 views

How to change product attribute's scope in Magento 2

My issue is simple : We have a bunch of product attributes with wrong scopes They are defined as Global and we want their scope should be Website. How to handle this programmatically? For example ...
0
votes
0answers
14 views

Singapore Dollar Display Currency not Showing

I have set multiple currencies as display currency, have set their rates, and didn't change the currency symbol. All display currencies are working perfectly except Singapore Dollar. I have checked on ...
2
votes
0answers
51 views

Implementation of Composition Instead of Inhertance in Controllers Magneto 2

I am trying to implement Magneto 2 Coding Standard so I found an Article Here -> https://community.magento.com/t5/Magento-DevBlog/Decomposition-of-Magento-Controllers/ba-p/430883 I have changed my ...
-2
votes
1answer
24 views

Share post on Youtube

I'm trying to create a share button on a youtube post, but I haven't found a solution yet. The problem I'm having is that the youtube share link is the same as that of fb: http://www.facebook.com/...
0
votes
0answers
17 views

Moving logo in magento 2 to center

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <...
0
votes
1answer
20 views

Problem with multiple themes deploy in Magento 2

When I execute CLI command: php bin/magento setup:static-content:deploy. It always has only 4 steps themes, but now I have multiple duplicate themes while running the command. frontend/Magento/blank/...
0
votes
1answer
13 views

Magento 2.4 Invoice - Templates

Does anyone know if there is anywhere that has a selection of Free PDF Invoice templates that is compatible with Magento 2.4.3? I need to show each custom attribute on a new line, I would also like ...
0
votes
3answers
30 views

How to sort modules in config.php alphabetically?

Is it possible to sort the output of the modules node in config.php alphabetically? This way git versioning won't get messed up since Magento sometimes changes the sorting. <?php return [ '...
0
votes
0answers
14 views

Split payments between two credit cards

We have a requirement where we need to split payments between two different credit cards i.e. if a user can pay with multiple credit cards(2 in our case) for a single order. So if a customer has an ...
0
votes
2answers
50 views
+50

How to add custom attribute in magento 2 customer export dynamically while click on export button

When I click on export button, I want to add custom attribute in customer data export file. I am trying to override vendor/magento/module-ui/model/export/ConvertToCsv.php file But when i click on ...
0
votes
1answer
21 views

Magento 2 tree view in Stores->Configuration

I'm starting to try to program in Magento. I have a problem creating a category tree in the configuration of my module. I want to be able to choose a category. More than one. Just like in the photo ...
0
votes
0answers
17 views

How to Complete the Customer Order in Magento 2 REST API with Razorpay Payment Method?

How to save the customer order in Magento 2 using Razorpay payment option, Please guide me, how to complete this order with the Razorpay payment method for the android application. Description: I have ...
0
votes
1answer
28 views

Magento2 : How to override /vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php

Does anyone know how to override this file?

1
2 3 4 5
893