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

Error loading js component - Checkout

I'm getting this error on my checkout page. Can anyone help? The file exists and is at /pub/static/frontend/mystore/healthcaretheme/pt_PT/Toogas_Easypay/js/view/payment/method-renderer I'm loading ...
0
votes
1answer
86 views

Why should I (not) put my extension into app/code?

a dumb question. From: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/build/module-file-structure.html Magento installs third-party components in the <Magento install directory>/...
0
votes
1answer
15 views

How to display custom notification or alert message on checkout pages?

Since the Covid mutation has arrived at our warehouse location, I'm looking for a way to use a text banner or something similar to inform people about possible unscheduled delays in shipping orders. ...
1
vote
1answer
25 views

How to change model data via plugin

How to make a plugin for a model and turn one of its fields into a different value. For example, in the documentation, they make an after plugin for the model and return a different value. public ...
0
votes
1answer
29 views

Custom getLogoUrl for E-Mail templates

I have the following problem: Inside of four different store views, we have the opportunity for the customer, to change between different assortments. This is basically just a filter in the Layered ...
0
votes
0answers
19 views

Invalid XML Magento 2 theme

Recently I purchased a Magento 2 theme and their support has been less than helpful. I'm still pretty new to Magento 2 and XML Files overall. Is there anything obvious that I'm missing? Exception #0 (...
0
votes
1answer
16 views

Change currency symbol position from left to right in RTL theme

I have tried to change currency position using below mentioned observer code its working on English website that list LTR but its not working on Arabic website that is RTL. app/code/Vendor/Moduele/etc/...
0
votes
1answer
30 views

apply the discount only on this product

I want to apply a discount only on this product but I created this rule it applies to all products in the shopping cart if the product is in the shopping cart. please help me to understand why it ...
0
votes
0answers
13 views

Get Order Items details in SenderBuilder Magento 2.3

I want to get product custom attribute value of order items in plugin which i am extending class - Magento\Sales\Model\Order\Email\SenderBuilder
1
vote
0answers
19 views

magento-coding-standard how to make magento 2 standard work?

i'am install this https://github.com/magento/magento-coding-standard, i installed it via composer and i see there is a package in vendor/magento/magento-coding-standard, and also i modified composer....
0
votes
0answers
16 views

How to we can set discount for specific Payment Card like Visa Or Master in Magento 2.4.0?

I want add discount on specific Card or bank account ( If customer have Visa Card or have account in ABC Bank ) Then 25% off on all products when he'll place order. How to we can do this ? There is ...
0
votes
0answers
14 views

The “loggedAsCustomer” section source isn't supported. - Magento 2.3

I have updated my Magento version from 2.2.5 to 2.3.3 so Now when I go to any page on the front side so I am getting this "The "loggedAsCustomer" section source isn't supported." ...
0
votes
0answers
14 views

Redirect url with key formula in Magento 2

I'm trying to do this in Magento 2: I have my url : https://www.example.com/page/ I'd like to add after /page a key value. Example : /page/key1, /page/key2 ... Then I get the key value with $this->...
0
votes
1answer
35 views

Varnish & Cloudflare on Magento 2 - issues

I'm using Varnish on my Magento 2.4.1. I've enabled Cloudlfare now, it works well but when I do some changes on the backend (like adding text on category pages, etc), it is not reflecting on the ...
0
votes
1answer
21 views

How to show ui dynmaic row saved values in edit form magento2

I am facing an issue with dynamic rows in ui form...created a form with dynamic rows and saved successfully but in edit form the saved values of dynamic rows not displaying...how can i solve this ...
0
votes
1answer
35 views

Magento2 not able to get customer data in observer

I am using Magento 2.4.1, made observer. Event name is checkout_submit_all_after. I want to update order data, customer data, customer address data. Updating Order data is succeeded, but Other data ...
2
votes
1answer
45 views

Magento2 - How to remove/disable Custom Free Shipping Method from front-end only?

I created a Custom Free Shipping method and want to disable only in front end. I try using getAreaCode() check here..but not working in Magento 2.4.0. Please help if you know.
1
vote
0answers
19 views

How to determine refund type while issuing credit memo ? (Magento 2)

i am implementing an functionality where i need to determine refund type while issuing credit memo so based on that i can send different email template to customers. I have checked in Magento\Sales\...
0
votes
0answers
28 views

magento 2 setIsDefaultBilling not working

I want to save customer address via external script and I want to make different default shipping address and default billing address. In this I can set default shipping address and not able to set ...
1
vote
2answers
20 views

Delete mass action for admin grid not working

Delete mass action for admin grid not working <?php namespace Vendor\First\Controller\Adminhtml\Post; use Magento\Backend\App\Action\Context; use Magento\Ui\Component\MassAction\Filter; use ...
0
votes
1answer
15 views

Urgent help - Place Order button is not working on click. Nothing happens and no errors logged for Magento 2.4.0

I am getting complaints from few users that when they go to Checkout and click on "Place Order" button nothing happens. I tried adding lots of debug and system logs but no errors or issues ...
-1
votes
0answers
19 views

Magento2 - How to contribute towards a Product?

I am looking for a way to be able to let a Customer "contribute" towards an item that is in a gift registry. For example, one person can contribute their choice of x amount towards a item ...
0
votes
0answers
17 views

Magento 2 How to get products details with qty calling products endpoint?

Magento 2 How to get products details with qty calling products endpoint? I need to get the qty from the products endpoint.
0
votes
0answers
16 views

product images are broken magento ver. 2.3.4

I have moved Magento website form demo to live server ! now looks like product page images are broken , in all pages some static image is coming , category listing pages images are working fine ! my ...
0
votes
0answers
13 views

Magento 2 event observer before order confirmation email trigger

I have an Observer that updates a custom column in table sales_order_item. I have used this event checkout_onepage_controller_success_action Observer: <?php namespace Siva\OrderNotes\Observer; use ...
0
votes
0answers
8 views

Block Arguments Override in a Child Theme

The website I support has multiple sites. We have created a custom with parent Luma called Company/base. All other site have a unique theme whose parent is Company/base. In the base theme I have ...
0
votes
0answers
6 views

URL rewrites not being used

I am using Magento 2.4.1, PHP 7.4, nginx and varnish and a stock import module that also creates URL rewrites. This part of it is all working fine and the url_rewrite table in the database has the ...
1
vote
1answer
9 views

Magento2: issue with quantity - inventory

Customers placed orders for product and I see salable quantity goes down. But quantity remains the same. What to do while these values were the same? https://prnt.sc/zglw51
0
votes
0answers
19 views

New products take 12 plus hours to appear in categories

We are currently using Magento 2.4.1 . When we add new products it takes hours to show in the categories we had picked when creating the product and yet if you search the product on the website it ...
0
votes
0answers
15 views

Magento 2 : Set checkbox on cart page and update subtotal

I want to set one checkout in checkout cart page and on checkbox check uncheck cart total value should be plus minus. How can I do that? Any help would be appreciated.
0
votes
0answers
18 views

Magento 2 - Change shipping price amount when access payment page on checkout not working

I want to change or update the shipping price when I access the payment page on checkout. I have try event sales_quote_address_collect_totals_before and sales_quote_collect_totals_before, shipping ...
0
votes
0answers
9 views

magento 2 does not use all ram of my system

I set PHP memory_limit to -1 and when I want to use di:compile command it is very slow. sometimes it needs over 4 min for a `di:compile'. my laptop ram is 32G and hard is SSD. already I use Linux (...
0
votes
0answers
9 views

Cloudflare causing “Warning: session_start(): Failed to read session data”

My Redis Configuration (env.php) currently includes the following 3 entries: 'max_concurrency' => '22', 'bot_first_lifetime' => '60', 'bot_lifetime' => '7200', This worked ...
0
votes
0answers
11 views

refresh Shipping Method's block on checkout page Magento 2

We have a custom checkout field called the city where we have multiples cities. Now I want that when customers select/ change any city, refresh the shipping method block. Same as when we add/change ...
0
votes
0answers
8 views

magento 2 set quote_item custom column in controller

I want to update my custom column name order_item_note in a quote_item table. I have the below data. Product Id, and Text to insert. How to update the column order_item_note without raw sql I have ...
0
votes
0answers
12 views

Hide order summary from mageplaza checkout

I want to hide or remove the Order Summary Section from Magaplaza one step checkout page, but there is no option from admin to hide it.
0
votes
0answers
13 views

How to check customers custom attribute order place in Magento 2

How to check customer custom attribute is 'No' order is pending. And customer custom attribute is 'Yes' Order is processing. So please How to achieve this. Thanks
0
votes
0answers
9 views

Cart rules and coupon compatibility

I need to implement multiple cart rules, in particular coupon codes with compatibility rules, and was wondering if exists an extension that already does this. I'll make you an example, let's say I got ...
0
votes
0answers
17 views

How to Configure Elasticsearch with hostgator Hosting in Magento 2.4.1

I have installed magento 2.4.1 in my hostgator shared/Reseller hosting.All things are working fine but I am getting error Of Catalog/search Indexing required. But when I reindex from admin panel or ...
0
votes
1answer
14 views

Changing the layout & design for a specific set of products

On 3 of my products I wanted to change the look & feel along with the layout As an example, I want to move the product title so I have created a new child theme like below /app/design/frontend/[...
1
vote
1answer
66 views

Magento 2 remove subtotal from Invoice PDF

I've been trying to remove subtotal from the invoice pdf. I have override vendor/magento/module-sales/etc/pdf.xml from my custom module but didn't work. I have just commented on the subtoal. but it ...
0
votes
0answers
38 views

Create popup with an attachment file on popup that will be saved in database

How to create popup on PDP page and in popup form, how to add attachment file that will save in database.
2
votes
2answers
48 views

Magento2.4.2 - After Installing Fresh Instance All Pages Messy

I have tried to install Magento2.4.2 in both way. Using Composer & 2. Downloading .zip Both time I have found root index.php file is missing. After adding from Magento2.4.1 in console getting ...
0
votes
1answer
27 views

Advanced Reporting 404 error

I'm actually work on a Magento 2.3.4 website. I try to access to Advanced Reporting, but when I click on the button on the BackOffice's homepage. It's redirect me on 404 error page... Someone have ...
0
votes
1answer
33 views

UI form dynamicrows can only add one row?

I got a weird error and I can't seem to figure out how to solve it. I create a dynamic row within a ui form. All this works as supposed. BUT, when i create a add a record i can only add one... So the ...
0
votes
0answers
10 views

Default shipping addresses not stored

I'm having some issues to setup addresses as default shipping addresses for customer. [ As you can the the addresses exist in the list, but isn't set as default here is my code (it's a running script ...
0
votes
0answers
13 views

Magento2: How to display brand description on product page

I use free version MGS Brand: https://www.magesolution.com/magento2-shop-by-brand.html This extension allows display brand description in products brand page. http://m2.magesolution.com/demo/shop-by-...
0
votes
0answers
6 views

Magento2: issue with MGS_Brand (product slider)

I use free version MGS_Brand: https://www.magesolution.com/magento2-shop-by-brand.html I see I have any issue with style slider for shop by brand. For related products working correct. How to get in ...
0
votes
0answers
11 views

After Migration from Magento 1.9.1.0 to Magento 2.2.4 some product are not visible on category page

I have migrated All data from Magento 1.9.1.0 to the Latest Magento 2.2.4 after migration I am having an issue like few products are there in admin but those are not visible on the category page. All ...
0
votes
2answers
17 views

Magento2: Specified invalid parent id (Magento_Backend::mgs)

I try instlall MGS Shop by Brand. Frontend working correct. But in backend I get issue: 1 exception(s): Exception #0 (OutOfRangeException): Specified invalid parent id (Magento_Backend::mgs) ...

1
3 4
5
6 7
858