Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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

Magento 2 - Get disabled product by sku

I try to get disabled products by sku. These products are not in flat table, so I can't use collections to find them. I tried some methods to find products, but it doesn't work Magento 2.3.2: ...
0
votes
0answers
6 views

Don't show custom entity option “catalog_category” in magento import section

I am creating a custom module to import export categories in Magento 2. This module will use cron to import categories from a file. I don't want to show this option in Magento import process. This ...
0
votes
1answer
11 views

I can't open admin url and store url

I've successfully installed Magento on WAMP server but I can't access admin panel and store.
0
votes
1answer
9 views

Syntax error or access violation: 1118 Row size too large Reindexing

I am facing : SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, ...
0
votes
0answers
7 views

Entities are not set while importing products in magento 2 after creating custom import export module

I need to import products from third party ERP to Magento 2. For this I am developing an extension that does the following tasks: 1. First fetches products from ERP and saves to custom tables in ...
0
votes
0answers
10 views

Shipping step on checkout not visible

For some reason the first checkout step "Shipping" is not visible. I checked all settings, but was not able to find the solution. Thanks for any hint.
0
votes
2answers
17 views

Admin is returning a 404 on styles.css and theme.js on Magento 2.3.3

The backend of my Magento installation is not loading CSS/JS. I have reached a point where I just cannot work out why this is happening and hoping that someone might have an idea. This is what I am ...
0
votes
2answers
15 views

Magento 2 Observer class print event data

I want to preview all the details inside the object such as Order, Customers after saving the event. I tired below way but it not printing the object inside attributes.... Customer Object Magento\...
1
vote
1answer
23 views

Dynamic element in system.xml field

I have a list of elements printed with a field type='checkboxes' but when I try to save only one of the results saved. As a solution to this problem, we tried to print each element with a checkbox ...
0
votes
0answers
11 views

How to access attribute base_subtotal in conditions in Salesrule

How to access attribute=base_subtotal in conditions in Salesrule in condition serialized column?
0
votes
0answers
17 views

Sort attributes in layered navigation. M2

I'm trying to sort options of attributes in alphabetic order. For example we have attribute "color" and there is options: 1) attr 2) bttr 3) attr2 I need to sort this options like: 1) attr 2) ...
0
votes
1answer
25 views

Adding scripts to head magento 2

So I found that you are able to add any script to the head tag of your Magento 2 site via the Magento 2 interface content->configuration->html head-> scripts and sheets. I've added a: <...
0
votes
1answer
14 views

How to add og tags for facebook

I want to add of tags for facebook social media in Magento 2. So I do not know by where I can add this from code. Please help me to figure out this.
2
votes
1answer
17 views

Magento2: How to filter collection by created_time from custom table in admin grid

I need to filter custom table collection in admin grid. I'm struggling with this. Please suggest for this. Here is my code namespace Abc\Mkt\Model\ResourceModel\Logs; use Magento\Framework\Model\...
1
vote
0answers
41 views

Magento 2 Add attachment not working for multiple store

I am trying to send an attachment with Order success email. I have 2 store default and custom. In default store attachment is working perfectly but in custom store. Email not sent. After debugging I ...
0
votes
0answers
7 views

How can i create my own visual merchandiser like Amasty visual merchandiser for Meta tags urls(Amasty) Magento 2

I am using Amasty Visual Merchandiser, so I can access the Visual Merchandiser Catalog->Categories->Go to any category -> Select Products Merchandising I also need to provide this Merchandising ...
0
votes
0answers
8 views

Please An error has happened during application run. See exception log for details magento2.32 bitnami

I installed my magento via .. bitnami-magento-2.3.2-2-linux-x64-installer .. and I put a folder app in apps/magento/htdocs and put app to replace the root .. and now see this error: An error occurred ...
0
votes
0answers
12 views

Magento 2 Custom Module grid search not working

I have created a custom module in Magento 2, but its grid search is not working. I tried to search one keyword but it keeps loading. here is my code. <?xml version="1.0" encoding="UTF-8"?> <...
0
votes
1answer
20 views

EAV indexer optimization: cannot find option

There is a section in the Magento 2.3 documentation that is titled EAV indexer optimization. It says that you should basically disable the EAV indexer, if you are not using a MySQL based search ...
0
votes
1answer
20 views

Code Sniffer Results: The use of function exec() is forbidden

I uploaded new version of extension on Magento Marketplace. And I've got Code Sniffer error during technical testing: The use of function exec() is forbidden severity : 10 Line : 441 Column : 17 ...
0
votes
2answers
17 views

Changing time / date format on order grid (or all grids)?

I found no way so far to change the date / time format on the order grid (or even better all grids where its relevant). I guess some XML magic is required here. Please take a look at https://prnt.sc/...
1
vote
0answers
14 views

How to bulk import products with images into Magento 2 from CSV file

I'm sitting with Magento 2.3.3. I have a CSV file with some products but when I import the products no images are attached. My imported fine, but when I press Import I get the error message "...
1
vote
1answer
17 views

How to make a form and submit datas using popup modal in magento2?

When a user clicks the open modal button the popup modal opened correctly. I want a form in a modal and save the data into the database. please, anyone gives the solution.
0
votes
0answers
21 views

Uncaught Error: Call to a member function getAttribute() on string

$ruleId = $this->coupon->loadByCode($couponCode)->getRuleId(); $rule = $this->saleRule->load($ruleId); if($rule->getConditionsSerialized()->getAttribute()=='...
0
votes
0answers
21 views

Upgrade schema not running in one environment

This is a really odd one I haven't come across before and can't seem to find anyone else saying they have come across it either (no ticket with Magento I can find either). In one environment only ...
0
votes
2answers
56 views

Magento 2 :How to restrict add to cart quantity limit?

I want to set a restriction for add to cart e.g customer only able to add 1 qty for a single product at a time. I just want to set a limit on qty so the customer is not able to add more than 1 qty ...
0
votes
0answers
21 views

How to Hit custom form data in postman?

Form Url = domainname.com/checkservicestatus In the Magento form, there is only one field service number. And it is redirected to the same page after submitting the service number. Form action in ...
0
votes
0answers
14 views

Magento 2: How to add the ID column under the CSV file while exporting Products

I have to add the entity id in the CSV while I export the products. How can I perform such a task in Magento 2
0
votes
1answer
24 views

How to format date and price in grid ui-component Magento 2

I want format start date and end date to dd-mm-y, offer price to xxx,xxx.xx My column <column name="start_date"> <argument name="data" xsi:type="array"> <item name=...
0
votes
1answer
24 views

How to properly create mixins in Magento 2 JS?

Hi I'd like to know what is the best way to create mixins in core required-js. Instead of copying this files to working theme and make changes: vendor/magento/module-product-video/view/frontend/web/...
0
votes
2answers
18 views

Magento 2: Multistore with the same domain

I want to have many sites with the same domain, for example, example.com/site1, example.com/site2, and so on... This is what I've done by far: 1- Change base URL of the site for example.com/site1 2-...
0
votes
0answers
13 views

How do I customize Zemez Themes? [on hold]

My company bought a theme from Zemez and I have no clue how to arrange icons, create another hover menu button, etc. Is there a step by step guide on how to even use code with Magento ?
0
votes
1answer
21 views

How can I make the logo a link to the home page?

I cant find the option to make it possible to click on my site's logo and direct myself to the homepage.
0
votes
0answers
5 views

need help to revert back to default file permission magento2 aws

After giving 777 permission website not working I think issue with file permission ,can you have a look ,let me know what to do next to bring back to default permission Installed on aws ,rds,
0
votes
0answers
6 views

How can I display a static block as the second search result in a product search

I would like to incorporate an html block to serve as a banner as the second search result when someone searches for a product on my site. Example: User searches for shirts result 1. Red Shirt 2. ...
0
votes
0answers
7 views

How getEntities() function is getting values from in magento2 import export module

I am working on creating a custom extension for import export in magento2. For that I was going through magento2 import-export module. I found a function in file /vendor/magento/module-import-export/...
0
votes
0answers
20 views

Where can I restructure the html for the magento 2 product view page?

I am trying to theme my product view page but I cannot find the correct file to override in order to pull in all of the data where I want it. in my /app/design/frontend/theme/Magento_Catalog/...
1
vote
1answer
29 views

Not able to move “Porto” theme top links under header content (After search) in Magento 2.3.2

I am using Porto theme (header Type 1) with Magento 2.3.2 setup. I want to move Top Links section elements i.e : Sign in, Currency etc under the header content after the mini search bar. Here is the ...
0
votes
0answers
7 views

Magento2: Issue with payment module

We use Dotpay payment module for Magento 2. When customer placing an order and add address in format example: street 23/1 then can finalize payment. But when customer add address in format street 23A/...
0
votes
1answer
23 views

Developer mode enable js merging

I searched for an answer, but I didn't find one. I like to enable js merging and compressing in Magento 2 developer mode. Is this possible? I enabled them in admin, but the merging is not working
0
votes
0answers
15 views

Magento2: Issue with in stock | out of stock

Sample: I am created a configurable product with sizes 42,43,44,45,46 so after save this product have: Main configurable product = 0 pcs = in stock Simple product (sizes assigned to configurable ...
0
votes
1answer
34 views

Magento 2: How to display the all product review and rating on Home Page?

How to display all product reviews and ratings on the home page like below image?
1
vote
0answers
27 views

Magento2 - How to add comment for each item in cart page

In Magento 2, how to add meta information in cart item (order comment) add in each item quote during add to cart ? If any one has idea about this let me know. Thanks.
0
votes
1answer
28 views

Minimum hardware requirenment for magento 2

What should be the minimum configuration of the system (Laptop or PC) to run Magento 2 smoothly ? specially processor (Intel).
0
votes
0answers
16 views

display specific error message on coupon code instead of coupon not valid

how it is possible to get the reason that a coupon code is invalid? For example, if I have a shopping cart rule that specifies that the order subtotal must be Rs1000 or more, and the user tries to use ...
0
votes
0answers
14 views

Magento 2 - ERR_TOO_MANY_REDIRECTS on Frontend - Sporadic

I am facing an issue where the storefront throws ERR_TOO_MANY_REDIRECTS error once or twice a day. It does not follow any specific time pattern. To fix this, all we are doing is to just refresh FPC ...
1
vote
1answer
24 views

Logo and images not shown in gmail accounts magento 2

I getting issue about for displaying images and logo in gmail account when i send email to customers through magento2 then logo and images are not shown why because of the reason I search a lot to ...
0
votes
0answers
19 views

add colum to products grid

I'm trying to achive very similar to this article How can I add a column to Category -> Category -> Products in Category grid in magento 2 I have managed to add my column but the results in ...
0
votes
0answers
16 views

How to add custom text/small images under the product details page's price

I wanted to add custom text and images under the product detail page's price text. I searched a lot about that and tried what was explained but getting failed and other solutions are not working ...
1
vote
1answer
29 views

Magento2 tab jumping on Top

I have followed Mage documentation from Magento official website on clicking it's jumping on top: I am using 2.3.3, any way to stop jumping? <div class="product data items" data-mage-init='{"...