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
3 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
1answer
1k views

Magento2: How can create custom datetime product attributes and show timer in frontend?

I want to create custom datetime product attribute with "start from" and "start to" and want to show timer with calculation of both date. I am using custom module and creating attribute by below code ...
0
votes
1answer
25 views

Magento2 Custom Observer - Page Creation - getPage() within the observer - is not working for newly created pages

I have a custom observer to trigger some code when a page is saved/created. It's working great when I save a page - but it cannot see the new page when I create one - it is running the code but the ...
0
votes
0answers
2 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
17 views
+50

Magento 2.3: Search is not working for specific search terms/queries

I'm having a strange issue with our website. The issue is that, when I'm searching with some specific keywords like TV, AC, It's not giving me the results and its returning empty results as below ...
3
votes
1answer
2k views

Magento2: How to use Magento\Framework\Api\FilterBuilder?

I am able to use the addFilter in the searchCriteriaBuilder like this: $this->searchCriteriaBuilder->addFilter( 'name', 'M%', 'like' ); For example in this code I can get all the ...
3
votes
4answers
361 views

Remove Addresses tab from customer edit page magento 2

How to remove Addresses tab from customer edit(form) page in admin panel Magento 2?
2
votes
1answer
1k views

Magento2 redirect to Product Details Page on add to cart

I have disabled the Ajax cart. When clicking on addtocart it is redirecting to product page, correct I expect this to be like this. but my problem is all the products in the store have custom ...
2
votes
2answers
2k views

Magento2 The shipping information was unable to be saved: verify the input data and try again

While doing checkout I am seeing this issue? I dint added any plugin for shipping. In log i am getting issue like StorePickupId does not have accessory method getStorePickupId in class Magento ...
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
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'...
1
vote
6answers
4k views

magento 2 Error: cannot call methods on priceBox prior to initialization; attempted to call method 'option'

I am having an issue on my website the issue Error: cannot call methods on priceBox prior to initialization; attempted to call method 'option' My website https://www.cartaroo.com.cy/?...
5
votes
2answers
5k views

Magento 2 Display 3 items per row in products/category pages?

How to display 3 items per row on products/category pages for 2 column Magento 2?
-1
votes
1answer
28 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&...
12
votes
1answer
2k views

What is causing “Mismatch of entities in the document” when running migrate:delta

I have successfully upgraded a magento 1.4.1 database to 1.4.2 and then to 1.6.0. I also successfully was able to migrate:setting and migrate:data from the 1.6.0 database over to my Magento 2.1.2 ...
2
votes
2answers
987 views

Grouped Products: Filter based on simple products

The problem I'm currently building a Magento 2 store which sells items in boxes and as singles (eg. a single item or a sealed box of 12). The product page has a grid which lets you add any number of ...
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
1answer
1k views

Purpose of Sales->Sales->Invoice and Packing Slip Design->Logo for HTML Print View in Magento 2

What is the purpose of Sales -> Sales -> Invoice and Packing Slip Design -> Logo for HTML Print View in Magento 2 if the purpose is to change my account order print logo then why it's not updating ...
0
votes
0answers
10 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 ...
1
vote
2answers
1k views

How I can change class in messages in Magento 2?

I want to replace magento default alerts to bootstrap alerts. I try add template for messages in design/frontend/templates/messages.phtml. Buy I cannot change class of type message from message-error ...
2
votes
2answers
1k views

After changes in less file setup:static-content:deploy is compulsory

Most of time spend on setup:upgrade and setup:static-content:deploy. Is it compulsory to run both command after changes on less file? I have used Default lUMA theme.
0
votes
1answer
2k views

Magento 2 : Undefined Index : Default

In Backend When I try to change theme at that time I got this error Exception #0 (Exception): Notice: Undefined index: default in /home/cloudpanel/htdocs/project/app/code/Codazon/ThemeOptions/...
2
votes
1answer
1k views

Magento 2.3.1 Error on checkout getAdditionalInformation()

I've migrated an old webshop from 1.9 to 2.3.0 and then upgraded to 2.3.1. And I've come across a problem that I can't quite find out why it is happening. There are about 300 products migrated into ...
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
2answers
2k views

Magento 2 : How can I properly calculate FPT/WEEE on configurable products?

I already made a ticket for this on the official repository (https://github.com/magento/magento2/issues/4774), but their response was they would not implement it anytime soon. So that's why I ask my ...
6
votes
3answers
5k views

Magento 2 bin/magento not working as it should

I've just installed a fresh copy of Magento 2.1.2 from composer. I've previously installed Magento 2 in a different directory completely fine and the commands all run as they should. This has only ...
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
vote
1answer
1k views

Create an extension in Magento for Web push Notifications

I want to create an extension with web push notification in Magento. Purpose of this extension is to send notification on customer system even web site is not open. I wanna to create an extension to ...
-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/...
1
vote
3answers
1k views

Show div after delay on Magento 2 with JQuery

I need to show this div after 3 seconds on my page. <div id="cratepop"> <br> <center><img src="/shoppingcart.png"></center> <br> </div> ...
-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); ...
1
vote
1answer
1k views

Magento 2 get attribute options by attribute code?

How to get the list of option values for particular attribute code in magento 2? <?php namespace Sample\Shopbyage\Block; use ...
-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
1
vote
3answers
17 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
13 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 ...
1
vote
2answers
402 views

Why Magento is not giving final price in rest api?

I have recently try to get product final price via rest api. You can check special_price is already active and it will 20 but of price are coming 45 it will be 20. API URL : http://magento.local/...
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
1answer
37 views

Port must be configured within host parameter in Magento 2

I received the following error, "Port must be configured within host parameter. like localhost:3306 in /var/www/html/dbm2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php" when trying to go ...
2
votes
1answer
1k views

How to get inventory source id in magento 2.3 order details

I need get the inventory source id based on the order item. I tried with order details but it not display. Anyone please help me.
2
votes
0answers
115 views

Magento 2 Tricky Certification Question - Relation between Block and Templates files [duplicate]

What is the Relations between blocks and templates ? Pick 3 options. A) - Single block can have multiple template files. B) - Multiple block can have single template files. C) - Single Block instance ...
16
votes
3answers
2k views

How can i scroll up error message after click on place order magento2

If a user is a small screen device, there are many situations where they will never see an error message. I referred this link Usability issues with error/notice/success messages. But do not get any ...
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" ...
0
votes
1answer
1k views

Reload Total section in checkout/cart page - Matgento 2

I want to reload total section when checkbox checked/unchecked. Here is the code I am trying to implement. etc/frontend/sections.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
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)...
1
vote
1answer
2k views

Rest API import product Magento2

I want to add a product using REST API but don't know how should I do. could you please help me what should I do? Magento 2.1 I use. this is the code that i used: { "id": 989898989989989898, "...
0
votes
0answers
110 views

Magento 2: How can I use “import product data” functionality though REST API/Postman?

I want to use import functionality in magento 2 (image below) from POSTMAN or my application. Is there any endpoint available for the same?
1
vote
4answers
1k views

how to override vendor/magento/module-swatches/view/frontend/templates/product/layered/renderer.phtml in magento 2

how to override the color navigation swatch in magento 2 my code is in below but it is not working <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
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
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
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", "...

1
2 3 4 5
867