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
2 answers
38 views

after adding the products, those products are not displaying products page

Warning: Undefined array key "name" in D:\xampp\htdocs\mage2rock\vendor\magento\module-catalog\Ui\Component\Listing\Columns\ProductActions.php on line 61 Exception in D:\xampp\htdocs\...
Nagamani B's user avatar
0 votes
0 answers
7 views

Layered Navigation Extension with Manageable Meta Description and Title for active filter

We are looking for a layered navigation extension that can have a specific Meta Description and title when a filter is active. Already, a bunch of layered navigation extensions are available, which ...
amjath's user avatar
  • 31
0 votes
1 answer
24 views

Add custom Category Attribute to Category view on Front end

I've created a module that adds a custom attribute for a category, Its a bolean that I will use to show/not show some text on frontend. The attribute its being saved into the Database and I can get it ...
Francisco Muniz's user avatar
0 votes
0 answers
27 views

Magento 2 Hyva: How to add a loader in cart on increasing and decreasing qty using Hyva?

I want to add a Hyva loader on the cart page using the Hyva theme. I checked this doc from hyva Hyva doc loader but I am not sure How I can implement this on increasing and decreasing qty. Let me ...
Mohit Rane's user avatar
  • 1,935
1 vote
2 answers
34 views

how to call GraphQl API of Specific Store in Magento 2?

I want to get the data of specific store using API in REST APIs we can do this by giving store code before APIs endpoint but how can we do that in GraphQl APIs In Rest APIs : /rest/StoreCode/V1/...
Syed Hassan Zamir's user avatar
1 vote
1 answer
37 views

Poor Magento performance on AWS ARM

I'm using Magento Open source 2.4.6. And I just switched from AWS x86 t2.small ubuntu to AWS ARM a1.medium/2GB and the performance is terrible(very slow speed) compared to the t2. Is there anything to ...
maxo's user avatar
  • 185
0 votes
1 answer
16 views

Magento cron jobs fail because of attempts to write to the wrong part of the filesystem

I noticed for a while that although I could run the commands in my crontab just fine, they would not run from cron itself; when I looked at magento.cron.log, I found lines like this: Directory "...
James Edward Lewis II's user avatar
0 votes
0 answers
60 views

Magento 2 How to update quote totals information from admin

Magento 2.4.5-p1 version using. We want to give custom discount via our custom module Using this code - <?php namespace Namespce\Modulename\Controller\Adminhtml\Quote; use Magento\Backend\App\...
sumeet bajaj's user avatar
  • 1,225
0 votes
0 answers
24 views

Magento 2 - Payment methods not work

When I conclude the order to the checkout, the current order is always saved in the pending status. Also when I go to the success page of the order I go back the error 500. The same mistake is ...
Jackom's user avatar
  • 421
0 votes
2 answers
46 views

How I can create a Model and Save it using Magento2?

I made a seeder custom command in order to populate multiple models for my developemtn easyness: <?php namespace MageGuide\FirstModule\Console\Command; use MageGuide\FirstModule\Model\BlogPost; ...
Dimitrios Desyllas's user avatar
0 votes
2 answers
57 views

size parameter cannot be negative

I have problem with elasticsearch on catalog category pages. For some reasons on some pages i have this error: Elasticsearch\Common\Exceptions\BadRequest400Exception: {"error":{"...
gandrap's user avatar
0 votes
0 answers
35 views

How I can reference product SKU as foreign key reference?

In my db_schema.xml I made a table with a pivot one: <?xml version="1.0"?> <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=&...
Dimitrios Desyllas's user avatar
0 votes
2 answers
27 views

Class "Magestore\Giftvoucher\Model\Source\GiftCardTypeOptions" does not exist

I run project but I got error when run php bin/magento setup:upgrade. How can I fix it?
Bohdan V.'s user avatar
0 votes
1 answer
49 views

Magento 2.4.6: All pages 404 after upgrade from 2.3.5-p1

I am getting 404 page not found on all pages including admin dashboard after upgrading Magento from 2.3.5p1 to 2.4.6 on a VPS. My root .htaccess: RewriteEngine on RewriteCond %{REQUEST_URI} !^pub/ ...
mechanic's user avatar
  • 350
0 votes
1 answer
34 views

Custom confirmation pop-up to admin form "Save" button

I have a module with Block\Adminhtml files and in one of those files it adds the Save button as follows: $this->buttonList->add( 'save_and_continue_edit', [ 'class' => 'save', ...
user112978's user avatar
0 votes
1 answer
33 views

Get customer orders excluding ones with a specific order item

I want to retrieve all customer orders' except the ones that have a specific item (walle product) Currently, I get all orders that have the item and then filter them from orderCollection $...
AmooAti's user avatar
  • 113
0 votes
0 answers
18 views

Magento 2 - Cart Price Rule

I want to create a cart price rule in such a manner that i have 2 products SKU-1, SKU-2 when customer contains above two products in cart and applied that coupon the discount will be £1. and also i ...
Mani's user avatar
  • 173
0 votes
0 answers
21 views

How to know if Registered customer was Once a Guest user?

I need a way to find if the registered user was a guest user in the past. Like Magento 2 stores some kind of flag value which can help me to identify that the customer was a guest and later on became ...
Anurag's user avatar
  • 20
0 votes
1 answer
16 views

Magento 2 - Where can I find the parameters from my external application sent to magento via rest api?

I'm making a request to magento 2 via REST API to "/rest/V1/carts/mine" from a external application. I have set a breakpoint at the first line in index.php of magento 2 and inspect the ...
Black's user avatar
  • 3,100
0 votes
0 answers
18 views

Magento 2.4.4 - Magento modules inside the vendor folder don't work

I'm trying to run the "setup:upgrade" command to register all magento modules but this error is presented: "PHP Fatal error: Uncaught Error: Class Magento\Framework\Component\...
Jackom's user avatar
  • 421
0 votes
1 answer
48 views

Getting child product of configurable in Observer?

Magento 2.4.6 I am listening to the checkout_cart_product_add_after event. In my observer I am trying to get an attribute from the added child product. I did not manage so far, all data that I get is ...
user4095519's user avatar
0 votes
0 answers
9 views

How can i change product url key in other language?

How can i change the url key of a product in an other language? For example: For our Dutch website i have a product url and we push our product also to another storeview for Germany. How i can change ...
Gerrit van der Garde's user avatar
0 votes
0 answers
17 views

Checkbox "Use Website" doesn't work after adding new website

I am learning "Set up multiple views in the Admin" I added a new website+store+view then opened store > system > configuration > general > web and tried to change store url. But ...
Serhii's user avatar
  • 1
0 votes
0 answers
17 views

Magento2 Validate Ui form on custom button click

How can I validate form on click of push button same like save button
Hiren's user avatar
  • 1,081
0 votes
1 answer
36 views

Cant select default search engine in backend

Unfortunately I cant untick the default search engine in magento2 backend (vers. 2.4.6-p2) I think the prio of these checkboxes are app/etc/env.php > core_config_data I have configured my ...
y.y's user avatar
  • 103
0 votes
1 answer
30 views

Magento 2.4.3 Stock Problem

I have a problem with qtys when I'm trying to order the same product more than one qty. Example I have a T-Shirt with size: Small and qtys : 2 When I'm trying to order this products with 2 qtys in the ...
Ddweb's user avatar
  • 31
1 vote
2 answers
33 views

How to replace an existing product's url with a new product

I am duplicating a product, disabling the old one and want to set the url of the new product to replace the old product. $duplicateParent = $this->productCopier->copy($oldproduct); $oldproduct-...
Ben's user avatar
  • 11
0 votes
0 answers
18 views

How to dispaly average and total in all admin grid in magento 2

I want to display avg and total in all admin grids like the order reports in Magento 2.
Himanshu's user avatar
  • 968
0 votes
2 answers
29 views

Does anyone know how to download an extension package from composer, so it can be manually installed?

I want to manually install a magento 2 extension that only has a composer require command to install. Is there a way to use the composer require command to download the extension dir? So it can be ...
Alaldin's user avatar
0 votes
1 answer
20 views

Magento 2: REST API Endpoint uses wrong locale

I'm implementing an endpoint where the users can create products from a CSV, using the same logic that Magento implements in the backend to import CSV seems to work great but I have a problem, the ...
Jesus's user avatar
  • 1
0 votes
0 answers
31 views

Making test payments with Klarna on Magento 2.4.6

I've been attempting to make some test payments using Klarna on our Magento 2 site. The customer address I'm using is a German address. When the Klarna modal pops up, it asks me for a phone number. I'...
David Lightman's user avatar
0 votes
1 answer
51 views

Magento 2 how to remove update button from checkout billing address

We have 2.4.5 magento version. how can we remove "update" button from billing address and allow to placer order. we have virtual product so in virtual product we do not need to add shipping ...
mike cole's user avatar
0 votes
1 answer
28 views

Guest user cart automatically empties itself after 1 hour

I am facing an issue where the products added in the cart automatically gets removed after 1 hour. I am facing this issue only for guest user. I have checked the following values and found them to be ...
Ranvir Singh's user avatar
0 votes
0 answers
32 views

How to sort products in Magento by new from date?

I wanted to sort products by new from date , please see the query but it is not working perfectly $collection->getSelect() ->joinLeft( ['catalog_product_entity_datetime' =>...
Mark's user avatar
  • 43
0 votes
0 answers
67 views

foreach() argument must be of type array|object, string given after updating to 2.4?

After updating my shop to Magento 2.4 from 2.3 I am getting this error: Warning: foreach() argument must be of type array|object, string given in /vendor/magento/module-catalog/view/frontend/...
user4095519's user avatar
0 votes
2 answers
50 views

Hyva Themes : Magento2 How To Create Sticky Header?

I'm looking for a code that can help me with sticky header for hyva themes.
Gullible's user avatar
0 votes
3 answers
36 views

Magento2 UK phone number validation

Magento2 On contact Us page how can we validate phone nunber to accept only UK numbers?
Arjun's user avatar
  • 3,526
0 votes
0 answers
28 views

Magento2 Full Page Cache Automatically Invalidated

I have running magento243 version and it is working fine . But I am facing issue in cache flush. My admin cache is automatically cleared after every 30 minutes. I am using cron scheduler extension and ...
Sanjay Shiyal's user avatar
0 votes
0 answers
11 views

the form still gets submitted when VAT check doesn't match

I have purchased the Geissweb VAT checker, But it doesn't verify. If the ZIP code from the VAT matches the ZIP code from the delivery address. So, I created this code, but when it doesn't match, the ...
Jesse_Pluribus's user avatar
0 votes
0 answers
12 views

Uncaught TypeError: Cannot read properties of undefined (reading 'clearRequests')

Error: The infinite loader showing on the page. When I schedule new update page, block, product,category the infinite loader is show. the console display the error : Uncaught TypeError: Cannot read ...
Alok Tiwari's user avatar
0 votes
0 answers
23 views

Getting this erorr You cannot define a correlation name 'news_from_date_table' more than once

When I am using above mentioned query then getting the error You cannot define a correlation name 'news_from_date_table' more than once $subquery = $collection->getConnection()->select() ...
Mark's user avatar
  • 43
0 votes
2 answers
34 views

Magento 2 / Knockout js add image in form field notice

I want to add html tags to the notice of a specific field, I tried in LayoutProcessor but it does not interpret the image tags, I know it is possible from the field.html file, but it did not work for ...
Diego Castro's user avatar
0 votes
1 answer
44 views

Magento Please use the 2fa provider-specific endpoints to obtain a token error REST API on Admin token

Magento Rest API to fetch admin token credentials to use tokens for other REST APIs as Authorization Bearer. From Magento 2.4+, the Two Factor Authentication Module is available for security reasons. ...
César Robledo's user avatar
0 votes
0 answers
17 views

Magento Getting Error "The signature is invalid. Verify and try again"

I am trying to use OAuth 1.0 in Bash script and I am getting error "The signature is invalid. Verify and try again". Can someone please let me know how to generate valid signature using bash....
Amit's user avatar
  • 1
0 votes
0 answers
11 views

Product variant URL with attribute and value IDs: doesn't switch image to selected one

In magento 2 is possible to call a specific product variant just appending to the "normal" URL: #Attribute_ID=Value_ID I've read in various posts that this functionality should also involve ...
user113280's user avatar
0 votes
1 answer
34 views

Getting error on admin customer edit after Magento updated to 2.4.6

I am getting error when I try to edit customer from Admin side. Error: Magento\AdminAdobeIms\Plugin\RemovePasswordAndUserConfirmationFormFieldsPlugin::afterGetForm(): Argument #2 ($result) must be of ...
Yasir Minhaj's user avatar
0 votes
1 answer
26 views

Getting incorrect date in "updated" column in indexer grid

Getting incorrect date in "updated" column in indexer grid after upgrading magento 246p1 And in the indexer_state table updated column shows 0000-00-00
Harish kuril's user avatar
0 votes
0 answers
16 views

Magento 2: How to login with Google Rest API

I'm creating the custom rest API for social media logins like Google and Facebook. So I want what parameters need to send in the request and what will return in the response. Can anyone help me?
Arif Qureshi's user avatar
1 vote
0 answers
25 views

How to validate the Meta Title of any page using some Automated tests?

I am just wondering if we can validate the Meta title of a page using some automated tests like MFTF. Can someone please suggest to me if it is possible? Thanks
Abhinav's user avatar
  • 23
0 votes
2 answers
47 views

Override the canonical URL in custom layout handler

I'm attempting to override the canonical URL for a custom handler. I tried adding the following code via XML, but instead of overriding the default canonical URL, I now have both the default and the ...
Anass Hl's user avatar