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

Error while sorting products in category

I'm facing following error when I try set sort for the products in category : " Something went wrong while saving the category. " Notice: getimagesize(): read of 8192 bytes failed with errno=...
user avatar
0 votes
2 answers
29 views

Override ShippingMethodMangement.php

I need to override this model but <preference for="Magento\Quote\Model\ShippingMethodMangement" type="Vendor\Module\Model\ShippingMethodManagement" /> in di.xml is not ...
user avatar
0 votes
1 answer
18 views

How to move breadcrumb to below main menu in custom module in magento 2

I created breadcrumb using layout.xml file but when i am go to that page breadcrumb is coming at the top of the page. what i need is below the main menu. <referenceBlock name="breadcrumbs"...
user avatar
  • 33
0 votes
0 answers
14 views

Merge muti-website into single website in magento 2.4

I want to merge two stores into a single store in Magento 2.4. Can anyone have an idea about it and what steps need to be taken before merging? Thanks in Advance
user avatar
0 votes
0 answers
11 views

why Configurable product is showing in product list when all color and sizes are out of stock?

in configurable product when color and sizes of the product is not available ,why that product showing?I want to hide them,please help in doing this.
user avatar
1 vote
0 answers
28 views

I am trying to downgrade from EE to CE

In doing so I am getting this error. Check someone guide me how to solve this? SQLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and ...
user avatar
  • 3,446
0 votes
1 answer
14 views

Magento 2: Print invoice in multiple languages for the same store

I have a multistore. One is in English and the other one is in Arabic. The invoice gets printed in the particular language depending on the store. I want to print the invoice in English and Arabic ...
user avatar
0 votes
0 answers
13 views

Magento2.4: What is the proper/best approach to debug a module?

I want to debug a Custom Consignment Module, what steps should I follow to debug that module, like using debugger are there any other ways of doing that? thanks in advance.
user avatar
0 votes
1 answer
21 views

How to add additional field to the Admin side Order checkout form Shipping address in Magento 2.3

I want to add an additional field to the Create New Address filed list in the admin create order section. I could not find the template corresponding to that. How can I overwrite and what is that ...
user avatar
  • 11
-2 votes
1 answer
15 views

How to solve this error ? menuAim is not a function

Error: at HTMLDocument.<anonymous> (mega-menu.js:41:28) at fire (jquery.js:3238:32) at Object.fireWith [as resolveWith] (jquery.js:3368:8) at Function.ready (jquery.js:3588:14) ...
user avatar
0 votes
1 answer
16 views

Discount amount is not showing in Summary

I am having an issue here. After applying discount, the amount is not showing in Summary on Checkout .
user avatar
0 votes
0 answers
13 views

URL key is not working magento 2

I changed the url key but is giving 404 error. It is automatically generating url based on product name. I also run the command reindex and cleared the cache but still problem exists.
user avatar
  • 1
3 votes
1 answer
69 views

getFullActionName() returning __ on CMS & Category Pages

Anyone noticed that if you observe the event controller_action_predispatch in Magento 2.4.4 public function execute(Observer $observer) { $request = $observer->getEvent()->getRequest(); $...
user avatar
  • 4,632
0 votes
2 answers
23 views

getFirstItem is not working on collection while getData returns an array

getFirstItem is not working on a collection while getData returns a row. $product_obj = $objectManager->create('Magento\Catalog\Model\Product'); $productCollection = $product_obj->...
user avatar
0 votes
1 answer
12 views

Implement appointment slot booking with payment option

I'm trying to implement an appointment slot booking system where people can simply pay and start chatting/calling with a professional. What I mean is that on a particular page there would be a list of ...
user avatar
0 votes
2 answers
55 views

Magento 2: Open Popup Modal on Button Click in Admin Grid

UPDATED I'm using Magento 2.4, I want to open a popup modal to display some info, currently, when I hit the button I am redirected to phtml file but I want to open a popup on the same page. I have a ...
user avatar
0 votes
1 answer
20 views

magento-patches: Permission denied

Magento 2.4.3 Installed quality-patches via composer require magento/quality-patches Trying to apply a patch via ./vendor/bin/magento-patches apply MDVA-40311 Getting error: ./vendor/bin/magento-...
user avatar
  • 15
0 votes
1 answer
13 views

LiteSpeed crawler - wher put file

https://docs.litespeedtech.com/lscache/litemage/crawler/ I need to run crawler but im not sure, where I should put this file M2-crawler.sh This should be in root magento folder?
user avatar
  • 2,074
0 votes
0 answers
16 views

google recaptha error

Following error loged in senatory:- Error: Script error for: //www.google.com/recaptcha/api.js?onload=recaptchaOnload&render=explicit http://requirejs.org/docs/errors.html#scripterror I have no ...
user avatar
0 votes
1 answer
30 views

How to generate Multi-Language invoice and email

I have a multi-language store and I need to generate my invoice in 2 different languages in a PDF and the invoice email should also have both the languages. How can I do that.
user avatar
0 votes
1 answer
23 views

Magento2 : Admin dashboard keep showing login form

I have set staging database to local setup. Frontend is working good. For backend after login dashboard url is shoiwng http:// xyz . com / admin/admin/dashboard/index/key/...
user avatar
0 votes
0 answers
14 views

How magento decide to print a widget

I have 3 widgets on my category page My issue is that the faq one is always getting in last position, ignoring the sort order defined in backoffice (Probably because it's a custom class). In order to ...
user avatar
  • 772
1 vote
0 answers
13 views

How to we can send Coupon Code For Next Order Discount in Magento 2.4.0?

I want to send Coupon Code for Next Order Discount. When any customer will place an order then customer will received a unique Coupon Code For Next Order. anyone have an idea how to i'll do this ?
user avatar
0 votes
1 answer
29 views

Magento 2 saving wrong data to the Database

I have a custom table for company with a column : sales_representative_id // print_r($company->getSalesRepresentativeId());exit; $this->sellerCompanyService->createCompany($company, $...
user avatar
  • 11
0 votes
0 answers
33 views

Multi-factor authentication: not verified Magento Cloud Setup in Localhost Ubuntu

I'm trying to set up Magento commerce cloud in localhost, I have to Enable the SSH key and added it to the Magento Cloud also, but when I run this command it gives an error, magento-cloud ssh-cert:...
user avatar
0 votes
1 answer
21 views

How to create an attribute with Global Scope in Magento 2.4.3?

On Admin Panel I need to create a sub-menu in Configuration that has a page. On that page I want to declare a global attribute and add a field that takes the values for this attribute.
user avatar
0 votes
0 answers
7 views

Separate carts by store group

I've been operating a multi store group website for the past two years (Magento 2.4.1). Each store group has 2 store views (one in our native language and another in english). Store Group 1 -- Store ...
user avatar
  • 1,107
1 vote
1 answer
22 views

Table Rates Shipping - UAE States Code issue

I am adding Custom shipping rates according to state of UAE in Table rates shipping method. But getting an error because region or state is incorrect. anyone have idea which is correct region/state ...
user avatar
1 vote
0 answers
32 views

Magento 2 : The shipping method is missing. Select the shipping method and try again

There is an issue with the checkout page. On the checkout page, when i fill the shipping address then select the shipping method and click on the next button it redirect to the payment page. But when ...
user avatar
  • 361
0 votes
2 answers
15 views

How can i show discount label on category page on products if there is special price?

I want to show discount label on category page on a product if there is special price.
user avatar
0 votes
3 answers
34 views

How can I show label on product if saleable quantity is zero?

I want to show lable :"out of stock" on product on category page when saleable quantity is zero.
user avatar
0 votes
2 answers
35 views

changing root: No input file specified

I'm using Apache 2.4 server from Godaddy. However I want to change the root of my domain to be pub instead of public_html. I've follow the method in the following link : https://webfiredesigns.ca/blog/...
user avatar
0 votes
1 answer
41 views

Preference not working in Magento 2.4.4 enterprise edition

I want to override Magento\Catalog\Model\Product\Gallery\CreateHandler into the custom module. Imgix/Magento/adminhtml/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://...
user avatar
0 votes
3 answers
38 views

Get current Date and time on frontend

Problem: After a long time of research, I have stuck to find it's the solution I applied the following code but it didn't work. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
user avatar
1 vote
2 answers
120 views

Magento 2 : Create a JOIN

I am trying to display a report which GROUP BY : SKU and Subsidiary. So instead of displaying each RMA in different rows, I am trying to display Filtered Report, Group by SKU and 2nd group by ...
user avatar
  • 58
0 votes
0 answers
14 views

Magento 2 : import product into grid

Here is import button, When i click import button, add this sku product (test-sku) into item ordered grid Drop your answer or suggestion.
user avatar
0 votes
0 answers
16 views

How to create dynamic field in form depend on attribute code?

I have several attribute code with some options for each. AttributeCode select type brand - with options: adidas, nike AttributeCode select typemanufacturer - with option: pepsi, cocacola, 7up. When ...
user avatar
1 vote
1 answer
41 views

How to load extension attribute when an order is loaded using the OrderRepositoryInterface?

I am suppose to: Load extension attribute when an order is loaded using the OrderRepositoryInterface. Implement functionality to save extension attribute data when an order is saved using the ...
user avatar
0 votes
1 answer
28 views

How can I intercept a sale order created from within the admin panel in Magento 2?

I need to write data to an extension attribute after the order is created from within the admin panel. The extension attribute is the admin user's first and last name. How do I intercept this the ...
user avatar
0 votes
1 answer
15 views

How to intercept customer order in Magento 2?

When an order is submitted, I need to write data to extension attributes. I need to either create an event observer or plugin. How do I do this the right way?
user avatar
1 vote
1 answer
51 views

Magento 2.3.7 developer mode : I need to regenerate my static content all the time

Env : Magento 2.3.7 PHP 7 VM on Linux I'm facing an issue : my instance of Magento 2 is in developer mode. But I need, all the time, to redeploy static content (like JS and CSS ; with -f argument) ...
user avatar
1 vote
0 answers
22 views

Magento 2: After reordering order details are jumbled

After reordering the order from customer account the order details title are being jumbled. Anyone has any idea how to make it correct? Thanks in advance
user avatar
  • 15
1 vote
1 answer
25 views

default stock 2 and default source 1

I'm facing a problem with only one product. when I put Quantity 1 in Default Source. It increase by 1 in default stock it's become 2. when i put it 0 become 0 on both Default Source and default stock. ...
user avatar
  • 29
1 vote
0 answers
15 views

How to create non-modularized language packs

What are the structural differences and how do you create the non-modularized language pack? Per https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/translations/xlate.html#m2devgde-xlate-...
user avatar
0 votes
2 answers
40 views

Add a custom button to Customer registration form on the admin

I want to add a custom button like "Generate a random email", into customer registration form section. "Generate a random email" button will send an email to customer which are ...
user avatar
  • 11
1 vote
0 answers
18 views

How to make a REST call to Magento 2?

I am trying to get going with Magento 2's REST API interface, and I did the following: I made a new "Integration", which gave me the Consumer Key and Secret and the Access Token and Secret. ...
user avatar
0 votes
1 answer
8 views

Turks and 2 Caicos Region ID

One of the customer has the country and state details as below Postal Code-TKCA 1ZZ City-PROVIDENCIALES State-TCA Country-TCA County-TCA I have fixed by assigning country id as TC and region ...
user avatar
0 votes
0 answers
15 views

Attention Something went wrong!! in every admin page

When I login into admin side at that time shows me a popup with "Attention Something went wrong!!" I have installed Magento 2.4.X and my PHP version is 8.1.6 Please suggest me how can I ...
user avatar
0 votes
1 answer
33 views

Magento 2 Admin Error using Mirasvit Push Notifications

Having installed the Mirasvit Push Notification. when I am editing a block in the admin backend, I get the following error in developer tools and I cannot save/update any changes. In Chrome: Uncaught ...
user avatar
0 votes
2 answers
33 views

How to Install different themes for different store?

I just saw this question here: "How to Manage different theme for different store?" and i got a clear answer. Now my question is, how can i choose which theme to install at different storeS, ...
user avatar
  • 1