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

Magento 2.3 | Found 2 elements with non-unique id #fulltext

Getting following errors at admin->order->grid, under console: Found 2 elements with non-unique id #fulltext Found 2 elements with non-unique id #sales_order_grid.sales_order_grid.listing_top....
0
votes
0answers
6 views

Don't Sort by Name when have Mysql Search Engine Magento 2.4.1

I installed the Weltpixel AjaxLayeredNavigation extension and with the Swissup extension of Mysql Legacy Search Engine, having both activated when I want to sort by name gives me the following SQL ...
0
votes
0answers
4 views

Advanced Reporting always shows 404

I have configured Advanced reporting in Magento 2.3.4 and in 2.3.5-p1. I have followed all the given steps to configure Advanced reporting in Magento, even my subscription is showing "Enabled&...
0
votes
0answers
7 views

How to create my custom visual swatch color attribute in my own module Vendor/Module/Setup/Patch/Data/MyOwnColorAttribute?

I take from https://github.com/magento/magento2/blob/2.3/dev/tests/integration/testsuite/Magento/Swatches/_files/product_visual_swatch_attribute.php like example, but my own color attribute patch didn'...
0
votes
1answer
11 views

Add attributes to the Order API shipping_address

I am calling this endpoint: http://localhost/index.php/rest/V1/orders/<myId> And I want to have 2 customer address attributes inside the response (-> billing_address). In order to get there ...
0
votes
0answers
6 views

Adminform uploaded file preview

I added file upload input in AdminHtml Block like this below. $fieldset->addField( 'document', 'file', [ 'name' => 'document', ...
0
votes
0answers
12 views

Apple pay and Google pay not able to see in Magento 2 using Stripe

I have configured Stripe account and in that I have enabled Apple Pay and Google Pay after configuring on stripe i even enabled from Magento backend but it seems I could not see any Apple Pay and ...
0
votes
0answers
14 views

i had upgraded magento 1.9 to magento 2.4 but it did not work properly so i decided to get back but when i restored it i can see this problem

error log [14-Apr-2021 15:18:01 Australia/Sydney] PHP Fatal error: Uncaught Error: Class 'Magento\Framework\App\ErrorHandler' not found in /home/martarab/public_html/bin/magento:20 Stack trace: #0 {...
-1
votes
1answer
16 views

php default classes not working in magento

I trying to sort cart item by price private function getSortedItems($quote, $rule) { $items = $this->context->getMatchingItems($quote, $rule); $itemObject = new ArrayObject($items); ...
0
votes
0answers
14 views

Paging not showing on category view

I am unable to see paging on my category view products. By default 12 products show and when I add a query string ?p=2 then other page products show. Here is my setting inside admin panel I have ...
0
votes
2answers
21 views

How to getSku for configurable products in magento 2

I want to get Sku for selected options. Above image i have select blue and M. So this options product sku get in magento 2. Please Help me. THANKS.
0
votes
1answer
14 views

Magento 2 : Undefined variable: returnValue

<?php namespace StripeIntegration\Payments\Plugin\Sales\Model\Service; class OrderService { public function __construct( \StripeIntegration\Payments\Helper\Rollback $rollback, ...
0
votes
0answers
15 views

Magento2: How to get attribute EAN and implement to search URL

I have simple script to display others sellers the same product on product page. <span><?= /* @escapeNotVerified */ __('Total other sellers:') ?> <a class="others-sellers" ...
1
vote
3answers
18 views

Filter collection with OR of AND condition

I want to filter a product collection with pairs of attributes match. For example get product collection which has (brand="Toyota" AND color="Red") OR (brand="Ford" AND ...
0
votes
0answers
11 views

magento 2 get folter attributes values in custom api

Hi i created custom API in magento 2 in that i need to implement advance search like store brand,model and year search like this i am able to get brand fileds ` public function getAddtocar($attribute)...
0
votes
0answers
4 views

Magento 2 admin redirect after adding varnish

I just added varnish cache to my site. Before I added it, I was able to get onto the admin panel. After adding it, though, trying to get to the admin panel results in an infinite redirect loop. It ...
0
votes
1answer
21 views

Magento 2 - Create simple hello world script with UiComponent

I try to create my own Component and reuse it. So I created these files: Component File: app\design\frontend\company\fresh\web\js\elements\custom\input_number.js define([ "jquery", "...
0
votes
1answer
11 views

Magento2 | Add select-box with search/filter option | Auto suggestor

I am try to add a search bar to the product custom dropdown attribute. I am able to add it using xml and data is also getting saved, but after loading the product again, it is not showing in admin. ...
0
votes
0answers
10 views

Put a bloc between top.search and minicart

I want to put a bloc between top.search and minicart but it's don't work : <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
9 views

Magento 2 Translate message im adminhtml auth login

i want to translate two messages in the logging panel to CMS (The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later. and Incorrect CAPTCHA.). ...
-1
votes
1answer
21 views

Youtube videos are not working on Simple Product pages

Any simple product that has a video assigned to it, will not play the video. If you are looking at the config product then videos play without issue. Magento Version 2.3.5
0
votes
1answer
13 views

Stock quantity change API

I want to change quantity number on specific product after payment receive. And after that I reveave 400 error. Is it possible to change the stock quantity? Or Am I doing something wrong? I try to do ...
0
votes
1answer
28 views

Magento 2.3.1 How to hide out of stock products from frontend?

I have Magento setup version 2.3.1 in normal Magento flow if salable qty is > 0 then the product will show in frontend else hide it. This functionality is working correctly after Magento version 2....
-1
votes
0answers
15 views

Error in MageArray Blog in Admin panel

I am using "Mage Array" blog extension. I am facing the SQL issue in admin panel after upgrade the Magento Version. 2 exception(s): Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[42S22]...
0
votes
0answers
16 views

Onestep checkout console : POST domain.com/rest/default/V1/rewards/mine/update 401

I am getting console errors in checkout page when i am filling shipping form : POST https://www.domain.com/rest/default/V1/rewards/mine/update 401 (Unauthorized) I am getting these errors mutiple ...
-1
votes
3answers
25 views

Issue with get product name in custom module

I try to display product name in custom module; I paste below code but get issue: Exception #0 (Exception): Notice: Undefined variable: _product in /home/fsgroup/domains/domainss.pl/public_html/app/...
0
votes
0answers
20 views

Magento 2 Module suggestion for cart rule promotion

I am looking for the module for cart rule promotion offer. product1 price -> 10 product2 price -> 20 many more products with different prices on any apply specific coupon code for example ...
0
votes
0answers
13 views

Layer Navigation not working in custom product collection of category page in magento 2

i override the ListProduct.php file and add custom product collection to the custom category page but in that page layer navigation not working here is my ListProduct.php file <?php namespace Ccc\...
0
votes
1answer
24 views

Reload page after removing item from Mini cart in magento 2.3.3

Is there any way to reload the page completely, when we remove an item from mini cart. https://prnt.sc/11i1x2g After clicking on ok , i want to reload the page.
2
votes
0answers
17 views
+50

How to Make Category tree Auto expand the assigned subcategory tree in edit product form?

I'm using Magento 2.4.1 and have 4 levels category when editing a product in cms it really cumbersome when I need to locate the hierarchy of my product categories because when it first loads it only ...
1
vote
0answers
24 views

Remove “My billing and shipping address are the same” checkbox and Billing address form open By default Magento 2

I am using the one step checkout and it is working fine. Now, requirement is that , remove the "My billing and shipping address are the same" checkbox and open the Billing address form by ...
0
votes
0answers
28 views

Hiding Thumbnail images from Gallery - SQL Query

A while ago I had a bad import in a store and hundreds of thousands of thumbnail images got set to show up on product page in Gallery. Most of the time, you don't want the gallery to show thumbnail ...
0
votes
0answers
23 views

Can't Save Categories Magento 2.3.5-p1

So i cannot save categories and attempting to do so produces below error in system.log: [2021-04-15 16:16:30] main.CRITICAL: Error: Call to a member function getAttributeCode() on bool in /home/...
0
votes
0answers
14 views

How can I reverse create Quote for Order in Magento 2?

I want to validate some data in the quote using rule conditions, but the quote gets delete after a period of time. How can I reverse create Order -> Quote programmatically?
0
votes
0answers
6 views

PaymentIntent Error while creating order via Stripe via magneto REST API

I'm trying to create order using POST /rest/V1/carts/mine/payment-information with test info { "paymentMethod": { "method": "stripe_payments", "...
0
votes
1answer
15 views

Got error when trying to submit order via rest api and stripe

I have magento 2 setup, with Stripe plugin, and I'm trying to create order using PUT http://ec2-3-236-104-131.compute-1.amazonaws.com/rest/V1/carts/mine/order BODY { "paymentMethod": { ...
0
votes
2answers
33 views

M2: Alternative way to display variations on product page

I'm managing a bicycle parts store on Magento 2. It has a couple of thousand configurable products with simple products attached to it. I'm displaying the configurable product's variations using ...
0
votes
1answer
19 views

How can i insert custom tracking url in Order confirmation Email Template?

I want to insert my custom tracking url in Order Confirmation email and url is https://vitalticks.shiprocket.co i put code like this Track you Order here:Vitalticks Order Tracking Page But it is not ...
-1
votes
1answer
29 views

Magento 2 : No such entity with %fieldName

I am getting this error any thoughts, why this error appearing ? "message": "No such entity with %fieldName = %fieldValue", "parameters": { "fieldName&...
0
votes
1answer
17 views

Magento Export Message: “Message is added to queue, wait to get your file soon”

I export the product - SKU only, but the csv file does not shown up... Wanted to run this command, but don't know where to run it: -bin/magento queue:consumers:start exportProcessor
0
votes
1answer
26 views

Can't get getCustomer() in custom event

If I observe customer_save_after event I can get information about the customer with $customer = $observer->getEvent()->getCustomer();. However, if dispatching my custom event instead of ...
0
votes
0answers
12 views

Admin grid is not loading with error

I'm making custom grid it was working fine but suddenly it's not loading with yellow error message...it says there is ID which is not unique but I dont use any IDs in this source code... anyone who ...
0
votes
1answer
27 views

How to add columns to customer address grid in admin?

I have to add two fields to the customer's address grid, for this I have to add a left join to the Magento collection. I have created the following custom module: Vendor/Module/registration.php <?...
0
votes
0answers
14 views

Magento 2 - Install PWA in live server and set domain

I have and UKFast instance running Magento 2.4.2 with sample data and installed PWA Studio by following directions here: https://magento.github.io/pwa-studio/venia-pwa-concept/setup/ Everything gets ...
0
votes
1answer
25 views

Magento 2 : TypeError: Argument 1 passed

I am getting below error on rest api call on this method public function handleDecline($order) { $result = $this->forterConfig->getDeclinePost(); if ($result == '1') { ...
0
votes
2answers
29 views

How to display Product Name in the subject of the Email(Order Confirmation Email)?

I want to display product name in the subject of the Order confirmation email. I want to display like this Your Order for LooMantha Refrigerator... has been successfully placed
0
votes
1answer
10 views

entity_type_code_entity table is empty in magento2

I am trying to insert data into the EAV tables, but my main entity table isn't saving any data but the value tables data is inserted. My Entity Type code is vinay_employee, my table ...
0
votes
1answer
16 views

Magento 2 Uncaught TypeError: Constr is not a constructor when returning functions on Knockout Js

i'm trying to get functions from a JS file in a Knockou file, like this: quote.js define(['jquery', 'uiComponent', 'ko','Vendor_GetQuote/js/ajax-request'], function ($, Component, ko, ajaxrequest) { ...
0
votes
1answer
20 views

Magento 2 how to send information from Knockout Js to Js component?

I'm trying to send an array of data from a Knockout Js component to a JS file so I can do an ajax request there. Here is what I'm doing: phtml: <div class="container"> <div class=&...
0
votes
1answer
21 views

How to move “The shipping and billing addresses are the same” checkbox to billing step in Magento 2

In my website,On one page checkout, the "My billing and shipping address are the same" section is showing after the payment method. I want it to show below the Billing address. The payment ...

1
2 3 4 5
867