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

are there any free reviews reminder configurations?

Are there any good configurations that can remind the customer by emailing them to leave a review on their purchase?
user avatar
  • 1
1 vote
0 answers
8 views

Customize frontend and backend magento2 using js without using phtml file

Just to explain in simple words. I want to use the js file in the frontend and backend of magento2 but without using the PHTML file.Just directly usage by getting field name, or id or something.
user avatar
0 votes
0 answers
18 views

Virtual category products using Smile Elasticsuite

I need all virtual category products using Smile \ Elasticsuite. I have searched on other sites but cannot find a working solution or similar example. Below I am attaching the code as I tried but it ...
user avatar
0 votes
1 answer
27 views

Magento2.4: Category page , if salable qty is 0 , show label on product

How to display a label on a product if the saleable quantity is zero with the code?
user avatar
0 votes
1 answer
17 views

Display product attributes in cms block or page builder

I need to be able to reference product attributes inside a cms block or page builder, I am not wanting to create any template files I am wanting to call it like you can call a variable. So here is one ...
user avatar
  • 1
0 votes
1 answer
23 views

How to set the meta robots NOINDEX tag to header of a specific category page?

I need to insert <meta name="robots" content="NOINDEX,NOFOLLOW"/> in a specific category page of our Magento site. Could you please share an example of how to do it? I don't ...
user avatar
0 votes
0 answers
10 views

Add custom data to SalesRule API

I tried to add custom data to SalesRule through the endpoint V1/salesRules but ended up with getting error My code is below 1- etc/extension_attributes.xml <?xml version="1.0"?> <...
user avatar
  • 121
0 votes
0 answers
7 views

var > debug > db.log file keep generating, Not able to disable : M2

I have follow bellow steps to stop creating entry in db.log file in var > debug folder Ref.: Huge db.log in Magento 2.3.3 How to stop db.log in magento 2.3 Magento 2 log database queries php bin/...
user avatar
0 votes
0 answers
6 views

Magento 2: LastRealOrderId is missing in checkoutSession

I am facing this weird issue on the checkout page. We are using 3rd party payment module, which redirects customer to the payment page after placing order in Magento. In the controller, it tries to ...
user avatar
0 votes
0 answers
6 views

Magento 2.3 - Thumbnail images not display while swatches selected for configurable product

Magento - 2.3.* Logged in customer Add configurable product to wishlist with swatches Go to wishlist page and click on the product The product page is open with selected swatches but thumbnail images ...
user avatar
0 votes
0 answers
15 views

Magento2 increase time of exception on product details page

Magento2 Product details page is showing we this error Please select all required options. I need to create this message time line, currently it is very quick disappearance. I tried below but not ...
user avatar
  • 3,426
0 votes
0 answers
14 views

Magento 2 , preference in di.xml is not working il all places in admin panel

I am trying to rewrite the behavior of the method: "render" in the class: "vendor/magento/module-config/Block/System/Config/Form/Field.php" This is my di.xml file: <?xml version=...
user avatar
1 vote
1 answer
20 views

Insert child UI component inside existing one

I have 2 modules where each one has an UI component on frontend. Module A contains the main component and component of Module B should be displayed inside the component of module A. I'm not ...
user avatar
  • 96
0 votes
1 answer
19 views

The default website isn't defined. Set the website and try again

Hey everyone i am new to magento and while setting it up i encountered this error . Now tried searching for different solution but none of them worked . The other questions related to this error were ...
user avatar
0 votes
1 answer
12 views

Failed connect to localhost:9200; Connection refused

I installed Elasticsearch, but each time I tried to check the status I get the error "curl: (7) Failed connect to localhost:9200; Connection refused" I then installed FirewallD and added ...
user avatar
  • 193
0 votes
0 answers
9 views

Magento2 Remove required checkbox default tick mark in admin bundle items

I need guidance in removing required by default at the time of adding option in bundle items Following required is kept checked at the time of Adding new option
user avatar
  • 3,426
0 votes
0 answers
16 views

Magento 2 : How to add product attribute as color picker in product form?

I'm trying to add color picker attribute in product form I have referred this link:- https://kiwicommerce.co.uk/blog/how-to-add-a-color-picker-in-product-edit-form-in-magento-2/?unapproved=1745&...
user avatar
  • 1,838
0 votes
0 answers
19 views

Queue Consumer not starting automatically (third party integration)

We are doing PIM integration (Inriver Integration) and as per its working when we trigger a bulk sync from PIM(Inriver) to Magento, PIM(Inriver) calls various Magento APIs in asynchronous way. So, in ...
user avatar
0 votes
1 answer
19 views

Magento 2.4 404 error category pages

I installed magento 2.4 on a testserver where i can not change the root folder to pub. I changed the .htaccess in the root to: RewriteEngine on RewriteCond %{REQUEST_URI} !^/pub/ RewriteCond %{...
user avatar
1 vote
0 answers
33 views

cannot select any menu in backend - site is always loading

I can login into my backend but when I try to select any menu in backend nothing will happen. I notice that when I login in backend the website is always loading. Here the errors of the console: Hope ...
user avatar
0 votes
2 answers
33 views

Unable to Login to Magento 2.4 Admin Page in localhost

As the title states, I am unable to log in to the default admin user in Magento 2.4 after installation using composer. I have tried changing the password through PHPMyAdmin using the following command:...
user avatar
0 votes
0 answers
11 views

Knockout - removing automatic focus from an input

in my project I have a UI Component written in knockout.js. The problem I've encountered is when overwriting ui-select.html even though I don't have any action anywhere that would cause this, when ...
user avatar
  • 27
0 votes
1 answer
14 views

Sample code for Magento 2 Modal popup

I Request you to provide the sample code for magento2 popup modal. I have tried with magento Ui library and its not working
user avatar
0 votes
0 answers
15 views

Component Structure in Magento PWA Studio

I have installed PWA Studio successfully. Now i want to override default PWA Component. Say example i want to modify contact us page. I found that PWA component from node_modules/@magento/venia-ui/lib/...
user avatar
0 votes
0 answers
12 views

Magento 2 Order states & status

Good day, im currently stuck in a situation with the Magento2 order states & status. I want to create the following workflow: New Order comes in (Payment in advance / Bank transfer): Should be ...
user avatar
0 votes
0 answers
13 views

Cart Tax rate Calculation Issue

I am using Magento 2.4.1. I have created a tax rule of reduced 2.5 % on a product basis. I have added a product having a price of 1 and quantity of 10, normally tax rule should calculate 0.25 as tax ...
user avatar
  • 121
0 votes
1 answer
27 views

Add registration form during checkout

Magento provides a registration step at checkout only if Guest checkout is disabled. Is there a way to show the registration form with Guest checkout enabled?
user avatar
  • 101
0 votes
0 answers
8 views

Magento 2 : UTM params are not passed in the checkout/cart URL In Abandoned Cart Email button

I am using the Magento 2.3.6 instance for my live website. I've used Mirasvit's Follow Up Email for Magento 2 extension to send Abandoned cart emails to my customers. My store sends Abandoned cart ...
user avatar
0 votes
0 answers
33 views

How to add pdf in mail in Magento 2.4

I need to add pdf with email. I followed some forums but nothing works. Here is my code.By my code only template variables are coming but pdf attached in the form is not coming in the mail. When i use ...
user avatar
  • 29
0 votes
1 answer
12 views

Category name not appearing on backend

I am using Magento ver. 2.4.4. Facing issue with category. The category names are not appearing in name field on backend. How to fix this issue?
user avatar
  • 53
0 votes
1 answer
17 views

shopping cart images not showing

Running magento 2.4.4 w/ Nginx and varnish. Everything works well except images on my shopping cart are not showing! I set the permissions of my files correctly. When I check my source it says this: ...
user avatar
  • 103
0 votes
1 answer
27 views

DB query to get the stock status in magento 2.4.4

Get the product stock status in Magento 2.4.4 using the DB query
user avatar
  • 1
1 vote
1 answer
26 views

How do I get all option value id's for a given attribute in a specific category in my custom block?

My shop has an attribute manufacturer. This attribute has option values like adidas and nike etc. I have a custom module with a block I placed the block on a specific category through a widget The ...
user avatar
  • 1,270
0 votes
1 answer
21 views

IP address banned due to Magento SPAM mails. Need solution for this

What happens after a website gets spammed like mine (17,000+ bounce back emails) and 170000+ fake users which means 170000 emails were sent out over a year. Now IP address seems banned by some big ...
user avatar
  • 3
0 votes
0 answers
17 views

How to edit html block element to a form element? magento 2

Add FieldSet in Ui Rename category true true true 1 ...
user avatar
0 votes
0 answers
9 views

Custom Module : "Product is not compatible with Page Builder" get error when upload to marketplace

I'm submitting my custom Maintenance Mode module in the marketplace but they are giving me error as below, Product is not compatible with Page Builder - Version 2.0.0 claims to be compatible with Page ...
user avatar
0 votes
0 answers
11 views

Replacement for GuzzleHttp\UriTemplateFactory?

I have a plugin (for Magento 2.4.4), it is using the following class "GuzzleHttp\UriTemplateFactory" but "UriTemplateFactory" is deprecated and removed from Guzzle. Looking for a ...
user avatar
  • 3
0 votes
1 answer
17 views

how to add special characters when adding new products in magento 2

I want to add a new product with a URL with special characters and capital letters. Example: default URL Magento domain.com/product-url.html The thing I want Example domain.com/Product,Url(New-Url)....
user avatar
0 votes
0 answers
14 views

List all pickup locations w/o Distance Priority Algorithm

is it possible to have a custom module to list all pickup (Stores>Inventory>Sources) locations in the checkout for In-Store Delivery method (not to rely on Distance Priority Algorithm)?
user avatar
  • 15
0 votes
0 answers
12 views

Magento2: I want to use the CDN for product images but when giving the images path in CSV it storing 404 in database

I am using CDN to store the product images. For this i have added the CDN path(test.com) in General -> Web -> Base URL for User Media Files Now when I have added the CDN images path in CSV as: ...
user avatar
0 votes
0 answers
14 views

[Magento][2.4.3] Deduct source item on refund

I have config MSI for my store and I have some problem. When I call api /V1/invoice/:invoiceId/refund to refund my order with payment type is online payment (ex: paypal, ATM..) after refund success, ...
user avatar
0 votes
0 answers
15 views

Button click event

I am looking for a jquery script that will run whenever any button is clicked. The button can be any. Once the script is completed then the button will continue to work as normal. I just want a Jquery ...
user avatar
0 votes
1 answer
19 views

Scripts and Stylesheets wont accept script?

Magento 2.3.3 I am inserting a script into the scripts and stylesheet section of my shop. As soon as there is a <script>...</script>, it wont add it. If I add the script without the ...
user avatar
0 votes
0 answers
19 views

How to attach pdf to mail in magento 2.4 and above

I have a form with upload file button. Once the customer submit the form i need to send mail to admin with user attached pdf.I tried different sollutions but nothing works. How to add Attachment is ...
user avatar
  • 29
0 votes
1 answer
17 views

composer update failed with "Failed to set PHP CodeSniffer installed_paths Config"

New to magento I wanted to upgrade my Magento to 2.4.4 . Using php 7.4 with Ubuntu 20.04 and nginx composer -vvv update I get this: Dependency resolution completed in 0.003 seconds Installing ...
user avatar
  • 103
0 votes
1 answer
20 views

Magento 2 swatches

I'm not good at Magento coding, so bear with me. I want to expose swatches for products with quantity 0 in the product list (changing the text with a ligther color with CSS for example) example: I'm ...
user avatar
  • 3
0 votes
0 answers
8 views

use n98-magerun2 command to audit a special version

I was installed magento 2.2.5 by docker-compose and i want to execute some command using m98-magerun2 , i tried some method but without any result such as :- wget https://files.magerun.net/n98-...
user avatar
1 vote
0 answers
18 views

How to setup magento2 pwa nginx

I have set up Magento backend on eample.com and want to run PWA on subdomain pwa.example.com, I have set up the virtual host in Nginx for both, However, the backend is running but PWA on pwa.example....
user avatar
  • 7,346
1 vote
2 answers
26 views

Category issue after deleting records from table magento 2

I have deleted all records from the "catalog_category_entity" table & then created new some new records manually. Now when I save category then nothing happen. Image for reference. how ...
user avatar
  • 53
0 votes
1 answer
29 views

"Provided countryId does not exist" Error 500

Magento: 2.4.3 Delivery method: In-Store Delivery Stage: "Select Store" dialog in the checkout. corresponding line in the log: [2022-05-06 11:50:34] main.CRITICAL: Report ID: webapi-...
user avatar
  • 15