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

Suddenly Sitemap model stopped working after 4month

I have used the preference to override the Sitemap model. Working fine for 4 months. I have also tried to find other module is overriding the same but didn't get anything. Can somebody help me to find ...
0
votes
1answer
24 views

Hide link navigation customer account on specific condition

I'm would like to know if it's possible to hide a navigation link of the Customer Account dashboard depending on a condition. For example, I would like to display this block only if customer has a ...
0
votes
1answer
19 views

Magento2 configure PHPstorm & xdebug and how to use it

I was using sublime and VScode for the development. Recently I heard that PHPStorm is the best IDE for the Magento2 development and using xdebug you can easily debug the issues and write modules. I ...
0
votes
0answers
16 views

Page changes don't show

I have a fresh Magento 2 install from DigitalOcean which includes Magento 2.4.2 with sample files and the Luma theme. Now when I edit a page (for example "About us") and change a header for ...
0
votes
1answer
24 views

override javascript from module

I want to override file from module. vendor/mageworx/module-storelocator/view/frontend/web/js/locations-modal.js I create file app/design/frontend/Mgs/claue_child/MageWorx_StoreLocator/web/js/...
0
votes
0answers
41 views

How to fix “Failed to execute 'getRangeAt' on 'Selection': 0 is not a valid index” error of Viewer PDF in magento 2

I want to add in magento a pdf viewer link but when i edit it in viewer.js file line 4023 pdfjsLib = require("../build/pdf.js"); let pdfjsLib; if (typeof window !== "undefined" &...
0
votes
0answers
21 views

How to display the content on product pages without using tabs?

What's the more elegant way to remove the tabs on the Magento (2.4.2) product page? I'd like to simply show the content without using the tabs.
0
votes
0answers
9 views

Can I rollback backup files from different Magento 2 versions?

I have a store running on Magento version 2.3, and I want to perform a clean installation of the OS. Therefore, I made a backup of Magento's code, media, and database. Can I rollback my store backup ...
0
votes
0answers
9 views

Luma-Icons.woff2 => Ensure text remains visible during webfont load

I'm trying to get rid of this lighthouse warning: Ensure text remains visible during webfont load Leverage the font-display CSS feature to ensure text is user-visible while webfonts are loading. Learn ...
0
votes
1answer
33 views

How to deal with a category which has over 100K products?

Our site (CE version 2.3.4) is extremely slow on the backend and frontend for a particular category which has over 100K items. What is the best way to split this up so that we can see performance ...
-3
votes
1answer
32 views

Magento2: Can we add range slider on product attribute

In current magento2 provide range slider on product attribute "price". I have requirement range slider on Case Diameter.
0
votes
0answers
17 views

Trying to install Magento 2.3.6 - error Class Magento\GoogleShoppingAds\Model\Cache\Type does not exist

I am trying to run a magento install script (using deployer). The exact same script on exact same git branch works on another machine. This is the error: ✔ Executing task deploy:prepare ✔ Executing ...
2
votes
1answer
27 views

Moving fonts to preload issue in Magento 2

I am using the lighthouse from chrome and I am getting the following: I have 3 fonts from the core of Magento and I would like them to move it in my default_head_blocks.xml with: <head> <...
1
vote
1answer
31 views

How can you calculate the prices with 2 decimals, not with 4 decimals?

How can you set in Magento2 that all the calculations you make on orders, invoices, price rules,…, to be done with 2 decimals not with 4 decimals? Attention, I mean the calculation of prices and not ...
0
votes
1answer
35 views

Very Slow Magento 2 in windows subsystem for Linux(WSL )

I have installed Magento 2 inside WSL ubuntu 20 for local development, but the speed is very slow. Cache is enabled and store mode is default. Anyone experiences the same issue. My system ...
0
votes
1answer
19 views

Magento 2 : how to include custom image in email template?

I have made some email templates, i am not much sure where i can add image files & use it in email templates ? Is their is possible way to get it ? Please let me know your thoughts on this. ...
1
vote
0answers
13 views

custom attribute in customer address grid

I am trying to add a column in the customer address grid in admin with a custom attribute. <column name="addresstypes" class="xxx\AddressAttribute\Ui\Component\Listing\Address\...
0
votes
1answer
23 views

500 internal server error after terminal commands

I have an issue with Magento 2 commands. Every time I do : bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:flush bin/magento cache:clean rm pub/static, etc... ... I get 500 ...
0
votes
0answers
9 views

Validate the T&C before the paypal popup in magento2

Braintree Paypal Issue - There should be also a validation on the T&Cs for paypal before you go off to paypal not after
0
votes
1answer
17 views

upgrade cloud enterprise edition with specific steps

I want to upgrade cloud enterprise edition from 2.3.2-p2 to 2.4.2 but not getting proper steps so anyone can guide me for same.
1
vote
1answer
23 views

Magento 2 : How to get category data by category id?

I have product object & i get category ids using $category_id = $product->getCategoryIds(); I need the collection for the category ids which i get in $category_id What will be the best & ...
0
votes
1answer
19 views

Magento2 - I want to show custom quote item field to checkout page

I want to show custom quote item field to Checkout Page. I don't know how would I do that. I've added one custom drop down to Cart page and selected value I saved in quote_item table now I want that ...
0
votes
2answers
38 views

How can I prevent a product to be added to cart without show any messages?

I'm trying to prevent a product to be added to cart without showing any messages. In order to do that I'm using a beforeAddProduct plugin and it works well but it shows an exception message in order ...
0
votes
0answers
11 views

checkboxset ui element not loading values

I have a custom module in admin with it's own admin page controller and ui-form with a variety of fields. One of these fields I want to be a 'checkboxset'. When I set the formElement value to that it ...
0
votes
0answers
9 views

Add attributes to bundle-product options

How can I display custom product attributes for bundled products options? Products that are used as bundle-option are not fully loaded, so i cant access all/custom attributes. (Right?) E.g. I'd like ...
0
votes
2answers
25 views

Magento 2 - how to re-install missing foreign-key constraints?

I am using a third party extension. I noticed that a constraint is missing by comparing with a fresh installation. This causes a bug when deleting an item of the extension. Is there a command which is ...
0
votes
0answers
19 views

SSL Certificate error when trying to download the Cybersource Magento Plugin

I'm trying to install the Cybersource package for Magento. I'm new to Magento, I had a pretty hard time installing Magento itself, but I got there. Now, I'm stuck installing this cybersource module. I'...
0
votes
1answer
31 views

Zend Mail SMTP Gmail issue

I am receiving the following error: [2021-02-25 12:37:07] main.CRITICAL: Could not read from smtp.gmail.com {"exception":"[object] (Magento\\Framework\\Exception\\MailException(code: 0):...
0
votes
1answer
28 views

Magento 2 how to install Mailchimp

I'm using Magento 2.3.3 and I'm not able to install mailchimp. The documentation doesn't seem to be very clear... I'm not entierly sure about my folder path since I cannot find any documentation about ...
0
votes
2answers
22 views

Magento2 - huge bulk products to upload in Magento

We are using Retail Pro 9 as POS for our chains stores, we have around 7000 products we can export it from retail pro, what is the easiest way to import all products in Magento 2. Hope to have ...
0
votes
0answers
13 views

pagination using jquery

I have a search bar on my page when I search for something it returns the result perfectly with correct pagination. As shown below but when I clicked on page 2, it returns the data correctly but ...
0
votes
0answers
31 views

how to solve The requested URL was not found on this server issue before magento2 installation?

Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the ...
0
votes
1answer
16 views

Magento 2 - Foreign Key Constraint does not delete record

I am using the extension Amasty Product Attachments. If I add an attachment to a product and then delete that attachment from Amasty -> Product Attachments -> Attachments Management, then I can'...
0
votes
1answer
27 views

Module Disable/Uninstall Issue - Magento 2.4.0

I installed a module, But that was conflicting with the account dashboard, So I uninstalled that module and remove that extension folder from Code. But now my account dashboard is still not working, ...
0
votes
1answer
29 views

Magento2 - Customer not Able to upload file

I have multi-websites in Magento 2: Url : https://www.lilysprints.co.uk/upload-an-image.html https://nepbhprint.com/upload-an-image.html When I try to upload an image I get this error Path /var/www/...
0
votes
0answers
36 views

Magento 2.4.2 - Addtocart Button Disabled

Can anyone is using Magento 2.4.2 version?. In list page Add to Cart button is disabled. In list.phtml file the addtocart will be disabled. How we can enable the Add to Cart button.kindly confirm ...
0
votes
0answers
22 views

Add product custom options and only saved once

$values = [ [ 'title'=>'Red', 'price'=>10, 'price_type'=>"fixed", 'sort_order'=>1 ], [ 'title'=...
0
votes
1answer
31 views

Magento 2 : How can I add my custom side bar below Summary side bar in Cart page?

In cart page I want to add custom side bar below Summary side bar. Please give me some suggestions. Thanks!
0
votes
1answer
15 views

how to upload default.vcl from magento2 to etc/varnish/default.vcl?

I follow this steps. (https://magemastery.net/blog/how-to-configure-varnish-6-and-nginx-with-ssl-for-magento-2) I install vanish and nginx complete. Now i export default.vcl from magento2 and set ...
0
votes
0answers
21 views

Uncaught TypeError: Cannot set property 'swipe' of undefined while loading PDP and keep on loading

I have used a custom theme in Magento 2.4.1 I am facing a console error while loading PDP & Page kept loading as well. gallery.js:189 Uncaught TypeError: Cannot set property 'swipe' of undefined ...
0
votes
0answers
17 views

Magento2 few product images does not apper in listing page

i am facing issue on plp page on magento2.3.2 version in backend those product is not going to display the image that product has a images in backend. and few product already set the role of the image ...
0
votes
1answer
22 views

Custom log file not creating

I am using Magento 2.4.0 and trying to put a custom log for my custom module by extending the \Monolog\Logger but the log file is not created in the Magentoroot/var/log path. I have attached all the ...
0
votes
0answers
10 views

Why don't possible rewrite this class on Magento\Payment\Model\Method\Cc

I create the rewrite of that class but for some reason magento ignores it, is it because it inherits from an abstract class? etc/di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
0answers
17 views

I have add custom attribute and as it is labels are showing in frontend

I have added some custom attribute in new-address.js file Whenever i add new address in the time of checkout that address shows up with label of new added customattribute label. How do i resolve it ...
0
votes
0answers
8 views

Magento2 custom UTF icons corrupted in frontend

I've got a problem with certain icons not being displayed correctly in a store I'm working on. The relevant css, as far as I can tell: /* * Font Icon */ @mixin font-icon($icon:'\e5cd', $font-family:$...
0
votes
0answers
18 views

Magento 2.3.6: Order email is sending but Customer Account create/forgot password email not sending?

We have checked order email is sending proper,when we tried to create new customer or forgot password that time email is not getting. when we have checked in exception.log file we have got the below ...
0
votes
0answers
27 views

magento2: View model knockout

I am new in magento module development. I was searching for something similar to this https://www.mageplaza.com/devdocs/how-add-custom-discount-magento-2.html I just editied the code in step 2 to meet ...
0
votes
0answers
12 views

How to set default state value in checkout in magento2?

How to set default state value in state field in checkout page same as country in magento2?
0
votes
1answer
18 views

Magento 2 : how to show custom shipping address in email template?

I am trying to send & show custom shipping address on email template here is the code $ship_country_id = "US"; $ship_region_id = "CA"; $...
0
votes
1answer
17 views

Get extension_attributes in Plugin

In my API response (all orders) I get this extension_attributes "extension_attributes": { "my_attributes": { "order_id": null, "company_id": ...