All Questions

Filter by
Sorted by
Tagged with
1
vote
2answers
44 views

Magento 2 how to check customer is logged in js file using phtml file

I have found the below code. but it's not working and showing define error in frontend if i use this code in phtml file. Like this error shown : require.js:166 Uncaught Error: Mismatched anonymous ...
2
votes
3answers
39 views

Magento 2 : Change Order # Formatting for M2 Orders

I am trying to implement feature that Orders placed on M2 should start with a ' 3 ' instead of a ' 2 ' This will help me with easily identifying new orders while we move test orders to production and ...
0
votes
1answer
22 views

Magento 2: Create a custom order view page

In magento 2 is there any way to create same order view page in custom module? I want to create a custom order view page where I have to display some more data but not want to display on core (order ...
1
vote
0answers
13 views

How to make Magento 2 log timestamp follows locale configuration?

How can i make exception.log, system.log, , debug.log or any other log inside var/log which is generated from magento 2 follows the configuration timestamp, right now it is showing the utc timezon in ...
0
votes
0answers
4 views

Where do scalar extension attributes save to?

Been reading the doc from Magento and i have been using extension attributes for more complex data structures but i'm basically wanting to add a simple scalar attribute <extension_attributes for=&...
0
votes
0answers
11 views

Error on mysql only on front page

I'm using  Magento 2.3.6-p1 In Cli commands everything  works fine. I can ran setup:upgrade, compilation, content:deploy, etc. But, when I go to www.mystore.com I get the following: 2 exception(s): ...
0
votes
0answers
20 views

How to create multi store (2) under main website

How can I create two store under the main website? please show in code, I need to create two stores with different names under one main site. namespace RRRR\Store\Setup\Patch\Data; use Magento\Store\...
0
votes
1answer
20 views

Magento 2 - Is it safe to remove the DEFINER=.. statement from sqldump?

I have a web server that serves Magento2 and a MySQL Server that hosts the database and both of these servers are in a single ubuntu instance. I would like to move the MySQL server to a separate RDS ...
0
votes
0answers
11 views

Module is not sending image correctly

everything good? I am implementing a module, but the js file is not pulling the proper image current js code require(['jquery'], function($) {     'use strict';     const STORE_ID = 111233;     const ...
0
votes
0answers
12 views

Automatic random generation field “username”

I've created in website extra customer field: Username Does anyone have any solution to automatically generate this field with username immediately after registration? I see some like this: https://...
0
votes
0answers
11 views

New order email notification not send

Magento 2.3.3 When registering a new user, a message is sent to the mail. If the user creates an order or tries to send from the admin, there is no message. I tried to install Mageplaza SMTP, test ...
1
vote
2answers
19 views

Add collection filter from json field

I want to filter custom collections with JSON field filters. In the below image, there are 2 fields category and product. They have JSON value. I am able to get collection by Direct SQL query by ...
0
votes
1answer
16 views

Magento 2.3 Create Custom Module

I am trying to get some code onto the success page for a Magento store. I know that it needs to be done through a custom module but I can't even seem to get a base module to register though. I have ...
1
vote
0answers
13 views

Magento 2 Varnish caching add to cart session from another user

When adding an item to cart, it will also show a second item, which I have previously added to cart from a different device. If I bypass varnish cache, cart seems to work ok. Guess I am missing a ...
0
votes
1answer
11 views

POST source-items for update returns 404

I am trying to update the quantity of products using the rest api call: {HostUrl}/rest/default/V1/inventory/source-items with the below data: { "sourceItems": [ { "sku":...
0
votes
0answers
17 views

Magento 2.3.5 Product Search Error: Something went wrong with processing the default view and we have restored the filter to its original state

I have tried to search a product in common search field of Product list in admin panel, but it throws error message like 'Something went wrong with processing the default view and we have restored the ...
0
votes
0answers
7 views

Magento 2 - How to apply different email style for outlook?

I try to create a e-mail template. I created custom header and footer, they are loaded and look good in magento 2. However in outlook it looks complelty destroyed and weird So I figured out that ...
1
vote
2answers
29 views

How to add loader to ajax

How to apply loader script to my code, Loader : https://meetanshi.com/blog/magento-2-show-loader-till-ajax-call-not-completed/ My code: define([ 'jquery', 'Magento_Customer/js/model/...
0
votes
0answers
7 views

Actions dropdown too far right in Admin Listing

I've managed to add a second action to the actions column in the admin product listing. It works fine until I add another column to the display. The dropdown menu doesn't "follow" the ...
0
votes
2answers
11 views

Magento 2.4 alter contact form post values using plugin afterExecute

I am trying to use a plugin to alter the contact form post data by using the afterExecute method: public function afterExecute(\Magento\Contact\Controller\Index\Post $subject, $result) { ...
0
votes
1answer
16 views

Can I set MSI stock values using products REST endpoint?

We currently run Magento without MSI. The ERP sends stock updates via extension attributes on the (bulk) product endpoint. This enables us to do most product updates in on API call. Very convenient. ...
0
votes
1answer
16 views

Vue Storefront Returns Something went wrong

Hi am trying to setup vuestorefront locally over windows 10 and it compiled successfully but on frontend it showing something went wrong Something went wrong ... We've noticed Internal Server Error ...
0
votes
0answers
12 views

Applying Catalog Price Rule to Advanced Pricing

I am new to Magento so I apologize in advance if this has already been asked and answered (if so, can you please point me there?) We are running Magento 2.3.5 Community Edition. We have multiple ...
0
votes
0answers
14 views

Migrate Custom Module Magento 1.9.X to Magento 2.4.1

I have run the data migration tool for Magento 1.9.2.4 to M 2.4.1 All Magento's default tables data is migrated. Now I want to migrate data of custom modules of M1. I have followed the instructions ...
0
votes
0answers
14 views

how to create a store pragmatically

I need to create two stores pragmatically using declarative schema. To do this, I created a module and inside the module I have date patch class. I'm new here in magento. Please explain in order how I ...
0
votes
1answer
87 views
+100

Minicart qty increment and decrement error -

I am using the following module for minicart qty increment and decrement, https://github.com/kirtinariya1/MinicartAjaxQtyIncrementDecrement, error : Custom Module: Path : app\code\Zero\MinicartQty\...
0
votes
0answers
5 views

Magento2 showing wrong data for low stock report for multiple warehouse

I have set new source and new stock and assigned new stock in product, when i check low stock report its not showing updated data for new source and stocks, its always showing default stock data, can ...
0
votes
1answer
11 views

Suppose I reach to this page customer/account/login/, after I click on “Sign In” button and i found referer feature not working :(

How to echo or print the referer url(history page) from where I reached to that login page. I have to implement something that after login user should not reach to dashboard instead he should re-...
1
vote
1answer
18 views

What does resultRedirectFactory?

I found a code at /vendor/magento/module-customer/Controller/Account/Login.php /** @var Redirect $resultRedirect */ $resultRedirect = $this->resultRedirectFactory->create(); I want to know ...
0
votes
0answers
12 views

Magento2.4.2 data migration issue: m1-dogdream.eav_attribute_set' doesn't exist, query was: SELECT COUNT(*) FROM `eav_attribute_set`

I am migrating data from m1 to M2, this command ` php bin/magento migrate:settings --reset <path to your config.xml> worked without any problem. But when i run second command php bin/magento ...
0
votes
0answers
23 views

How does Magento 2's GraphQL implementation parse Schema Directives?

So in my company we're stuck with Magento 1 (and will be for at least a few more years) and we're using its SOAP API for our internal systems, but we're facing the issue of slowness and duplicate ...
0
votes
0answers
7 views

Magento 2 update add-to-button as Ajax button on home page

I have added products on the home page using widgets, how to add ajax to my add-to-cart button.
0
votes
0answers
16 views

DataProvider for multiple fieldsets

I have a custom ui_component admin form with multiple fieldsets which I have trouble populating the data with DataProvider. The following works for only a single fieldset: $this->loadedData[$model-&...
0
votes
2answers
19 views

Magebto 2: Override shipment save controller magento 2 Error

I have to override the Admin shipment save controller. Overridden it in my custom module and it's calling. But when I'm going to create the shipment I'm getting an error. Fatal error: Uncaught Error: ...
0
votes
1answer
9 views

Add product with text customisable option to cart using REST

When using the REST API to add products to the cart, you need to add a product_option.extension_attributes.configurable_item_options object to the cartItem payload (POST-ing to /V1/carts/mine/items). ...
3
votes
1answer
27 views

Magento 2 Show/Hide Minicart based on customer group

I want to show a minicart only for a specific customer group but I am unable to find the exact solution. If anyone knows please let me know. Thanks
0
votes
1answer
31 views

json_decode is not working properly in magento 2.4.0

I am trying to decode the JSON in normal string and print that in the info log in Magento 2.4.0 but I am getting nothing in the info log. Adding the code below anyone please suggest a solution for ...
1
vote
2answers
64 views

How to display sales_order (only pending orders) grid in custom module

How we can display sales_order grid in custom module with only pending status. For now I display sales_order_grid using ui component. I only want to display pending orders in this grid
0
votes
0answers
8 views

Return value of Magento\Elasticsearch7\Model\Client\Elasticsearch::query() must be of the type array, string returned in Model/Elasticsearch.php:367

When I tried to load my category page, the following error showing.. TypeError: Return value of Magento\Elasticsearch7\Model\Client\Elasticsearch::query() must be of the type array, string returned /...
0
votes
0answers
8 views

magento 2.3.5-p1 radio product option checkable.phtml not working

Any one please let me know which template is responsible for product radio option value, I found a phtml file in below location but any changes in this template is not working. vendor/magento/module-...
0
votes
1answer
27 views

Magento2 store not running on localhost .htaccess file problem

I have a magento2.4 store running on server. I installed it on localhost but it give 404 error. It has a strange .htaccess file contents. RewriteEngine on RewriteCond %{REQUEST_URI} !^/pub/ ...
0
votes
0answers
7 views

How to set a Flag when paypal payment failed

I would like to set a flag in DB when a paypal payment failed. Is there an Observer I can observe in order to achieve this ?
0
votes
0answers
19 views

Magento 2 Adding extension attributes to Magento\Sales\Api\Data\ShipmentTrackInterface

I'm trying to add a custom track url to the trackings, using extension attributes, i added these in extension_attributes.xml <extension_attributes for="Magento\Sales\Api\Data\...
0
votes
1answer
16 views

Build Customer View URL on Controller

How can I programmatically build this url: http://127.0.0.1/magento2/sales/order/view/order_id/61/? Im in a custom controller with the current Order object.
1
vote
0answers
21 views

Magento 2 custom ui_grid filterSearch issue

I have an error when attempting to search for a keyword in my custom table In Network tab, i have a call to https://mylocalsite.local/admin/mui/index/render/?namespace=my_grid&search=123&...
0
votes
1answer
28 views

WYSIWYG Editor Issue in UI Component multi row not working

I have created dynamic rows with multiple descriptions filed(1 In a row) with the WYSIWYG editor. Editor showing and working with first one-row element and rest element which added by adding more it's ...
0
votes
1answer
14 views

Is it a bad idea to allow magento upload SVG file for CMS page?

One of my user request to ask me to make the Magento able to upload svg file to the CMS. I did some research, some say security issue, but didn't tell much what kind of security issue it may happen. ...
0
votes
1answer
15 views

Continue to next step on click of Ship Here button

I am working on a project where I have to customize the checkout process. So I need a functionality where I want to move to the next step on selection of the shipping address. Below is my shipping-...
0
votes
1answer
17 views

adding tag to a specific page

hello everyone i have added a specific tag to all page of my website , but I want to add it to just the home page , can i achieve that ? i have added the meta tag like below, but it appears on all ...
0
votes
0answers
14 views

Create a custom tab layout for admin page

I'm trying to create an admin page separated into tabs that displays some custom phtml. I thought about using a ui_component form, but this requires a datasource which I don't have/need for this page. ...

15 30 50 per page