Questions tagged [magento2.3]

Denotes questions related to Magento CE 2.3.x and EE 2.3.x

Filter by
Sorted by
Tagged with
0
votes
0answers
46 views

Magento 2: permissions keep resetting after running cli commands

I have Magento 2.3.4 installed on a test server with Ubuntu 18.04 + nginx + php7.2. The website displays fine, until I run cli commands (e.g. setup:upgrade, setup:di:compile) that result in newly ...
0
votes
2answers
63 views

Magento 2.3.5 - Customer login frontend does not work

For some reason our customer login form on the frontend does not work anymore. We still can login into the backend without any problems. I check the log files, but there are not error's displayed. ...
0
votes
0answers
27 views

PHP Fatal error: Uncaught Error: Class 'Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser' not found

I am using Magento 2.3.4 and MFTF 2.6.3. I have setup the MFTF by setting environment credentials in dev/test/acceptance/.env running vendor/bin/mftf build:project running vendor/bin/mftf generate:...
0
votes
0answers
10 views

Override class and inject dependecys

I have following problem. I am overriding \Magento\GroupedProduct\Block\Product\View\Type\Grouped with this way: First i override it in the di.xml <preference for="Custom\Class\Block\Grouped\...
0
votes
1answer
18 views

Magento 2.3 get row subtotal transactional email

I want to load row subtotal inside the invoice transactional email. Therefore I changed the following file (/app/design/frontend/Theme/Theme/Magento_Sales/templates/email/items/invoice/default.phtml) ...
0
votes
0answers
7 views

How to set item and quantity in creditmemo script in magento2

I am making script for generate credit memo. I have one csv file with column orderid, sku and qty. I need to generate credit memo for that via script. I can generate creditmemo but I'm not able to set ...
0
votes
0answers
8 views

How to change spinner/loading icon across the site magento 2?

I Want to change the default magneto's spinner/loading icon across the site in Magento 2. So how can I change it? I want to use SVG file instead of the gif. So where can I change that? I want to ...
1
vote
1answer
46 views

Magento 2 : How to update qty and stock status using API for multiple products?

How to update qty and stock status using API for multiple product in Magento 2 ? We are doing ERP integration with magento 2 and we need to update qty and stock status. in magento 1 we had ...
0
votes
0answers
7 views

How to create Multi Image Uploader in custom ui component form?

I trying to create a Multi Image Uploader field in my custom admin ui form. The multi Image uploader is need like as product form multi image uploader. If anyone good in this part, help me! Note: I ...
0
votes
1answer
30 views

Magento 2: How to add a new phtml(template) to a layout file so I can use it in the head section?

I am trying to add a phtml template file to the layout file so that I can use this template in the head section to insert contents from an JS file. Please tell me what is the best way to do this?
0
votes
0answers
10 views

Magento 2: Display Card Type in Payment Transaction Failed Email

I have to display the Credit card type in the payment transaction failed emails.But I'm not understanding how to achieve this. Can someone please help or guide me regarding this?
1
vote
0answers
26 views

Memory leak in product save loop

I'm trying to import ~5000 products from XML, but the execution time and memory usage increases in each loop, resulting in a long import process. Test code to demonstrate: <?php namespace Test\...
0
votes
0answers
21 views

Magento 2:An element with a “sellerpage” ID already exists

When i am making ajax call i am getting error 'An element with a "sellerpage" ID already exists'. Here is my controller. namespace Vendor\Module\Controller\Sellers; class Index extends \Magento\...
0
votes
2answers
65 views

How to use responsive.js in a theme derived from Luma?

The Magento DevDocs says You can use the menu.js, responsive.js and matchMedia.js to add responsive behavior in your custom theme. If your theme inherits from Blank or Luma, you do not even ...
0
votes
0answers
23 views

cookie notice not showing

I have Magento 2.3. Cookie Restriction mode is enabled in the admin panel but not showing on the home page. the style after load page [display is none ] but the style on CSS [display is block] this ...
0
votes
1answer
32 views

Plugin always breaks the core Flatrate Shipping method

I have created a plugin to customize the Flatrate shipping(per order) when a guest checks out any product. Below are my relevant module-plugin files which I supposedly wrote as per Magento 2.x's ...
0
votes
0answers
19 views

Where can I find information on product attribute input types

I'm relatively new to web development, I've been using Javascript, html and css for about 80 or so hours, and I'm getting my feet wet with PHP now, so I'm sorry if this seems like a stupid question. ...
0
votes
1answer
43 views

Magento 2: How to insert a custom JS file in the header of custom theme. This custom JS file is placed in pub/media/pmm-custom directory?

I'm looking for a way to add a custom js file in the header.phtml file. I don't place custom JS file under theme_directory for a obvious reason. Could anyone please tell me how to override header ...
0
votes
0answers
57 views
+50

How to get block details based on observer element name in Magento 2.3.5

I had below code which was working fine on Magento 2.2 after upgrading to 2.3.5 event observer not working as expected. Events.xml <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi=...
0
votes
1answer
48 views

Magento 2: Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block type: Perfectmirrors\PmmLayout\Block\Head

I am really not sure how to create the block class Pmm\PmmLayout\Block\Head , function of which $block->getAllPagesJSContent() should be called inside my phtml file pmm_head.phtml <...
0
votes
0answers
28 views

Notice: Undefined property: DOMText::$tagName

Google Search Console initially, a few days ago, reported 500XXX error for an AMP page that has now been moved under N/A with 0 affected pages. When the link to the previously affected AMP page is ...
0
votes
1answer
32 views

Magento 2: Server error (5xx)

Google Search Console notifies an error as seen in the screenshot. How to ensure such errors do not occur so that the search engines can crawl and access the pages on the site?
0
votes
1answer
29 views

Magento 2.3: Duplicate entire store view to a new one language

I want to add a new language in my store. It's a language that is really similar to another one already inserted: as example en_GB and en_US. I'm looking to duplicate it because a big percentage of ...
0
votes
2answers
28 views

how hide login button at login

Create a button called Login to log in, but once you log in, the button doesn't disappear. How do I get this button to switch to logout
0
votes
0answers
17 views

Magento 2 in admin grid display order table data

Magento 2 in admin grid display order table data. How to display this? can you give me any suggestions please?
0
votes
0answers
11 views

Magento 2.2.3 Unable to unserialize value

I haven't installed any of the modules but when i tried to create a new email template from back-end by loading a default template which is 'Pickup-cancelled' i am facing an issue. The screenshot is ...
0
votes
0answers
27 views

How to change Summary Data in Magento 2 on Checkout and Shipping Page

I want to rename additional product options name from Summary Side bar on Shipping Address and Checkout Page. I have created a custom plugin which can rename additional options name. However this is ...
0
votes
0answers
17 views

How to dynamically hide normal fieldset (or) Non tab fieldset in ui component?

I created a custom admin form using Ui component. In that form i need to show and hide a fieldset dynamically based on a condition. I tried to add class for that fieldset, But the class not working in ...
0
votes
0answers
29 views

Overriding add cart controller in magento 2

I am trying to Override cart Add.php execute the function and I have created a new module and user preference for it. Very First I have created routes.xml in etc directory of my module. Samaa/...
0
votes
1answer
14 views

Registry returning null

I am trying to get the registry but its always returning null and i dont know why class Extension extends \Magento\Framework\View\Element\Template { protected $_urlBuilder; ...
0
votes
0answers
21 views

how to add custom option to all product

okay, let me describe my issues. I have some custom options that are static for now but they can change later. so I need to add my custom option to all products without saving them on the products. ...
1
vote
1answer
29 views

Magento 2: Why do I see an extra IMG tag beside the actual IMG intended for logo on the home screen?

as seen in the image below, my Magento site displays an IMG tag before the IMG tag meant for displaying logo on the homepage. Please tell me how to eliminate the first unwanted IMG tag logo-white.svg. ...
0
votes
0answers
23 views

How to display collection data in grid ui admin?

I create controller to get data from database as code below. The query in controller: $orderCollection = $this->_salesOrderCollectionFactory->create() ->addFieldToFilter( ...
0
votes
1answer
29 views

Override a parent theme in vendor with a child theme in app Magento 2.3

I have made a theme that is a child to a customized theme that is a child of Luma. My theme lives in: app/design/frontend/{mycompany}/{mythemename}/ My themes parent lives in: vendor/{...
0
votes
1answer
22 views

Looking to replace document.write(new Date().getFullYear() with an equivalent PHP function

I am looking for an equivalent PHP function to accomplish what document.write(new Date().getFullYear() is expected to do. This function is to be used in place of deprecated document.write(new Date()....
0
votes
0answers
11 views

Where in product details page of my Magento2 site should I add Lazyloading class provided by a third party

please tell me where in product details page of my Magento2 site should I add Lazyloading class so that only visible product appear earlier than non-visible ones thus resulting in better pageload ...
0
votes
0answers
25 views

Exclude particular <script> tag moving to bottom of the page- Magento 2.3

In my Magento site, we found there was configuration in admin. Admin -> Store -> Configuration -> Advanced -> Developer (Enabled only on Developer mode). JavaScript settings -> Move JS code to the ...
0
votes
1answer
21 views

how do i log in form on magento2.3 home page

I created a login form on the home page of the magento website but I don't know how to make it work
0
votes
1answer
24 views

Magento 2: How to get only the file name of Home Page Logo?

is there a way to only get the filename of an Homepage logo in the logo.phtml template file? $block->getLogoSrc() in logo.phtml returns the URL to the logo, but I need only the filename like someimage....
0
votes
1answer
25 views

Installation error in Magento

Please help me with the solution. I am using nginx server.Conf is as follows upstream fastcgi_backend { server unix:/var/run/php/php7.2-fpm.sock; } server { listen 80; server_name myshop....
0
votes
0answers
20 views

Adding product with custom price not working

I am adding a product to cart with custom price, after that I am redirecting to cart checkout page. But product price is not updating in checkout page. Total price is also wrong. $quote = $...
0
votes
2answers
41 views

Add Custom Link In Main Menu Magento 2.3.5

I need to add Custom Link In Main Menu Only apply Specific Text. currently i have display menu as category. i want to add link only where to buy menu. please help me & Suggest how can i add menu? ...
0
votes
0answers
14 views

Fix Composer.json File? - Can't update anything

I"m trying to update mageplaza smtp plugin via composer and running into issues with composer. I'm running the commands per their instructions on github. I have had magento updated to 2.3.3 ...
0
votes
2answers
27 views

Add block below short description on product page

I am developing a module and would like to put a block on the product page, immediately underneath the short description and above the dropdown selection. I have looked at every single answered ...
0
votes
0answers
7 views

In Magento 2.3 can we load grid values after filter search

im working on custom grid functionality, where i want to show empty grid to user at initial load but when they do search in filter if data exist then show the result in grid is this possible.
0
votes
0answers
8 views

SMTP plugin not working on centOS VPS

Long story and some bad developers later, we upgraded from 2.1 to 2.3 and also updated centOS to the latest version on our VPS. We're using SMTP plugin from mageplaza and it was working prior to the ...
-2
votes
2answers
26 views

How do I add jquery to magento 2.3

How can I add js or jquery to magento 2.3 ?
0
votes
0answers
12 views

Allow customers to add product to cart more than available qty (BackOrder) in Magento 2

We are accepting the backorder items and the default Maximum Allowed Qty is 10000 When adding the product to cart more than 10000 Magento 2.x throwing the below error. We don't have as many ...
0
votes
0answers
9 views

Magento 2.3.4 - Blank page with login block after login

I have added the following block to the Page: {{block class="Magento\Customer\Block\Form\Login" name="customer_form_login" template="Magento_Customer::form/login.phtml"}} But after the login, the ...
1
vote
2answers
34 views

Magento 2 Set Default Zip/Postal Code in cart page

I have overridden the vendor/magento/module-checkout/Block/Cart/LayoutProcessor.php in my module and added below code to set the default value of postcode class LayoutProcessorPlugin { public ...

1 2
3
4 5
69