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

Magento 2 - Whitelist certain controller actions while Website Restrictions -> Website closed is active

I'm using Website Restrictions -> Website Closed, to display a page while the shop is temporarily closed. The page is being displayed properly. On this page I have a newsletter sign-up form, but ...
0
votes
2answers
16 views

M2: Finding all configurable products that do not have a simple product connected to it

I have removed a bunch of discontinued products (simple products) through CSV. Most configurable products still have a few simple products attached to it. However, for some, literally all simple ...
0
votes
0answers
7 views

Magento 2 join sales_order_item.product_id with catalog_product_entity.entity_id

After Migrating from Magento 1 to Magento 2.4.3 Community Edition the product_id row in the sales_order_item table is incorrect because the product ids are different to Mageto 1. (I imported the ...
0
votes
0answers
13 views

Redirect on login / register page when proceed to checkout

On my website I have 2 env; sandbox and pre-production. On sandbox env I can see a normal behaviour, if i'm not logged in and i try to proceed the checkout as guest from the cart after adding an item. ...
0
votes
0answers
5 views

Magento 2 Core Bug Found Discount Shows wrong On Catelog Page, But Discount price calculate fine

I can see that there are issue in magento2 in my project, i applied 20% discount on all items, but its shown different disscount % on Product Detail Page, I am not able to figure out , what can i do, ...
0
votes
2answers
21 views

Magento 2.4.3 Remove products from cart

Customer has 500+ items in their cart. "Remove All" button does not remove items from the cart. The below code in resolver is used to remove cart items /** * Remove multiple items from cart *...
0
votes
1answer
16 views

How to execute clientside javascript from php plugin file

Is it possible to call a frontend javascript function from a plugin php file? The js function should be executed in the browser. view/frontend/web/js/send.js function send() { console.log("...
0
votes
0answers
9 views

All pages 302/502 bad gateway (nothing in logs, Magento 2.4.2)

I am getting 502 bad gateway error showing in the browser for all pages, including admin. There is nothing in the logs of phpfpm (system/debug/exception). In the nginx logs I am seeing the request as ...
0
votes
1answer
20 views

Store menu module or file location

I want to edit menu.xml inside the store's menu on the admin dashboard, is that possible? because I can't find any module named stores inside app/code/ directory
0
votes
1answer
12 views

Magento 2 Advanced Reporting Exception Log and its link 404 Page

I have already enabled Advanced Reporting and integrated Active user in admin as Magento Analytics User under Admin => System => Integration Still it throws below exception log: Can anyone ...
0
votes
0answers
9 views

Magento 2 Dynamic rows with upload image in admin module not in system configuration

I have created a custom module which have dynamic rows. I have added Image field there with dropdown and some other text field. But when I am trying to save input type file is not getting in post ...
0
votes
0answers
7 views

Magento 2: set Tier price programmatically face issue of unchecked default store view

Before I set in admin like below After I execute script to update tier price for same product it changes as like below which is issue Code I use to set tier price is below $tierPrices[] = [ ...
0
votes
1answer
27 views

Magento 2: How to override Catalog Model class in custom extension?

I am trying to extend Magento\Catalog\Model\Product\Image\ParamsBuilder class in the custom extension and I have passed all the parameters of parent constructor but I'm getting this error, Type ...
0
votes
0answers
21 views

Magento2 Special Price is not correctly reflecting on Product List Page and Search Page

Pr-conditions: Magento version: Magento Commerce 2.3.6 Varnish version : 5.2.1 PHP version: PHP 7.2.33 MySQL version: 5.7 Multi Website architecture Catalog Price Scope = "Website" (Admin &...
0
votes
0answers
8 views

Magento 2.4 Admin Invoice Does Not Render Properly - uncaught reference error: require is not defined

Magento 2.4.2 admin invoice does not render the CSS on certain invoices - the page shows up without any styling. (Some older invoices do still render properly as they should). So it seems that the ...
1
vote
1answer
14 views

Display company name on /customer/account/ under contact information

getCompany for templates/account/dashboard/info.phtml doesn't work when I use a block at all or otherwise. Anyway I can display the contact's company name where the first and last name are being ...
0
votes
0answers
6 views

Magento 2.4 Admin invoices page spinner never disappear

I want view a list of invoices in my mogento module. The data has successfully loaded, but the loading spinner never disappear. Magento version: 2.4.3 OS version: Ubuntu 20.04 LTS
0
votes
1answer
14 views

Magento 2: How to add different watermark based on Vendor?

I have a multi-vendor setup on my site and based on per vendor products, I want to apply a watermark. By default, Magento applies watermarks on all the products based on the website/ store. Can anyone ...
0
votes
1answer
9 views

Magento 2: Get Product Collection With Multiple SKUs Filter

I'm trying to get product collection with multiple skus filter, don't know what I'm missing or doing wrong: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
0
votes
0answers
5 views

Custom Total Collector Not Calculating Shipping

I have a custom totals collector, which removes the VAT for exempt items. Here is the code: app/code/Innox/VatExemption/etc/sales.xml <?xml version="1.0"?> <config xmlns:xsi="...
0
votes
1answer
16 views

How can I get the url of my new module?

This is a simple Hello World in a Block, I would like how can I get the URL of this, to check the website this HelloWorld. I don't know to check my exercises, because I don't know how to get the URL ...
0
votes
0answers
8 views

Salable Quantity

I have been looking for the salable quantities of items on Magento Commerce. I did see it on Catalog -> Inventory -> Products, but I want to export the data to use it in Magento Business ...
0
votes
1answer
14 views

Programatically mass change product prices

I am writing a module that uses a cli command get a csv file and use that to change the prices of a selection of products based on sku and new price retrieved from an CSV file. I have the logic for ...
0
votes
0answers
15 views

magento 2.4.2 p2 setup in wampp server local

magento 2.4.2 p2 setup in wamp server local I have tried to install magento2.4.2 on my local machine below error show This is not implemented, as it is not possible to implement Argon2i with ...
0
votes
0answers
5 views

Magento 2 SOAP Load Gives Error Invalid XML

I tried to load for example : https://example.com/soap It download the SOAP File with Following Content : <?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:...
0
votes
0answers
14 views

Get value of dropdown selected option attribute in magento 2

I have added a drop down attribute with data in the product, now I need to get the selected value of option, not label, label i can get via getAttributeText('provider');?>, but i need get only ...
0
votes
0answers
12 views

I want To Add missing order in google Analytics Track

I Have Noticed That Some Order Missed Not Tracked in Google Analytics. Is There Any approach so I can track the order not Tracked in Google Analytics.
0
votes
0answers
9 views

Best Practice: Load Objects vs Join Tables?

I'm working on a Magento2 module where I need to collect order data for, let's say 1 - 20 orders. At this point I wonder if it's: A good approach to collect the order ids of the required orders and ...
0
votes
0answers
10 views

Configurable products show sale tag on product selection

Case: There are 3 child products for exp: Black, Red and Green, I have enable sale for Red only while it's showing all products. As you can see in the image selected product has no special price but ...
0
votes
0answers
21 views

Magento 2.4.3 : default magento 2.4.3 success or error message not appear on frontend?

We have magento 2.4.3 upgrade after any action/event perform we can't appear success/error messages.if we have go to other page then the message will be appear there.
2
votes
0answers
16 views

Magento 2 - Sales order grid on the frontend with export option

I need to show the sales order grid on the frontend under My Orders or else I need to show the custom field under my orders on the frontend so that the customer will filter the orders based on the ...
0
votes
0answers
18 views

Magento 2 Image upload fakepath issue

In customer Edit, I have added one tab. Using form I try to add file upload but the problem is it returns a fake path when I print postvalue() here is the code of form field $fieldset->addField( ...
-1
votes
1answer
13 views

How to debug Magento 2 with docker-compose, PHPStorm? [closed]

A solution for debugging Magento 2 with docker-compose, PHPStorm on Ubuntu? Thanks.
0
votes
1answer
23 views

Magento CSP: style-src missing from response header

We have added <?xml version="1.0"?> <csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:...
0
votes
0answers
11 views

How I create a custom provider in commerce for magento and How I connect it?

I am new to next js and bigcommerce , I am trying to create a custom provider for Magento and try to connect it. can you please tell, how I achieve this?
0
votes
0answers
27 views

How to get $resultRedirect->setPath() data in afterExecute plugin

I have written a plugin for few changes and all working well. Now I want to get redirect data E.g setPath and main id in afterExecute plugin Here is my code <?php namespace Demo\Demo\...
0
votes
1answer
17 views

How can we pass the XML data in request body for SOAP API call in magento 2

As I need to get the product data based on the SKU but need this in SOAP XML format. I am creating the module for third-party integration which provides the SKU in soap XML formate based on that I ...
0
votes
0answers
11 views

Magento 2 Fotorama always show zoom in and zoom out icons on fullscreen zoom

How can I make it so that the zoom in and zoom out icons are always displayed, right now it only shows when zooming my browser in to 125% for the icons to show up. I see that --disabled gets appended ...
0
votes
3answers
30 views

Magento 2.4.3: Magento Default Product Search Not Working

I have upgraded the version of magento from 2.2.6 to 2.4.3 in local, so after that i have check the magento search product functionality, so it's not working as screenshot attached: https://i.imgur....
0
votes
1answer
14 views

Display my images in ebay listings (or other website) .htaccess question

I have a Magento site (2.4.3) running on Ubuntu with Apache. I am creating eBay listings which are using images from the https://<mysite.com>/images folder. The images are not displayed. If I ...
0
votes
1answer
36 views

Magento 2.4.2: redirection from Observer not working

I am getting 'ERR_TOO_MANY_REDIRECTS'. I tried solution from this link: Magento2: redirection from Observer public function execute(Observer $observer) { $this->actionFlag->set('', \Magento\...
0
votes
1answer
23 views

What is the best way to remove unused css files?

About 90 percent of the css rules generated in styles-m.css and styles-l.css are unused. How can I get rid of them? Is there a way to locate from which modules these styles are being generated?
0
votes
1answer
26 views

magento2.4.1 setup:di compile error

I got a small problem when compiling magento,i.e, C:\xampp\htdocs\magento-ce-2.4.1-2020-09-25-04-08-02>php -dmemory_limit=4G bin/magento setup:di:compile Compilation was started. Plugin list ...
0
votes
0answers
15 views

Magento2: Add Dynamic Custom option on add to cart using rest api

Hope you all are doing good!!! I am not creating any custom option for products but need to add custom options to any simple products while adding to cart with rest api so can you please assist me how ...
0
votes
0answers
30 views

How to add new input or select dropdown on customer group form?

I need to add new custom input box and select dropdown on customer group edit form can anyone help me ?
0
votes
0answers
10 views

Add multiselect in Cart Price Rules conditions

How can I add Multiselect for conditions in Cart Price Rules http://joxi.ru/YmEdlwgTBD7xxr I know that I have to extends AbstractCondition class for my new condition. But I don't know how to add ...
0
votes
0answers
12 views

Magento2.3.4 different hours in REST API call GET Orders and the real order hour timezone

I have selected Timezone (Configuration->General->Locale Options) Central European Standard Time (Europe/Warsaw) Order 10004 has been created at: Sep 21, 2021, 5:59:34 PM When I send API ...
0
votes
0answers
10 views

Shipping estimation calculation takes forever

I'm only using 1 shipping method, flat rate $6. On one page checkout, is there a way to disable 'shipping calculation' and directly show $6 for shipping fee? Only estimate-shipping-methods takes ...
0
votes
0answers
6 views

Magento 2: IF Fedex shipping method response is empty then hide shipping method

I want to hide the FedEx shipping method if the response is empty or failed and at the same time show default shipping rates methods. Refer screenshots: I am really stuck with the same. Please help ...
0
votes
0answers
13 views

Magento 2.3.5 : Change Street Address input field to textarea input field during checkout

I am required to change the input field of Street Address from text input to textarea I also want the configuration of street line address configured at Stores > Settings > Configuration > ...

1
2 3 4 5
886