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

Why do I still need to regenerate static content in developer mode?

I've noticed that in developer mode whenever I enable an extension, or a theme, I will have to regenerate the static content. Here's an example of such a case. According to the magento 2 ...
0
votes
2answers
20 views

Magento 2 : Unable to load theme by specified key

I am facing the error some page of frontend. I have tried all solution but issue is still there. tried Magento 2 theme giving error Unable to load theme by specified key: 'Yogesh/mytheme'. ...
0
votes
0answers
8 views

Payment API for mobile App

We are planning to develop native apps for magento2 website.Currently we're using paytabs as payment method no other options for now. Here's module if you want to take a look. Module it self using ...
0
votes
1answer
14 views

magento 2 product page gallery images not showing

I am facing issue with gallery images I have images in backend but not showing in front-end product page gallery slider I have checked there is no error in the console.
0
votes
2answers
23 views

Remove block from Product Page in Magento 2

I want to remove right side block from product page. See https://prnt.sc/r5mlfi How can i remove this? What is the name of this block? <referenceContainer name="content"> <block ...
0
votes
0answers
4 views

Magento2 Import csv without required attribute like attribute_set_code and product_type

Magento2 Import CVS without required attribute like attribute_set_code and product_type Note: we can add run time while CVS running
0
votes
2answers
26 views

Magento2: Create Module without Controller

How to create a simple module like HelloWorld in Magento2 without controller
0
votes
0answers
4 views

Updating Option in Select Based on Another Select in Dynamic Row

i have a Feildset of Dynamic Rows having columns Select1 Select2 The Optiona of select2 are dependent on value of selected value select1 Exampla if selected value of Select1 is select1Value1 ...
0
votes
0answers
10 views

Magento2: Display 3 level menu on hover of level 1 menu

I want to display 3rd level submenu once we hover on 1st level menu. Like if I hover on WOMEN then Tops sub-menu auto shows. The file I assume for the menu is: /var/www/html/magento233/lib/web/...
0
votes
0answers
8 views

How to code Magento 2 enterprise's default pagebuilder as responsive (mobile friendly)?

As part of one of my Magento 2 enterprise projects, I need to enable the admin user to customize the page layout (responsive layout) using the page builder. For desktop, it could be done pretty well ...
0
votes
0answers
15 views

Error: Nesting error: image_url vs. image_url

Getting below error when enable welt pixel search optimization(https://www.weltpixel.com/magento-2-speed-optimization-advanced-js-bundling.html) module in my website: Error: compiler.js:217 ...
0
votes
0answers
13 views

Error While Upgrading Magento2.1 to Magento 2.3

while upgrading Magento run command composer update error shown :
0
votes
1answer
27 views

How to add Additonal charge on COD in magento 2

Hi i am looking to add an extra field here in cod and also i want to charge extra 100 rs/- handling fee but dont know how to achieve this anyone had ever tried this kindly please provide some solution ...
0
votes
0answers
9 views

Configurable product images not always switching when changing options

I want to create configurable products but I have a small issue I would like to fix. I have two attributes, one color swatch and one graphical swatch with sizes. Each combination has it's own images. ...
0
votes
3answers
33 views

Call to a member function get() on null

I am new to magento 2 and i have tried to get the store id. Here is my code simplifyed: class Mage{ private static $_objectManger; public function __construct( \Magento\Framework\...
0
votes
0answers
13 views

No output from catalog/view/frontend/templates/category/description.phtml in M 2.3.4

We don't get any category descriptions on category pages in Magento 2.3.4. The /vendor/magento/module-catalog/view/frontend/templates/category/description.phtml file is loading in frontend (see ...
0
votes
1answer
19 views

Magento 2 - Update modules without shop throwing exception

I upgraded my modules by calling composer update, then my shop was going offline with the message: Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory. ...
0
votes
1answer
13 views

Interceptor Plugin for Product Attributes

I'm trying to modify the "short_description" attribute using a plugin but I can't seem to get it to work across the whole website. I can do this on the product view page with the following but I don't ...
1
vote
0answers
17 views

Magento 2 pub/static/_cache/merged files are not created

Magento version 2.1.9 Trying to deploy the website results in strange JS and CSS errors. With the configuration of: dev/js/merge_files = 0 dev/js/enable_js_bundling = 0 dev/js/minify_files = 0 dev/...
0
votes
1answer
24 views

How to check if duplicate meta title present for category in Magento2

I am generating a report for the categories with duplicate Meta titles. I have loaded all the categories and checking conditions one by one like below with the direct MySQL queries. $connection = $...
0
votes
0answers
14 views

Integrity constraint violation while Cusotmer Registration with Magento2

I am facing some issue while more than 2-3 customer are register at a time. I got below error. SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key ...
0
votes
1answer
17 views

Magento 2 how to move default.html from base folder to custom theme folder

I have created Magento_Catalog folder in custom theme and moved template files there which are working fine. Now i want to move the files from module-catalog base folder to custom theme ...
0
votes
1answer
28 views

including external js library showing error in console in magento 2

I am getting error in the console after including the external js file like this in default_head_block.xml
0
votes
0answers
21 views

In customer edit page from backend in shopping cart tab why all quote display if customer hasn't any item in their cart in Magneto2?

If customer hasn't any item in their cart, from the backend customer edit page ->shopping cart all the quote display. what is exactly this?
0
votes
2answers
53 views

Admin url redirects to base url

I have the url which is www.synergoshop.in and when I try to access the admin which is configured in env.php as admin123, but it redirects me to www.synergoshop.in instead of loading the admin in www....
0
votes
0answers
16 views

Magento API Report place order Error: Uncaught TypeError: DateTime::__construct() expects parameter 1 to be string

When i tried to place an order there is an api error report error that saying: Fatal Error: 'Uncaught TypeError: DateTime::__construct() expects parameter 1 to be string, object given in \/var\/www\/...
0
votes
0answers
14 views

Error Resize Image after Migrating from Magento 1.9 to Magento 2.3.4

I just migrated from Magento 1.9.3.8 to Magento 2.3.4, then i copied the image from Magento 1.9 media to Magento 2 media, i noticed product images still not showing in my Magento 2 frontend, then i ...
0
votes
2answers
21 views

Layout Update XML for Category in Magento 2.3.4

Can anyone help me how to change number of products per page for a SPECIFIC category. I am on magento 2.3.4 and noticed that Layout Update XML does not exist anymore.
1
vote
2answers
32 views

M2: How to get total stock qty

I will try get total stock product qty. I use this below code: <?php echo "Total qty: "; ?> <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
0
votes
1answer
15 views

Magento2: Catalog PDF generator out of stock products

We use free extension pdf catalog generator. https://snm-portal.com/pdfpublication-templates But this extension generated all products also out of stock. Code is full open source. Any one help how ...
0
votes
1answer
31 views

Magento 2 showing category in homepage with products using enable/disable attributes

How to get the all custom category on homepage with products. I want to create these types, Please check screens-short:- https://prnt.sc/r5b2q5 Showing this category:- Above category showing this ...
0
votes
0answers
18 views

Magento 2 custom modal Close button redirect to footer

I have a custom modal in Magento 2 , using knokoutjs. This modal has a Continue Shopping button : 'buttons': [ { text: 'Continue Shopping', click: function () { ...
-1
votes
0answers
15 views

Magento 2.3.3 Serialization failure: 1213 Deadlock found when trying to get lock

I encountered this problem. When deleting records only in which status = 'error' from cron_schedule table occur such issue: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to ...
0
votes
0answers
22 views

Class does not exits - issue on Magento 2

This is my error that i receive on the production server: [2020-02-20 14:43:34] main.CRITICAL: Class Mynamespace\Mymodule\Ui\Shipments\PrintAllButton does not exist {"report_id":"...
1
vote
0answers
22 views

Page template is not appearing in admin front end

test.xml <?xml version="1.0"?> <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd"> <...
0
votes
1answer
14 views

Where is the source of the following text inside the documentation?

On the DevDocs https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/css-topics/using-fonts.html Link, there is the following text bellow the mixin example: @font-display: swap is declared by ...
0
votes
1answer
23 views

Magento 2 customer can't log in but I can

My customer reported me, that he can't log in to shop because he's s getting almost blank page: I tried to log in as customer using my account and had no problem with this. But my customer was saying ...
0
votes
2answers
27 views

Magento 2 - overriden class extending overriden class not working

I have overriden the class Magento\Catalog\Block\Product\ProductList\Upsell with my own Company\Base\Block\Product\ProductList\Upsell. The class Magento\Catalog\Block\Product\ProductList\Upsell ...
0
votes
0answers
13 views

Magento2: Catalog PDF generator

We have install free extension catalog pdf geenrator: https://snm-portal.com/magento2-pdf-publication.html movie with issue: https://streamable.com/h4g99 But in tab "Templates" we get issue: https://...
0
votes
0answers
20 views

Magento 2.3.2 - Last 5 orders on Dashboard showing empty on total column after migrating database from osCommerce

I am facing issues on the dashboard at the Last Orders section, as the total column is showing empty. The same code is running on my local server without any issue, but not working on the live server ...
0
votes
0answers
20 views

how to remove Container and Template form widgets layout update field?

As Shown Image Want To Remove Container And Template
1
vote
2answers
27 views

'value' is not expected in 'text' UI component

I try to add text item to adminhtml UI component as described in docs: <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
17 views

Create CRUD operations for a specific product attribute

Is it possible to create a CRUD operations just for a particular product attribute options . Say in the above Screenshot, I have generated some output in the product edit page using phtml . I need to ...
0
votes
1answer
26 views

Convert HTML Into Array In Magento2 Controller [closed]

How to convert HTML data into Php Array in magento2 Controller? <!DOCTYPE html> </HEAD> <BODY> <FORM action="***" method="POST" id="**" name="***"> <input type="...
0
votes
0answers
37 views

UI component Filter with category collection Magento2

I am implementing Grid for categories collection using UI component. I have used the following code Vendor/Module/view/adminhtml/layout/vendor_index_index.xml <body> <...
1
vote
0answers
19 views

Magento2 - How to get estimate shipping rates for guest users using js?

I have followd this link to get estimate shipping rates, its working fine for logged in user. But I need to implement this with guest user as well. I have changed service url for guest user as ...
0
votes
0answers
25 views

Magneto 2 : remove attribute from particular configurable product programmatically

ex. I have a configurable product id X having attributes like color, size, material,A,B,C etc. and I want to remove attribute C from the product X. and also remove from every linked products with X. ...
0
votes
0answers
22 views

getItemById not returning the correct data

I'm trying to get the quote_item table attribute 'name' of my product inside my cart view. So I extended the default block used for the cart template and modified the template accordingly. But when I ...
0
votes
1answer
25 views

Checkout shipping summary doesn't display Region name at checkout page

In checkout page sidebar, there's a block that displays shipping information, based on the shipping address that customer uses. The file that displays it is vendor/magento/module-checkout/view/...
0
votes
1answer
19 views

Magento 2 - change block class in layout

I know I can change the template of a block with: <referenceBlock name="copyright"> <action method="setTemplate"> <argument name="template" xsi:type="string">Dfr_Backend:...

1 2 3 4 5 752