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
1 answer
8 views

Declaration of \Interceptor::execute() must be compatible with \Detail::execute():

I'm trying to display a simple page, but still getting this error. Fatal error: Declaration of Macademy\Blog\Controller\Post\Detail\Interceptor::execute() must be compatible with Macademy\Blog\...
user avatar
0 votes
0 answers
6 views

Magento Upgrade from 2.3.6 to 2.4.0

So I am trying to upgrade Magento using composer require magento/product-enterprise-edition=2.4.0 --no-update but facing these issues, as everything is satisfiable but still not updating, please help. ...
user avatar
0 votes
1 answer
10 views

Send Custom Data to Controller

I am new to magento 2. I want to send the day and time option selected by user at checkout to my Controller. When the user selects a day and time slot from the dropdown, it gets the value but I do not ...
user avatar
1 vote
0 answers
10 views

Magento Debugging Tools

Can Anyone suggest me the best tools for the debugging in the Magento 2 for free besides X-debugger.
user avatar
0 votes
2 answers
17 views

How debug a Magento module issue started from frontend

I have a Magento 2.3.3 installed with some modules. There is one module that has been uninstalled before still display on frontend. It looks to me either the module could not be uninstalled completely ...
user avatar
1 vote
0 answers
10 views

Issue with category and brand listing

I'm facing an issue with Magento 2.4.x, the website is hosted on CentOS server with MariaDB. I'm facing issues with reindex even after reindexing all of the manufacturers are not listing on the front-...
user avatar
1 vote
2 answers
16 views

Frontend JS get access to attributes?

Is it possible to get Magento attribute values on product page when writing custom java script code? I am working on a frontend script where i need access to the product sku to check some logic i am ...
user avatar
  • 23
1 vote
2 answers
24 views

Magento 2 Upgrade Issue from 2.3.6 to 2.4.4

I am trying to upgrade Magento from 2.3.6 to 2.44 using this link https://magecomp.com/blog/upgrade-magento-version-from-2-3-to-2-4/, Now issue is that Magento 2.4.4. requires PHP 7.4 and Magento 2.3....
user avatar
0 votes
2 answers
9 views

How to create Product with options (Configurable Product) in Magento 2

Hi I am newbie in Magento, I am creating product with options. I am able to create simple product but I am confused with how to create attributes and options. I am explaining myself what I have done ...
user avatar
0 votes
2 answers
12 views

Syntax Error DeploymentConfig Magento2.4.3

syntax error, unexpected end of file, expecting ';'#0 /var/www/html/myproject/vendor/magento/framework/App/DeploymentConfig.php(153): Magento\Framework\App\DeploymentConfig\Reader->load() I am ...
user avatar
  • 1
0 votes
2 answers
17 views

Magento2 admin Menus not working

I have installed Magento2 successfully but there is having some issue on the backend side when i login to the admin side menus not working at all, (frontend is working fine). I have tried all the ...
user avatar
0 votes
1 answer
10 views

Magento2: Country Query is giving the duplicate of regions

I am using the country query to retrieve information about a specific country. When I pass the country code as AU, in the available regions I am getting duplicate values as well as the code and name ...
user avatar
  • 480
0 votes
0 answers
7 views

Problem with salable quantity - negative balance

quantity is +3 but salable qty shown -3. How to restart salable quantity for all products?
user avatar
  • 2,096
0 votes
1 answer
12 views

Magento 2: Generate a HTML or PHP file from controller

I want to generate and download a html or a php file when a controller is called. Any help would be appreciated.
user avatar
0 votes
0 answers
12 views

Magento 2 fake customer order came through with weird code instead of customer name

Just had a fake order come through on my Magento2 website. The address is nonsense and instead of a customer name it had this code: {{var this.getTemplateFilter().filter($order.shipping_address.city)}}...
user avatar
  • 1
0 votes
0 answers
7 views

Catalog Search returns 450 error

Magento Version: 2.4.3 Search Query: https://siteurl/catalogsearch/result/?q=sku The search query works well but sometimes for certain product it returns 450 error. Is there any solution? Please let ...
user avatar
0 votes
2 answers
24 views

Magento2 Jquery Post Form via Ajax

I have a basic html form and what I want is when clicking the submit button to use Jquery and Ajax to post the contents to an external url instead of reloading the entire page. However whats happening ...
user avatar
  • 741
0 votes
1 answer
11 views

sometimes Owl Carousel Slider not working

Now the magento site version is 2.4.3. It's using the owl carousel for banner image and product images. And the owl carousel works well. But sometimes it isn't working. I think it's because the owl ...
user avatar
0 votes
2 answers
11 views

New to Magento phtml code doesn't show

I've been trying to add phtml to my custom theme but it doesn't show for example <block class="Magento\Catalog\Block\Product\View" name="product_view_custom_block" before="-...
user avatar
0 votes
0 answers
9 views

Adding dynamic product content to PDPs

I'm an SEO Specialist working for an eCommerce development agency. One of our clients is looking for way to add valuable content to their product description pages for their storefront. Trouble is, ...
user avatar
  • 1
0 votes
0 answers
10 views

How to create virtual categories by bundle product option with Smile Elasticsuite

I would like to create a virtual category based on the bundle product options. So if the bundle product has the option 'product_X', then the bundle product should be listed. However, if the bundle ...
user avatar
0 votes
3 answers
42 views

Magento2.4.2: How to add product to a given position in given category?

I'm trying to add a product in a given category in given position like in my csv file im giving SKU,Position,CategoryId and i want to add that product in that category in given position Here is my ...
user avatar
  • 204
0 votes
2 answers
13 views

Media url returns nothing in Magento 2

Hi I have a problem with passing an image to a view via WYSIWYG editor. I add the image in the editor, it displays correctly in the editor. Its structure is <img src="{{media url='wysiwyg/...
user avatar
0 votes
1 answer
13 views

Magento 2.4.3-p1 custom sort by option with custom entity id not working

I have created a custom sorting option distance in magento 2.4.3-p1 and sort the collection with custom sorted entity ids di.xml `<type name="Magento\Catalog\Model\Config"> <...
user avatar
0 votes
0 answers
8 views

How can I customize page builder content with material UI?

I want to customize page builder content from magento with material UI. How can I do that ?
user avatar
0 votes
1 answer
16 views

How to get window.checkoutConfig value in html file using data-bind

I made my custom delivery method programmatically. It also appears in the Magento 2 admin config section. It is a multi-select field with values of days of the week. In my js file below: define( [ ...
user avatar
0 votes
0 answers
12 views

Magento 2 After upgrade Magento login in admin panel

After Upgrade Magento to 2.4.4, I face the below error when I tried to login into the admin panel. Which way fix this issue?
user avatar
1 vote
1 answer
25 views

Export Full Catalog button

How do I enable the Export Full Catalog button or similar option on this page that does not appear in my installation.
user avatar
0 votes
0 answers
32 views

Magento 2 Braintree Apply pay not working

We are using Magento 2.4 version We are using Braintree with Apply Pay. Apply Pay radio button is showing properly on checkout also customer able to do placed orders, We also received customer amount ...
user avatar
  • 1,153
0 votes
0 answers
3 views

how tax being calculated in Avalara(avatax) using product code or state code in magento 2?

how tax being calculated in Avalara(avatax) using product code or state code in magento 2?
user avatar
0 votes
0 answers
10 views

Search filter for SKU

In search bar when I search with SKU at that time suggetion popup appears. Please guide me how can I overwrite search auto suggetion popup with new filter about SKU search
user avatar
0 votes
0 answers
11 views

Magento 2: Print order data in html file

I want to print order data and download it in html or php file instead of a pdf, from admin order edit page. Any help would be appreciated.
user avatar
0 votes
0 answers
5 views

Magento 2: Net prices for shippings to switzerland

Magento 2.4.4 The catalog prices are maintained as gross prices (germany, incl. 19% tax). What taxes are applied for an order depends on the shipping location (cross border trade is active). Example: ...
user avatar
  • 598
0 votes
1 answer
20 views

How to change the value "is_required" in the table eav_attribute in the entity_type_id "2" and with the attribute_code "lastname" programmatically

Good day people, I have been trying to change the value is_required in the table eav_attribute in the entity_type_id 2 and with the attribute_code lastname in Magento 2 but without success, this is ...
user avatar
0 votes
0 answers
10 views

Manually enter shipping cost by admin order create page

I need a custom shipping method and it should display a TextBox input to enter the shipping cost by Admin, but it should only be available in admin order page and not on the frontend. This would allow ...
user avatar
  • 227
0 votes
2 answers
18 views

How to Autofilll custom attributes field in checkout address for logged customer in Magento 2

I created custom attribute fields like DOB, and gender on the checkout page. If you see in the screenshot birthday is a custom address attribute. I tried to fill the attribute field(custdob) in two ...
user avatar
0 votes
0 answers
15 views

Magento2 admin panel menu not working

I have Installed Magento2 frontend is working fine but there is haviing some issue with admin panel in the backend. Menus not working I had already tries This Modification but still it didn't work
user avatar
0 votes
1 answer
16 views

Weird errors with Catalog -> Products adminhtml page on 2.4.3-p2

I am getting this error with Magento 2.4.3-p2, and only in development (Docker). When I go to the Admin UI page for Catalog -> Products, I get the following error: Looking at the AJAX call that ...
user avatar
0 votes
0 answers
23 views

Magento 2 Klarna Error: 'Order line totals do not total order_amount - 17311 != 17310'

When I add a configurable product to the map and go to the second checkout step and after loading it again I reload it, I get this error: 'Order line totals do not total order_amount - 17311 != 17310' ...
user avatar
0 votes
0 answers
20 views
+50

Magento2 programatically create coupon code error

I have a code I have used in the past. However now I have a cms page that calls in the phtml file and when I then try to go to the page in my browser i just get an error saying "an error occurred ...
user avatar
  • 741
0 votes
2 answers
14 views

How to call Magento 2 Oauth 1.0 API for services without Callback & Identity URL?

We cannot integrate with 3rd Systems like ERP with Callback URL or Identity URL in some cases. The git repository available can be used to call Oauth request from PHP https://github.com/daviddesberg/...
user avatar
  • 101
0 votes
0 answers
11 views

Magento 2.4.1 disable shipping method selection until email, name and address fields are filled and validated

Good Afternoon Everyone, I need to disable the the selection of shipping / delivery options until the address fields have been filled in and validated. I would like the customer to have filled all ...
user avatar
  • 156
0 votes
1 answer
12 views

Magento 2 setStoreId VS setCurrentStore

What is the exact(!) difference between: setStoreId() setCurrentStore() Example where the two give different results. // setStoreId solution $product = $objectManager->create('Magento\Catalog\...
user avatar
  • 1,309
0 votes
1 answer
19 views

How to run Magento CLI command in docker Magento 2.4.4?

I tried to run the Magento command in docker but am getting the error as per the screenshot. Error ScreenShot:
user avatar
0 votes
2 answers
19 views

Maento2 Rest Api for Categories

Is there any API to get all categories detail with images as well? I am using the below API but it won't return image information /rest/default/V1/categories
user avatar
1 vote
1 answer
21 views

Magento 2 GraphQL Error: Undefined property: GraphQL\\Language\\AST\\FragmentSpreadNode::$selectionSet

I am working with magento 2.4.4-p1. I got an error on calling the below graphQL query on the site. query Route($url: String!) { route(url: $url) { redirect_code relative_url ...
user avatar
1 vote
1 answer
17 views

Magento2 How to Get ID of Street Address from Billing Address Using UiRegistry?

I want to get the uid of billing address's street address at checkout page. I got the name of the field but getting the error when trying to get the uid of the field. For getting the name i used the ...
user avatar
1 vote
1 answer
14 views

How to import sensitive configuration in system?

<type name="Magento\Config\Model\Config\TypePool"> <arguments> <argument name="sensitive" xsi:type="array"> <item name="payment/...
user avatar
0 votes
0 answers
14 views

Magento 2 blocks not showing up on homepage after cloning to localhost

I have copied my Magento 2 website from production to a: Local Environment: Ubuntu 20.04.4 LTS Apache 2.4.41 MySQL Version 15.1 Distrib 10.5.16-MariaDB PHP 7.4.30 in the normal way: Copied all ...
user avatar
0 votes
1 answer
15 views

"Class string does not exists" error - only on production

so here's the situation. It is PHP 7.4, Magento 2.4.3-p1 On the production server, an error is showing up on the exceptions.log. It reads as follows: Class string does not exist at /var/www/public/...
user avatar

1
2 3 4 5
922